Struct boostvoronoi::SyncDiagram [−][src]
pub struct SyncDiagram<F> where
F: OutputType, { /* fields omitted */ }
Expand description
Sync version of the boostvoronoi::Diagram struct. This is useful when traversing the diagram in a multi threaded environment.
It also comes in an optional serde
flavor.
Implementations
pub fn new(
cells: Vec<Cell, Global>,
vertices: Vec<Vertex<F>, Global>,
edges: Vec<Edge, Global>
) -> SyncDiagram<F>
Returns an edge iterator, the edges will all originate at the same vertex as ‘edge_id’. ‘edge_id’ will be the first edge returned by the iterator.
Returns a pointer to the rotation next edge over the starting point of the half-edge.
Returns a pointer to the rotation previous edge over the starting point of the half-edge.
Returns the next edge or an error
Returns the previous edge or an BvError if it does not exist
Returns the twin edge or a BvError if it does not exists
Returns true if the edge is finite (segment, parabolic arc). Returns false if the edge is infinite (ray, line).
Returns true if the edge is infinite (ray, line). Returns false if the edge is finite (segment, parabolic arc).
Returns the optional vertex0 of the edge
Returns the optional vertex1 of the edge
Returns a reference to a vertex
Returns a mutable reference to a vertex
Trait Implementations
Returns the “default value” for a type. Read more
Converts a Diagram
into a SyncDiagram
by dropping the std::cell::Cell
and Rc