NDEVR
API Documentation
PolylineMaker

Given random line segments, constructs a polyline when the vertices match. More...

Public Member Functions

 PolylineMaker (Buffer< Vertex< 3, fltp04 > > &polyline_vertices)
 Initializes with a series of vertices that will be possible nodes of the polyline.
void addSegment (const LineSegment< 3, fltp04 > &seg)
 Adds a segment and creates indices, if needed, into the index cache.
Buffer< Buffer< uint04 > > getCalculatedPolylineIndices () const
 Returns a list of all calculated polylines, with each buffer representing a different polyline based off of the initial vertex list.

Detailed Description

Given random line segments, constructs a polyline when the vertices match.


Used in Parameter slicing.

See also
Geometry, Polyline, LineSegment

Definition at line 13 of file PolylineMaker.h.

Constructor & Destructor Documentation

◆ PolylineMaker()

PolylineMaker::PolylineMaker ( Buffer< Vertex< 3, fltp04 > > & polyline_vertices)

Initializes with a series of vertices that will be possible nodes of the polyline.


Parameters
[in]polyline_verticesThe external buffer of vertex positions that this maker will append to.

Member Function Documentation

◆ addSegment()

void PolylineMaker::addSegment ( const LineSegment< 3, fltp04 > & seg)

Adds a segment and creates indices, if needed, into the index cache.


Parameters
[in]segThe 3D line segment to incorporate into the polyline structure.

◆ getCalculatedPolylineIndices()

Buffer< Buffer< uint04 > > PolylineMaker::getCalculatedPolylineIndices ( ) const

Returns a list of all calculated polylines, with each buffer representing a different polyline based off of the initial vertex list.


Returns
A buffer of index buffers, where each sub-buffer contains ordered vertex indices forming one polyline.

The documentation for this class was generated from the following file: