Struct fbxcel_dom::v7400::data::mesh::TriangleVertices
source · pub struct TriangleVertices<'a> { /* private fields */ }
Expand description
Triangle vertices (this is arary of control point indices).
“Triangle vertex” means “index of control point”.
Implementations§
source§impl<'a> TriangleVertices<'a>
impl<'a> TriangleVertices<'a>
sourcepub fn polygon_vertices(&self) -> PolygonVertices<'a>
pub fn polygon_vertices(&self) -> PolygonVertices<'a>
Returns underlying polygon vertices.
sourcepub fn polygon_vertex_index(
&self,
tri_vi: TriangleVertexIndex
) -> Option<PolygonVertexIndex>
pub fn polygon_vertex_index( &self, tri_vi: TriangleVertexIndex ) -> Option<PolygonVertexIndex>
Returns polygon vertex index corresponding to the given triangle vertex.
sourcepub fn polygon_vertex(
&self,
i: impl Into<IntoPvWithTriVerts>
) -> Option<PolygonVertex>
pub fn polygon_vertex( &self, i: impl Into<IntoPvWithTriVerts> ) -> Option<PolygonVertex>
Returns polygon vertex corresponding to the given triangle vertex.
sourcepub fn control_point_index(
&self,
i: impl Into<IntoCpiWithTriVerts>
) -> Option<ControlPointIndex>
pub fn control_point_index( &self, i: impl Into<IntoCpiWithTriVerts> ) -> Option<ControlPointIndex>
Returns control point index corresponding to the given triangle vertex.
sourcepub fn control_point(
&self,
i: impl Into<IntoCpiWithTriVerts>
) -> Option<Point3<f64>>
pub fn control_point( &self, i: impl Into<IntoCpiWithTriVerts> ) -> Option<Point3<f64>>
Returns control point corresponding to the given triangle vertex.
sourcepub fn iter_control_point_indices(
&self
) -> impl Iterator<Item = Option<ControlPointIndex>> + '_
pub fn iter_control_point_indices( &self ) -> impl Iterator<Item = Option<ControlPointIndex>> + '_
Returns an iterator of control point indices.
sourcepub fn polygon_index(&self, tri_i: TriangleIndex) -> Option<PolygonIndex>
pub fn polygon_index(&self, tri_i: TriangleIndex) -> Option<PolygonIndex>
Returns polygon index for the given triangle index.
sourcepub fn triangle_vertex_indices(
&self
) -> impl Iterator<Item = TriangleVertexIndex>
pub fn triangle_vertex_indices( &self ) -> impl Iterator<Item = TriangleVertexIndex>
Returns an iterator of triangle vertex indices.
Trait Implementations§
source§impl<'a> Clone for TriangleVertices<'a>
impl<'a> Clone for TriangleVertices<'a>
source§fn clone(&self) -> TriangleVertices<'a>
fn clone(&self) -> TriangleVertices<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more