Struct fbxcel_dom::v7400::data::mesh::PolygonVertices
source · [−]pub struct PolygonVertices<'a> { /* private fields */ }
Expand description
Polygon vertices and control points data.
Implementations
sourceimpl<'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
sourceimpl<'a> Clone for PolygonVertices<'a>
impl<'a> Clone for PolygonVertices<'a>
sourcefn clone(&self) -> PolygonVertices<'a>
fn clone(&self) -> PolygonVertices<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for PolygonVertices<'a>
impl<'a> Debug for PolygonVertices<'a>
impl<'a> Copy for PolygonVertices<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PolygonVertices<'a>
impl<'a> Send for PolygonVertices<'a>
impl<'a> Sync for PolygonVertices<'a>
impl<'a> Unpin for PolygonVertices<'a>
impl<'a> UnwindSafe for PolygonVertices<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more