Struct meshlite::mesh::Vertex

source ·
pub struct Vertex {
    pub id: Id,
    pub position: Point3<f32>,
    pub halfedges: SmallVec<[Id; 4]>,
    pub prev: Id,
    pub next: Id,
    pub alive: bool,
    pub source: i32,
}

Fields

id: Idposition: Point3<f32>halfedges: SmallVec<[Id; 4]>

This is at the time of writing used as a set but is implemented using a SmallVec. Finding or implementing something like a “SmallSet” could provide a better API.

prev: Idnext: Idalive: boolsource: i32

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.