pub enum FaceTag {
Show 13 variants
CubePosX,
CubeNegX,
CubePosY,
CubeNegY,
CubePosZ,
CubeNegZ,
CylSide,
CylTop,
CylBottom,
ConeSide,
ConeBottom,
Sphere,
Unknown,
}Expand description
A face of a supported primitive, named in the primitive’s local frame.
Tags are stable under parameter edits (resizing a cube does not change
which face is CubePosX), which is what makes stored face references
parametric rather than positional.
Variants§
CubePosX
CubeNegX
CubePosY
CubeNegY
CubePosZ
CubeNegZ
CylSide
Curved side wall of a cylinder.
CylTop
Cylinder cap at y = height.
CylBottom
Cylinder cap at y = 0.
ConeSide
Slanted side of a cone.
ConeBottom
Cone base disk at y = 0.
Sphere
The single surface of a sphere.
Unknown
Face of an AABB proxy standing in for an unsupported subtree (sketch/extrude/revolve based solids). Participates in boolean occlusion but is never selectable or editable.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FaceTag
impl<'de> Deserialize<'de> for FaceTag
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
Source§impl Ord for FaceTag
impl Ord for FaceTag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FaceTag
impl PartialOrd for FaceTag
impl Copy for FaceTag
impl Eq for FaceTag
impl StructuralPartialEq for FaceTag
Auto Trait Implementations§
impl Freeze for FaceTag
impl RefUnwindSafe for FaceTag
impl Send for FaceTag
impl Sync for FaceTag
impl Unpin for FaceTag
impl UnsafeUnpin for FaceTag
impl UnwindSafe for FaceTag
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,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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