pub enum FaceSpec {
Planar {
vertices: Vec<Point3>,
normal: Vec3,
d: f64,
inner_wires: Vec<Vec<Point3>>,
},
Surface {
vertices: Vec<Point3>,
surface: FaceSurface,
reversed: bool,
inner_wires: Vec<Vec<Point3>>,
},
CylindricalFace {
vertices: Vec<Point3>,
cylinder: CylindricalSurface,
reversed: bool,
inner_wires: Vec<Vec<Point3>>,
},
}Expand description
A face specification for mixed-surface solid assembly.
Used by assemble_solid_mixed to build solids with faces of any
surface type – not just planar.
Variants§
Planar
A planar face defined by vertex positions and plane equation.
Fields
Surface
A face with a pre-built surface and vertex positions for the boundary wire.
Fields
§
surface: FaceSurfaceThe surface geometry.
CylindricalFace
A cylindrical face with circle edges on angular boundaries.
Unlike Surface, this variant creates EdgeCurve::Circle for edges
that span an angular range on the cylinder (constant-v boundaries),
preserving curve geometry for correct tessellation and volume computation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaceSpec
impl RefUnwindSafe for FaceSpec
impl Send for FaceSpec
impl Sync for FaceSpec
impl Unpin for FaceSpec
impl UnsafeUnpin for FaceSpec
impl UnwindSafe for FaceSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more