[−][src]Trait rust_3d::IsEditablePolygon
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
Implementors
impl<P> IsEditablePolygon<P> for Polygon2D<P> where
P: Is2D + Clone,
[src]
P: Is2D + Clone,
fn add_vertex(&mut self, vertex: P) -> VId
[src]
fn change_vertex(&mut self, vertexid: VId, vertex: P) -> Result<()>
[src]
impl<P> IsEditablePolygon<P> for Polygon3D<P> where
P: Is3D + Clone,
[src]
P: Is3D + Clone,