[][src]Trait rust_3d::IsEditablePolygon

pub trait IsEditablePolygon<V>: IsPolygon<V> {
    fn add_vertex(&mut self, vertex: V) -> VId;
fn change_vertex(&mut self, vid: VId, vertex: V) -> Result<()>; }

IsEditablePolygon trait used for polygons which can be edited

Required methods

fn add_vertex(&mut self, vertex: V) -> VId

Should add a vertex to the end and return its id

fn change_vertex(&mut self, vid: VId, vertex: V) -> Result<()>

Should change vertex at vId to the given vertex returning an error on failure

Loading content...

Implementors

impl<P> IsEditablePolygon<P> for Polygon2D<P> where
    P: Is2D + Clone
[src]

impl<P> IsEditablePolygon<P> for Polygon3D<P> where
    P: Is3D + Clone
[src]

Loading content...