Navigation
API > API/Runtime > API/Runtime/GeometryCore
Inheritance Hierarchy
- TPolyline3
- FMeshConstraintCurve
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Polyline3.h |
| Include | #include "Polyline3.h" |
Syntax
template<typename T>
class TPolyline3
Remarks
TPolyline3 represents a 3D polyline stored as a list of Vertices.
Variables
Constructors
| Type | Name | Description | |
|---|---|---|---|
TPolyline3 () |
|||
TPolyline3
(
const TArray< TVector< T > >& VertexList |
Construct polyline with given list of vertices | ||
TPolyline3
(
const TVector< T >& Point0, |
Construct a single-segment polyline |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendVertex
(
const TVector< T >& Position |
Add a vertex to the polyline | |
| void | AppendVertices
(
const TArray< VectorType >& NewVertices |
Add a list of Vertices to the polyline | |
| void | AppendVertices
(
const TArray< TVector< T > >& NewVertices |
Add a list of Vertices to the polyline | |
| T | |||
| void | Clear () |
Discard all vertices of polyline | |
| T | DistanceSquared
(
const TVector< T >& QueryPoint |
Calculate the squared distance from a point to the polyline | |
| T | DistanceSquared
(
const TVector< T >& QueryPoint, |
Calculate the squared distance from a point to the polyline | |
| const TVector< T > & | End () |
||
| TAxisAlignedBox3< T > | GetBounds () |
||
| TSegment3< T > | GetSegment
(
int SegmentIndex |
||
| TVector< T > | GetSegmentPoint
(
int SegmentIndex, |
||
| TVector< T > | GetSegmentPointUnitParam
(
int SegmentIndex, |
||
| TVector< T > | GetTangent
(
int VertexIndex |
Get the tangent vector at a vertex of the polyline, which is the normalized vector from the previous vertex to the next vertex | |
| const TArray< TVector< T > > & | GetVertices () |
||
| T | Length () |
||
| void | RemoveVertex
(
int VertexIndex |
Remove a vertex of the polyline (existing Vertices are shifted) | |
| void | Reverse () |
Reverse the order of the Vertices in the polyline (ie switch between Clockwise and CounterClockwise) | |
| int | SegmentCount () |
||
| SegmentIterator | SegmentItr () |
||
| SegmentEnumerable | Segments () |
||
| void | Set vertex at given index to a new Position | ||
| void | SetVertices
(
const TArray< TVector< T > >& NewVertices |
Replace the list of Vertices with a new list | |
| void | Simplify
(
T ClusterTolerance, |
Simplify the Polyline to reduce the vertex count | |
| void | SmoothSubdivide
(
TPolyline3< T >& NewPolyline |
Produce a new polyline that is smoother than this one | |
| const TVector< T > & | Start () |
||
| int | VertexCount () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TVector< T > & | operator[]
(
int Index |
Get the vertex at a given index | |
| const TVector< T > & | operator[]
(
int Index |
Get the vertex at a given index |
Classes
| Type | Name | Description | |
|---|---|---|---|
| SegmentEnumerable | Wrapper around SegmentIterator that has begin() and end() suitable for range-based for loop | ||
| SegmentIterator | SegmentIterator is used to iterate over the TSegment3 |