Struct half_edge_mesh::face::Face [−][src]
pub struct Face { pub edge: EdgePtr, pub normal: Vector3<f32>, pub center: Point3<f32>, pub id: u32, }
Fields
edge: EdgePtr
normal: Vector3<f32>
center: Point3<f32>
id: u32
Methods
impl Face
[src]
impl Face
pub fn empty(id: u32) -> Face
[src]
pub fn empty(id: u32) -> Face
pub fn with_edge(id: u32, edge: EdgePtr) -> Face
[src]
pub fn with_edge(id: u32, edge: EdgePtr) -> Face
pub fn take_edge(&mut self, edge: EdgePtr)
[src]
pub fn take_edge(&mut self, edge: EdgePtr)
pub fn set_edge(&mut self, edge: &EdgePtr)
[src]
pub fn set_edge(&mut self, edge: &EdgePtr)
pub fn set_edge_rc(&mut self, edge: &EdgeRc)
[src]
pub fn set_edge_rc(&mut self, edge: &EdgeRc)
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
pub fn get_edge(&self) -> Option<EdgeRc>
[src]
pub fn get_edge(&self) -> Option<EdgeRc>
pub fn num_vertices(&self) -> usize
[src]
pub fn num_vertices(&self) -> usize
pub fn compute_attrs(&mut self)
[src]
pub fn compute_attrs(&mut self)
Computes the attributes (normal and center) of this face Note: this only works when the edges and verts are properly connected So wait for the right time during initialization to run this When a face or faces are added to a half edge mesh with one of the provided functions, this function is called, so that the face attributes are correct. TODO: Decide what to do with a degenerate face
ⓘImportant traits for FaceAdjacentVertIteratorpub fn adjacent_verts(&self) -> FaceAdjacentVertIterator
[src]
pub fn adjacent_verts(&self) -> FaceAdjacentVertIterator
Iterates over the vertices which make up the face in counterclockwise order
ⓘImportant traits for FaceAdjacentEdgeIteratorpub fn adjacent_edges(&self) -> FaceAdjacentEdgeIterator
[src]
pub fn adjacent_edges(&self) -> FaceAdjacentEdgeIterator
Iterates over the edges which make up the face in counterclockwise order
ⓘImportant traits for FaceAdjacentFaceIteratorpub fn adjacent_faces(&self) -> FaceAdjacentFaceIterator
[src]
pub fn adjacent_faces(&self) -> FaceAdjacentFaceIterator
Iterates over the faces adjacent to this face in counterclockwise order
pub fn distance_to(&self, point: &Point3<f32>) -> f32
[src]
pub fn distance_to(&self, point: &Point3<f32>) -> f32
pub fn directed_distance_to(&self, point: &Point3<f32>) -> f32
[src]
pub fn directed_distance_to(&self, point: &Point3<f32>) -> f32
pub fn can_see(&self, point: &Point3<f32>) -> bool
[src]
pub fn can_see(&self, point: &Point3<f32>) -> bool
Trait Implementations
impl Debug for Face
[src]
impl Debug for Face
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq<Face> for Face
[src]
impl PartialEq<Face> for Face
fn eq(&self, other: &Face) -> bool
[src]
fn eq(&self, other: &Face) -> 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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Face
[src]
impl Eq for Face
impl Hash for Face
[src]
impl Hash for Face