Trait gut::mesh::vertex_positions::VertexPositions [−][src]
An "intrinsic" trait for accessing vertex positions on a mesh.
This trait can be implemented automatically by deriving the virtual "Intrinsic" trait and
taggin the field with the vertex positions field with the #[intrinsic(VertexPositions)]
attribute. Make sure that VertexPositions
is in scope, or specify the path in the argument to
the intrinsic
attribute directly.
Associated Types
Loading content...Required methods
fn vertex_positions(&self) -> &[Self::Element]
[src]
Vertex positions as a slice of triplets.
fn vertex_positions_mut(&mut self) -> &mut [Self::Element]
[src]
Vertex positions as a mutable slice of triplets.
Provided methods
fn vertex_position_iter(&self) -> Iter<'_, Self::Element>
[src]
Vertex iterator.
fn vertex_position_iter_mut(&mut self) -> IterMut<'_, Self::Element>
[src]
Mutable vertex iterator.
fn vertex_position<VI>(&self, vidx: VI) -> Self::Element where
VI: Into<VertexIndex>,
[src]
VI: Into<VertexIndex>,
Vertex accessor.