pub struct PlanarPatch {
pub faces: Vec<String>,
pub patch_type: PatchType,
pub rectangle: Option<RectanglePrimitive>,
pub circle: Option<CirclePrimitive>,
}Expand description
One patch of adjacent, coplanar faces, together with the primitive approximating it.
patch_type names which primitive describes the patch: exactly one of rectangle and
circle is set, the one patch_type names.
Fields§
§faces: Vec<String>The faces that make up this patch
patch_type: PatchTypeThe kind of primitive that approximates this patch
rectangle: Option<RectanglePrimitive>The rectangle approximating this patch, set when patch_type is rectangle
circle: Option<CirclePrimitive>The circle approximating this patch, set when patch_type is circle
Trait Implementations§
Source§impl Clone for PlanarPatch
impl Clone for PlanarPatch
Source§impl Debug for PlanarPatch
impl Debug for PlanarPatch
Source§impl<'de> Deserialize<'de> for PlanarPatch
impl<'de> Deserialize<'de> for PlanarPatch
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
Auto Trait Implementations§
impl Forget for PlanarPatch
impl Freeze for PlanarPatch
impl RefUnwindSafe for PlanarPatch
impl Send for PlanarPatch
impl Sync for PlanarPatch
impl Unpin for PlanarPatch
impl UnsafeUnpin for PlanarPatch
impl UnwindSafe for PlanarPatch
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