Struct rust_3d::half_edge_3d::HalfEdge3D [] [src]

pub struct HalfEdge3D { /* fields omitted */ }

HalfEdge3D, the half edge data structure for 3D

Methods

impl HalfEdge3D
[src]

Creates a new HalfEdge3D for the given IsMesh3D This only stays valid if IMesh3D is not changed after creation The mesh must be manifold (@todo ensure via types?)

Returns the ID of the vertex the edge originates from (error if id out of bounds)

Returns the ID of the face the edge belongs to (error if id out of bounds)

Returns the ID of the twin edge (None if there isn't any) (error if id out of bounds)

Returns the ID of the edge after this edge (error if id out of bounds)

Returns the ID of the edge before this edge (error if id out of bounds)

Returns all edges originating (pointing away) from the given vertex (error if id out of bounds)

Returns all edges ending (pointing at) the given vertex (error if id out of bounds)

Returns all edges connected to the vertex (both originating and ending) (error if id out of bounds)

Returns all faces a vertex is part of (error if id out of bounds)

Fails if the edge ID is out of bounds

Fails if the vertex ID is out of bounds