pub trait StrokeGeometryBuilder: GeometryBuilder {
// Required method
fn add_stroke_vertex(
&mut self,
vertex: StrokeVertex<'_, '_>,
) -> Result<VertexId, GeometryBuilderError>;
}Expand description
A Geometry builder to interface with the StrokeTessellator.
Types implementing this trait must also implement the GeometryBuilder trait.
Required Methods§
Sourcefn add_stroke_vertex(
&mut self,
vertex: StrokeVertex<'_, '_>,
) -> Result<VertexId, GeometryBuilderError>
fn add_stroke_vertex( &mut self, vertex: StrokeVertex<'_, '_>, ) -> Result<VertexId, GeometryBuilderError>
Inserts a vertex, providing its position, and optionally a normal. Returns a vertex id that is only valid between begin_geometry and end_geometry.
This method can only be called between begin_geometry and end_geometry.