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 duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for TriangleVertices<'a>
impl<'a> RefUnwindSafe for TriangleVertices<'a>
impl<'a> Send for TriangleVertices<'a>
impl<'a> Sync for TriangleVertices<'a>
impl<'a> Unpin for TriangleVertices<'a>
impl<'a> UnwindSafe for TriangleVertices<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more