[][src]Trait gut::mesh::vertex_positions::VertexPositions

pub trait VertexPositions {
    type Element: Copy;
    fn vertex_positions(&self) -> &[Self::Element];
fn vertex_positions_mut(&mut self) -> &mut [Self::Element]; fn vertex_position_iter(&self) -> Iter<Self::Element> { ... }
fn vertex_position_iter_mut(&mut self) -> IterMut<Self::Element> { ... }
fn vertex_position<VI>(&self, vidx: VI) -> Self::Element
    where
        VI: Into<VertexIndex>
, { ... } }

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]

Vertex positions as a slice of triplets.

fn vertex_positions_mut(&mut self) -> &mut [Self::Element]

Vertex positions as a mutable slice of triplets.

Loading content...

Provided methods

fn vertex_position_iter(&self) -> Iter<Self::Element>

Vertex iterator.

fn vertex_position_iter_mut(&mut self) -> IterMut<Self::Element>

Mutable vertex iterator.

fn vertex_position<VI>(&self, vidx: VI) -> Self::Element where
    VI: Into<VertexIndex>, 

Vertex accessor.

Loading content...

Implementors

impl<T: Real> VertexPositions for PointCloud<T>[src]

impl<T: Real> VertexPositions for PolyMesh<T>[src]

impl<T: Real> VertexPositions for TetMesh<T>[src]

impl<T: Real> VertexPositions for TetMeshExt<T>[src]

impl<T: Real> VertexPositions for QuadMesh<T>[src]

impl<T: Real> VertexPositions for QuadMeshExt<T>[src]

impl<T: Real> VertexPositions for TriMesh<T>[src]

impl<T: Real> VertexPositions for TriMeshExt<T>[src]

Loading content...