pub struct Subdivided {
pub positions: Vec<Vector3>,
pub faces: Vec<Vec<usize>>,
pub face_start: Vec<usize>,
pub face_point: Vec<usize>,
pub edge_point: BTreeMap<[usize; 2], usize>,
pub sharp: BTreeSet<[usize; 2]>,
pub topology: Topology,
}Expand description
The mesh after one step: quads only, with where each of its vertices and faces came from.
Fields§
§positions: Vec<Vector3>§faces: Vec<Vec<usize>>Face face_start[f] + k is the quad at corner k of the cage’s
face f: its vertex point, the edge point after it, the face point,
the edge point before it.
face_start: Vec<usize>§face_point: Vec<usize>The cage’s vertex v is vertex v here too; its face f’s face
point is face_point[f], and its edge (a, b)’s edge point
edge_point[&[a, b]], the smaller index first.
edge_point: BTreeMap<[usize; 2], usize>§sharp: BTreeSet<[usize; 2]>The halves of every creased edge.
topology: TopologyTrait Implementations§
Source§impl Clone for Subdivided
impl Clone for Subdivided
Source§fn clone(&self) -> Subdivided
fn clone(&self) -> Subdivided
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Subdivided
impl RefUnwindSafe for Subdivided
impl Send for Subdivided
impl Sync for Subdivided
impl Unpin for Subdivided
impl UnsafeUnpin for Subdivided
impl UnwindSafe for Subdivided
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