pub struct DisplaySolidPayload {
pub faces: Vec<(u64, Option<String>)>,
pub mesh: Mesh,
pub edges: Vec<(u64, Option<String>, Vec<Vec3>)>,
pub vertices: Vec<(u64, Vec3)>,
pub chord_tolerance: f64,
}Expand description
Everything the native renderer needs to display one resident solid.
Fields§
§faces: Vec<(u64, Option<String>)>Faces in shell/face order — the index into this Vec IS the watertight
mesh’s face_ids value for that face’s triangles.
mesh: MeshWatertight display mesh (chord-tolerance driven).
edges: Vec<(u64, Option<String>, Vec<Vec3>)>Non-degenerate edges (edge_id, name, polyline), sorted by edge id.
vertices: Vec<(u64, Vec3)>Topology vertices (vertex_id, point).
chord_tolerance: f64The chord tolerance actually used.
Auto Trait Implementations§
impl Freeze for DisplaySolidPayload
impl RefUnwindSafe for DisplaySolidPayload
impl Send for DisplaySolidPayload
impl Sync for DisplaySolidPayload
impl Unpin for DisplaySolidPayload
impl UnsafeUnpin for DisplaySolidPayload
impl UnwindSafe for DisplaySolidPayload
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