Struct half_edge_mesh::vert::Vert [] [src]

pub struct Vert {
    pub edge: EdgePtr,
    pub pos: Point3<f32>,
    pub id: u32,
}

Fields

edge: EdgePtr pos: Point3<f32> id: u32

Methods

impl Vert
[src]

fn empty(id: u32, pos: Point3<f32>) -> Vert

All structure of the mesh revolves around vertex positions and their connectivity. (Faces are just an abstraction). All vertices must therefore have a concrete position.

fn with_edge(id: u32, pos: Point3<f32>, edge: EdgePtr) -> Vert

Vertex connected to an existing edge

fn take_edge(&mut self, edge: EdgePtr)

fn set_edge(&mut self, edge: &EdgePtr)

fn set_edge_rc(&mut self, edge: &EdgeRc)

fn move_to(&mut self, pos: Point3<f32>)

fn get_pos(&self) -> Point3<f32>

fn is_valid(&self) -> bool

fn get_edge(&self) -> Option<EdgeRc>

fn adjacent_verts(&self) -> VertAdjacentVertIterator

Important: Iterates over the vertices connected to a vertex in clockwise order

fn adjacent_edges(&self) -> VertAdjacentEdgeIterator

Important: Iterates over the edges connected to a vertex in clockwise order

fn adjacent_faces(&self) -> VertAdjacentFaceIterator

Important: Iterates over the faces connected to a vertex in clockwise order

Trait Implementations

impl Debug for Vert
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq<Vert> for Vert
[src]

fn eq(&self, other: &Vert) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for Vert
[src]

impl Hash for Vert
[src]

fn hash<H>(&self, state: &mut H) where H: Hasher

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.