pub struct FaceSpec {
pub surface: NurbSurface3D,
pub outer: Vec<CoedgeSpec>,
pub holes: Vec<Vec<CoedgeSpec>>,
}Expand description
A face: its surface, bounded by its outer loop and with its holes.
Fields§
§surface: NurbSurface3D§outer: Vec<CoedgeSpec>§holes: Vec<Vec<CoedgeSpec>>Implementations§
Source§impl FaceSpec
impl FaceSpec
Sourcepub fn on_unit_square(
surface: NurbSurface3D,
sides: [CoedgeOn; 4],
) -> GeopResult<Self>
pub fn on_unit_square( surface: NurbSurface3D, sides: [CoedgeOn; 4], ) -> GeopResult<Self>
A face on surface over the unit square of its parameters, bounded
by sides counter-clockwise from (0, 0): through (1, 0),
(1, 1) and (0, 1), each side a straight pcurve.
Sourcepub fn loops(&self) -> Vec<&Vec<CoedgeSpec>>
pub fn loops(&self) -> Vec<&Vec<CoedgeSpec>>
Its loops, the outer one first.
Sourcepub fn reversed(&self) -> Self
pub fn reversed(&self) -> Self
The same face with its material side turned around, exactly as
Model::reverse_face turns a face of a model around: the surface
mirrored in u, each pcurve mirrored with it, and every loop run the
other way.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FaceSpec
impl<'de> Deserialize<'de> for FaceSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FaceSpec
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