pub struct Poly {Show 18 fields
pub index: usize,
pub centroid: Point,
pub is_sub_poly: bool,
pub ring_nodes: Vec<usize>,
pub ring_paths: Vec<usize>,
pub cross_paths: Vec<usize>,
pub inset_nodes: Vec<usize>,
pub spoke_paths: Vec<usize>,
pub ridge_path: Option<usize>,
pub node_locs: Vec<Point>,
pub local_root_vertices: Vec<usize>,
pub local_root_creases: Vec<usize>,
pub owned_nodes: Vec<usize>,
pub owned_paths: Vec<usize>,
pub owned_polys: Vec<usize>,
pub owned_creases: Vec<usize>,
pub owned_facets: Vec<usize>,
pub owner: OwnerRef,
}Expand description
Polygon or subpolygon generated during crease-pattern construction.
Fields§
§index: usize§centroid: Point§is_sub_poly: bool§ring_nodes: Vec<usize>§ring_paths: Vec<usize>§cross_paths: Vec<usize>§inset_nodes: Vec<usize>§spoke_paths: Vec<usize>§ridge_path: Option<usize>§node_locs: Vec<Point>§local_root_vertices: Vec<usize>§local_root_creases: Vec<usize>§owned_nodes: Vec<usize>§owned_paths: Vec<usize>§owned_polys: Vec<usize>§owned_creases: Vec<usize>§owned_facets: Vec<usize>§owner: OwnerRefTrait Implementations§
Source§impl<'de> Deserialize<'de> for Poly
impl<'de> Deserialize<'de> for Poly
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 Freeze for Poly
impl RefUnwindSafe for Poly
impl Send for Poly
impl Sync for Poly
impl Unpin for Poly
impl UnsafeUnpin for Poly
impl UnwindSafe for Poly
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