mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-27 09:35:52 +00:00
Refactor
This commit is contained in:
parent
e53c9655f1
commit
98c28517cc
@ -70,7 +70,7 @@ mod tests {
|
|||||||
use crate::{
|
use crate::{
|
||||||
kernel::{
|
kernel::{
|
||||||
geometry::{surfaces::Swept, Surface},
|
geometry::{surfaces::Swept, Surface},
|
||||||
shape::Shape,
|
shape::{handle::Handle, Shape},
|
||||||
topology::{
|
topology::{
|
||||||
edges::{Cycle, Edge},
|
edges::{Cycle, Edge},
|
||||||
faces::Face,
|
faces::Face,
|
||||||
@ -104,7 +104,7 @@ mod tests {
|
|||||||
|
|
||||||
pub struct Triangle {
|
pub struct Triangle {
|
||||||
shape: Shape,
|
shape: Shape,
|
||||||
face: Face,
|
face: Handle<Face>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Triangle {
|
impl Triangle {
|
||||||
@ -134,9 +134,9 @@ mod tests {
|
|||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
|
|
||||||
shape.faces().add(abc.clone());
|
let face = shape.faces().add(abc);
|
||||||
|
|
||||||
Self { shape, face: abc }
|
Self { shape, face }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user