Struct fbxcel_dom::v7400::data::mesh::PolygonVertices
source · pub struct PolygonVertices<'a> { /* private fields */ }
Expand description
Polygon vertices and control points data.
Implementations§
source§impl<'a> PolygonVertices<'a>
impl<'a> PolygonVertices<'a>
sourcepub fn raw_control_points(
&self
) -> Result<impl Iterator<Item = Point3<f64>> + 'a>
pub fn raw_control_points( &self ) -> Result<impl Iterator<Item = Point3<f64>> + 'a>
Returns the raw control points
sourcepub fn raw_polygon_vertices(&self) -> &[i32]
pub fn raw_polygon_vertices(&self) -> &[i32]
Returns a slice of the raw polygon vertices (indices).
sourcepub fn polygon_vertex(&self, pvi: PolygonVertexIndex) -> Option<PolygonVertex>
pub fn polygon_vertex(&self, pvi: PolygonVertexIndex) -> Option<PolygonVertex>
Returns a polygon vertex at the given index.
sourcepub fn control_point(
&self,
i: impl Into<IntoCpiWithPolyVerts>
) -> Option<Point3<f64>>
pub fn control_point( &self, i: impl Into<IntoCpiWithPolyVerts> ) -> Option<Point3<f64>>
Returns a control point at the given index.
sourcepub fn triangulate_each<F>(
&self,
triangulator: F
) -> Result<TriangleVertices<'a>, Error>where
F: FnMut(&Self, &[PolygonVertexIndex], &mut Vec<[PolygonVertexIndex; 3]>) -> Result<(), Error> + Copy,
pub fn triangulate_each<F>( &self, triangulator: F ) -> Result<TriangleVertices<'a>, Error>where F: FnMut(&Self, &[PolygonVertexIndex], &mut Vec<[PolygonVertexIndex; 3]>) -> Result<(), Error> + Copy,
Triangulates the polygons and returns indices map.
Trait Implementations§
source§impl<'a> Clone for PolygonVertices<'a>
impl<'a> Clone for PolygonVertices<'a>
source§fn clone(&self) -> PolygonVertices<'a>
fn clone(&self) -> PolygonVertices<'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