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 Forget for DisplaySolidPayload
impl Freeze for DisplaySolidPayloadwhere
*const u8 is !null: Freeze,
PhantomData<(u64, Option<String>)>: Freeze,
PhantomData<f64>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<(u64, Option<String>, Vec<Vec3>)>: Freeze,
PhantomData<(u64, Vec3)>: Freeze,
impl Move for DisplaySolidPayload
impl RefUnwindSafe for DisplaySolidPayload
impl Send for DisplaySolidPayloadwhere
RawVecInner: Send,
impl Sync for DisplaySolidPayloadwhere
RawVecInner: Sync,
impl Unpin for DisplaySolidPayload
impl UnsafeUnpin for DisplaySolidPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(u64, Option<String>)>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<(u64, Option<String>, Vec<Vec3>)>: UnsafeUnpin,
PhantomData<(u64, Vec3)>: UnsafeUnpin,
impl UnwindSafe for DisplaySolidPayloadwhere
RawVecInner: UnwindSafe,
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