pub struct Mesh {
pub vertex_count: u32,
pub face_vertex_counts: Vec<u32>,
pub face_vertex_indices: Vec<u32>,
pub edge_vertices: Vec<[u32; 2]>,
pub edge_creases: Vec<f32>,
pub vertex_corners: Vec<f32>,
}Expand description
The control mesh: faces, edges, and optional crease/corner sharpness — but no positions.
This is the input to Refiner. Positions and any other
per-vertex data are carried separately and applied with a
StencilTable, so one refinement serves every
attribute.
Fields§
§vertex_count: u32Number of vertices (needed since there is no positions array).
face_vertex_counts: Vec<u32>Number of corners for each face.
face_vertex_indices: Vec<u32>Flat face-vertex index list.
edge_vertices: Vec<[u32; 2]>Canonical undirected edge endpoints.
edge_creases: Vec<f32>Per-edge crease values aligned with edge_vertices.
vertex_corners: Vec<f32>Per-vertex corner values aligned by vertex index.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mesh
impl<'de> Deserialize<'de> for Mesh
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
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin for Mesh
impl UnwindSafe for Mesh
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