![]() |
NDEVR
API Documentation
|
A sequence of connected line segments defined by ordered vertices along a path. More...
Public Member Functions | |
| void | add (const t_vertex &vertex) |
| void | add (uint04 index, const t_vertex &vertex) |
| template<uint01 t_new_dims, class t_new_type, class t_new_vertex_type = Vertex<t_new_dims, t_new_type>> | |
| Polyline< t_dims, t_new_type, t_new_vertex_type > | as () const |
| Bounds< t_dims, t_type, t_vertex > | bounds () const |
| void | clear () |
| const t_vertex & | lastVertex () const |
| template<class t_precision> | |
| t_precision | length () const |
| bool | operator== (const Polyline &polygon) const |
| template<class t_inter_type> | |
| constexpr t_vertex | pointAt (t_inter_type value) const |
| void | remove (uint04 index) |
| void | removeLastVertex () |
| void | replace (uint04 index, const t_vertex &vertex) |
| LineSegment< t_dims, t_type, t_vertex > | segment (uint04 index) const |
| uint04 | segmentCount () const |
| void | setVertices (const Buffer< t_vertex > &vertices) |
| void | simplify () |
| const t_vertex & | vertex (uint04 index) const |
| uint04 | vertexCount () const |
| const Buffer< t_vertex > & | vertices () const |
A sequence of connected line segments defined by ordered vertices along a path.
Class: Polyline
Author: Tyler Parke
Date: 2017-11-19
Definition at line 54 of file PolyLine.hpp.
|
inline |
Adds vertex.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vertex - The vertex to add.
Definition at line 244 of file PolyLine.hpp.
References vertex().
Referenced by as(), Extruder::ExtrudeRealThickness(), operator*(), and Geometry::polylines().
|
inline |
Adds index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the. vertex - The vertex.
Definition at line 266 of file PolyLine.hpp.
References vertex().
|
inline |
Gets as.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 415 of file PolyLine.hpp.
References add(), as(), vertex(), and vertexCount().
Referenced by as().
|
inline |
Gets the bounds.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 93 of file PolyLine.hpp.
References IsInvalid().
|
inline |
Clears this object to its blank/initial state.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 399 of file PolyLine.hpp.
Referenced by Geometry::polylines().
|
inline |
The last vertex in the polyline
Author: Tyler Parke
Date: 2019-01-12
Definition at line 350 of file PolyLine.hpp.
|
inline |
Gets the length.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 435 of file PolyLine.hpp.
References cast(), IsInvalid(), IsValid(), length(), segment(), segmentCount(), and vertexCount().
Referenced by length().
|
inline |
Equality operator.
Author: Tyler Parke
Date: 2017-11-19
Parameters: polygon - The polygon.
Definition at line 509 of file PolyLine.hpp.
|
inlineconstexpr |
Point at.
Author: Tyler Parke
Date: 2017-11-19
Parameters: value - The value.
Definition at line 470 of file PolyLine.hpp.
|
inline |
Removes the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - The index to removeRows.
Definition at line 335 of file PolyLine.hpp.
Referenced by simplify().
|
inline |
Removes the last vertex from the polyline.
Author: Tyler Parke
Date: 2019-01-12
Definition at line 362 of file PolyLine.hpp.
|
inline |
Replaces.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the. vector - The vector.
Definition at line 315 of file PolyLine.hpp.
References vertex().
|
inline |
Segments the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Definition at line 164 of file PolyLine.hpp.
References vertex().
Referenced by Extruder::Extrude(), length(), pointAt(), and simplify().
|
inline |
Segment count.
Author: Tyler Parke
Date: 2018-10-29
Definition at line 209 of file PolyLine.hpp.
Referenced by Extruder::Extrude(), and length().
|
inline |
Sets the vertices.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vertices - The vertices.
Definition at line 228 of file PolyLine.hpp.
References vertices().
|
inline |
Removes all duplicate adjacent vertices.
Author: Tyler Parke
Date: 2019-01-12
Definition at line 373 of file PolyLine.hpp.
References remove(), segment(), vertex(), and vertexCount().
|
inline |
Vertices the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Definition at line 146 of file PolyLine.hpp.
Referenced by add(), add(), as(), Extruder::Extrude(), operator*(), replace(), segment(), and simplify().
|
inline |
Vertex count.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 194 of file PolyLine.hpp.
Referenced by as(), Extruder::Extrude(), length(), operator*(), Geometry::polylines(), and simplify().
|
inline |
Gets the vertices.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 179 of file PolyLine.hpp.
Referenced by setVertices().