Navigation
API > API/Runtime > API/Runtime/GeometryCore
TDynamicPointSet3 implements a dynamic 3D point set, templated on real-value type (float or double). The points are indexed and the class allows for gaps in the index space.
The points are referred to as "Vertices" for consistency with higher-level Mesh and Graph classes. This class can be used interchangeably with the Vertices of those classes in some cases (for example in spatial data structures like TDynamicVerticesOctree3)
The point data is stored in via TDynamicVector
Reference counts for the points are stored via a FRefCountVector instance
A per-point attribute set can optionally be attached. Currently the client is responsible for managing the memory for this attribute set. The attribute set will be automatically updated when points are added or removed.
| Name | TDynamicPointSet3 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicPointSet3.h |
| Include Path | #include "DynamicMesh/DynamicPointSet3.h" |
Syntax
template<typename RealType>
class TDynamicPointSet3
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int AppendVertex
(
const TVector< RealType >& Position |
Append vertex at position, returns vid | DynamicMesh/DynamicPointSet3.h | |
void BeginUnsafeVerticesInsert() |
Call this before a set of unsafe InsertVertex() calls | DynamicMesh/DynamicPointSet3.h | |
void Clear() |
Construction Discard all data | DynamicMesh/DynamicPointSet3.h | |
RealType CompactMetric() |
Returns measure of compactness in range [0,1], where 1 is fully compacted | DynamicMesh/DynamicPointSet3.h | |
void EndUnsafeVerticesInsert() |
Call after a set of unsafe InsertVertex() calls to rebuild free list | DynamicMesh/DynamicPointSet3.h | |
TDynamicAttributeSetBase< TDynamicPointSet3< RealType > > * GetBaseAttributeSet() |
DynamicMesh/DynamicPointSet3.h | ||
TAxisAlignedBox3< RealType > GetBounds() |
Geometric queries Returns bounding box of all points | DynamicMesh/DynamicPointSet3.h | |
TVector< RealType > GetVertex
(
int VertexID |
Get/set | DynamicMesh/DynamicPointSet3.h | |
const TDynamicVector< double > & GetVerticesBuffer() |
Direct buffer access (not a good idea to use) | DynamicMesh/DynamicPointSet3.h | |
const FRefCountVector & GetVerticesRefCounts() |
DynamicMesh/DynamicPointSet3.h | ||
EMeshResult InsertVertex
(
int VertexID, |
Insert vertex at given index, assuming it is unused. | DynamicMesh/DynamicPointSet3.h | |
bool IsCompact() |
DynamicMesh/DynamicPointSet3.h | ||
bool IsVertex
(
int VertexID |
DynamicMesh/DynamicPointSet3.h | ||
int MaxVertexID() |
DynamicMesh/DynamicPointSet3.h | ||
EMeshResult RemoveVertex
(
int VertexID |
Edit operations Remove point | DynamicMesh/DynamicPointSet3.h | |
void SetExternallyManagedAttributes
(
TDynamicAttributeSetBase< TDynamicPointSet3< RealType > >* AttributeSet |
Attribute Set Support. | DynamicMesh/DynamicPointSet3.h | |
void SetVertex
(
int VertexID, |
Set vertex position | DynamicMesh/DynamicPointSet3.h | |
int VertexCount() |
Indices | DynamicMesh/DynamicPointSet3.h | |
FRefCountVector::IndexEnumerable VertexIndicesItr() |
Iterators | DynamicMesh/DynamicPointSet3.h | |
FRefCountVector::MappedEnumerable< TVector< RealType > > VerticesItr() |
Enumerate positions of all points | DynamicMesh/DynamicPointSet3.h |