pub struct Face<'m> { /* private fields */ }Expand description
A bounded face of a solid (ADVANCED_FACE / FACE_SURFACE) — a surface
trimmed by boundary loops, with an orientation.
Implementations§
Source§impl<'m> Face<'m>
impl<'m> Face<'m>
pub fn name(&self) -> &'m str
pub fn same_sense(&self) -> bool
Sourcepub fn bounds(&self) -> impl Iterator<Item = Bound<'m>> + 'm
pub fn bounds(&self) -> impl Iterator<Item = Bound<'m>> + 'm
The boundary loops trimming this face.
Sourcepub fn to_nurbs(&self) -> Option<NurbsSurface>
pub fn to_nurbs(&self) -> Option<NurbsSurface>
The NURBS (NurbsSurface) form of this
face’s geometry. A closed analytic surface (sphere, torus, B-spline) is
returned whole via Surface::to_nurbs. An unbounded surface (plane,
cylinder, cone, linear extrusion) is sized to the control points of its
boundary edges’ NURBS forms — a guaranteed cover of the boundary — and
is the untrimmed base patch (the edge loops trim it separately).
None if the kind is unsupported or the bounds are degenerate.
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This face’s global identity (a Copy key for maps / deduplication; two
handles to the same entity share one key()).
Sourcepub fn transparency(&self) -> Option<f64>
pub fn transparency(&self) -> Option<f64>
The transparency styled onto this face (0.0 opaque … 1.0 fully
transparent), if any.
Sourcepub fn layer(&self) -> Option<&'m str>
pub fn layer(&self) -> Option<&'m str>
The name of the presentation layer this face belongs to, if any.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Whether this face is visible — false if an INVISIBILITY hides it (via
its styled item or its layer). Defaults to visible.