Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh
Inheritance Hierarchy
- TDynamicAttributeBase
- TDynamicVertexAttribute
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicVertexAttribute.h |
| Include | #include "DynamicMesh/DynamicVertexAttribute.h" |
Syntax
template<typename AttribValueType, int AttribDimension, typename ParentType>
class TDynamicVertexAttribute : public UE::Geometry::TDynamicAttributeBase< ParentType >
Remarks
TDynamicVertexAttribute provides per-vertex storage of an attribute value
Variables
| Type | Name | Description | |
|---|---|---|---|
| TDynamicVector< AttribValueType > | AttribValues | List of per-vertex attribute values | |
| ParentType * | Parent | The parent object (e.g. mesh, point set) this attribute belongs to |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Create an empty overlay | |||
TDynamicVertexAttribute
(
ParentType* ParentIn, |
Create an attribute for the given parent |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CompactCopy
(
const FCompactMaps& CompactMaps, |
||
| void | Copy
(
const TDynamicVertexAttribute< AttribValueType, AttribDimension, ParentType >& Copy |
Set this overlay to contain the same arrays as the copy overlay | |
| void | CopyValue
(
int FromVertexID, |
Copy the attribute value at FromVertexID to ToVertexID | |
| AttribValueType | |||
| const ParentType * | GetParent () |
||
| ParentType * | GetParent () |
||
| void | GetValue
(
int VertexID, |
Get the element at a given index | |
| void | GetValue
(
int VertexID, |
Get the element at a given index | |
| void | Initialize
(
AttribValueType InitialValue |
Initialize the attribute values with InitialValue, and resize to the parent mesh's max vertex ID | |
| bool | IsSameAs
(
const TDynamicVertexAttribute< AttribValueType, AttribDimension, ParentType >& Other, |
Returns true if this AttributeSet is the same as Other. | |
| void | ResizeAttribStoreIfNeeded
(
int VertexID |
||
| void | Serialize
(
FArchive& Ar, |
Serialize to and from an archive. | |
| void | SetAttributeFromBary
(
int SetAttribute, |
Set the value at an Attribute to be a barycentric interpolation of three other Attributes | |
| void | SetAttributeFromLerp
(
int SetAttribute, |
Set the value at an Attribute to be a linear interpolation of two other Attributes | |
| void | SetNewValue
(
int NewVertexID, |
||
| void | SetValue
(
int VertexID, |
Set the element at a given index | |
| void | SetValue
(
int VertexID, |
Set the element at a given index |
Overridden from TDynamicAttributeBase
| Type | Name | Description | |
|---|---|---|---|
| bool | CheckValidity
(
bool bAllowNonmanifold, |
Check validity of attribute | |
| void | CompactInPlace
(
const FCompactMaps& CompactMaps |
Compact the attribute in place | |
| bool | CopyIn
(
int RawID, |
Generic function to copy data in to an attribute; it's up to the derived class to map RawID to chunks of attribute data | |
| bool | CopyOut
(
int RawID, |
Generic function to copy data out of an attribute; it's up to the derived class to map RawID to chunks of attribute data | |
| bool | CopyThroughMapping
(
const TDynamicAttributeBase< ParentType >* Source, |
Accessors/Queries | |
| TDynamicAttributeBase< ParentType > * | MakeCompactCopy
(
const FCompactMaps& CompactMaps, |
Allocate a new compact copy of the attribute layer, optionally with a different parent. | |
| TDynamicAttributeBase< ParentType > * | MakeCopy
(
ParentType* ParentIn |
Allocate a new copy of the attribute layer, optionally with a different parent | |
| TDynamicAttributeBase< ParentType > * | MakeNew
(
ParentType* ParentIn |
Allocate a new empty instance of the same type of attribute layer | |
| TUniquePtr< TDynamicAttributeChangeBase< ParentType > > | |||
| void | OnCollapseEdge
(
const FDynamicMesh3::FEdgeCollapseInfo& CollapseInfo |
Update the overlay to reflect an edge collapse in the parent | |
| void | OnFlipEdge
(
const FDynamicMesh3::FEdgeFlipInfo& FlipInfo |
Update the overlay to reflect an edge flip in the parent | |
| void | OnMergeEdges
(
const FDynamicMesh3::FMergeEdgesInfo& MergeInfo |
Update the overlay to reflect an edge merge in the parent | |
| void | OnMergeVertices
(
const FDynamicMesh3::FMergeVerticesInfo& MergeInfo |
Update to reflect a vertex merge that does not resolve as a collapse or edge merge (i.e. a vertex merge that resolves as bowtie creation). | |
| void | OnNewVertex
(
int VertexID, |
||
| void | OnPokeTriangle
(
const FDynamicMesh3::FPokeTriangleInfo& PokeInfo |
Update the overlay to reflect a face poke in the parent | |
| void | OnSplitEdge
(
const FDynamicMesh3::FEdgeSplitInfo& SplitInfo |
Update the overlay to reflect an edge split in the parent | |
| void | OnSplitVertex
(
const FDynamicMesh3::FVertexSplitInfo& SplitInfo, |
Update the overlay to reflect a vertex split in the parent |
Typedefs
| Name | Description |
|---|---|
| Super |