UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType > Class Template Reference

#include <DynamicMeshTriangleAttribute.h>

+ Inheritance diagram for UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >:

Public Types

using BaseType = TDynamicMeshTriangleAttribute< RealType, 1 >
 

Public Member Functions

 TDynamicMeshScalarTriangleAttribute ()
 
 TDynamicMeshScalarTriangleAttribute (FDynamicMesh3 *ParentMeshIn)
 
void SetNewValue (int NewTriangleID, RealType Value)
 
RealType GetValue (int TriangleID) const
 
void SetValue (int TriangleID, RealType Value)
 
- Public Member Functions inherited from UE::Geometry::TDynamicMeshTriangleAttribute< RealType, 1 >
 TDynamicMeshTriangleAttribute ()
 
 TDynamicMeshTriangleAttribute (FDynamicMesh3 *ParentMeshIn, bool bAutoInit=true)
 
const FDynamicMesh3GetParentMesh () const
 
FDynamicMesh3GetParentMesh ()
 
virtual FDynamicMeshAttributeBaseMakeNew (FDynamicMesh3 *ParentMeshIn) const override
 
virtual FDynamicMeshAttributeBaseMakeCopy (FDynamicMesh3 *ParentMeshIn) const override
 
void Copy (const TDynamicMeshTriangleAttribute< RealType, AttribDimension > &Copy)
 
virtual FDynamicMeshAttributeBaseMakeCompactCopy (const FCompactMaps &CompactMaps, FDynamicMesh3 *ParentMeshIn) const override
 
void CompactInPlace (const FCompactMaps &CompactMaps)
 
void CompactCopy (const FCompactMaps &CompactMaps, const TDynamicMeshTriangleAttribute< RealType, AttribDimension > &ToCopy)
 
void Initialize (RealType InitialValue=(RealType) 0)
 
void SetNewValue (int NewTriangleID, const RealType *Data)
 
virtual bool CopyThroughMapping (const TDynamicAttributeBase< FDynamicMesh3 > *Source, const FMeshIndexMappings &Mapping) override
 
virtual bool Append (const TDynamicAttributeBase &Source, const UE::Geometry::FDynamicMesh3::FAppendInfo &Info) override
 
virtual void AppendDefaulted (const UE::Geometry::FDynamicMesh3::FAppendInfo &Info) override
 
virtual bool CopyOut (int RawID, void *Buffer, int BufferSize) const override
 
virtual bool CopyIn (int RawID, void *Buffer, int BufferSize) override
 
void GetValue (int TriangleID, RealType *Data) const
 
void GetValue (int TriangleID, AsType &Data) const
 
void SetValue (int TriangleID, const RealType *Data)
 
void SetValue (int TriangleID, const AsType &Data)
 
void SetScalarValue (int TriangleID, const RealType &SingleValue)
 
void CopyValue (int FromTriangleID, int ToTriangleID)
 
bool IsBorderEdge (int EdgeID, bool bMeshBoundaryIsBorder=true) const
 
virtual TUniquePtr< FDynamicMeshAttributeChangeBaseNewBlankChange () const override
 
void OnSplitEdge (const DynamicMeshInfo::FEdgeSplitInfo &SplitInfo) override
 
void OnFlipEdge (const DynamicMeshInfo::FEdgeFlipInfo &FlipInfo) override
 
void OnCollapseEdge (const DynamicMeshInfo::FEdgeCollapseInfo &CollapseInfo) override
 
void OnPokeTriangle (const DynamicMeshInfo::FPokeTriangleInfo &PokeInfo) override
 
void OnMergeEdges (const DynamicMeshInfo::FMergeEdgesInfo &MergeInfo) override
 
void OnMergeVertices (const DynamicMeshInfo::FMergeVerticesInfo &MergeInfo) override
 
void OnSplitVertex (const DynamicMeshInfo::FVertexSplitInfo &SplitInfo, const TArrayView< const int > &TrianglesToUpdate) override
 
virtual RealType GetDefaultAttributeValue ()
 
void ResizeAttribStoreIfNeeded (int TriangleID)
 
virtual void OnNewTriangle (int TriangleID, bool bInserted) override
 
bool IsSameAs (const TDynamicMeshTriangleAttribute< RealType, AttribDimension > &Other, bool bIgnoreDataLayout) const
 
void Serialize (FArchive &Ar, const FCompactMaps *CompactMaps, bool bUseCompression)
 
virtual SIZE_T GetByteCount () const
 
- Public Member Functions inherited from UE::Geometry::TDynamicAttributeBase< ParentType >
virtual ~TDynamicAttributeBase ()
 
FName GetName () const
 
void SetName (FName NameIn)
 
virtual TDynamicAttributeBaseMakeCopy (ParentType *ParentIn) const =0
 
virtual TDynamicAttributeBaseMakeNew (ParentType *ParentIn) const =0
 
virtual TDynamicAttributeBaseMakeCompactCopy (const FCompactMaps &CompactMaps, ParentType *ParentIn) const
 
virtual void Reparent (ParentType *NewParent)=0
 
virtual bool CopyThroughMapping (const TDynamicAttributeBase *Source, const FMeshIndexMappings &Mapping)=0
 
virtual void OnNewVertex (int VertexID, bool bInserted)
 
virtual void OnRemoveVertex (int VertexID)
 
virtual void OnRemoveTriangle (int TriangleID)
 
virtual void OnReverseTriOrientation (int TriangleID)
 
virtual bool CheckValidity (bool bAllowNonmanifold, EValidityCheckFailMode FailMode) const
 
void Serialize (FArchive &Ar)
 

Additional Inherited Members

- Protected Types inherited from UE::Geometry::TDynamicMeshTriangleAttribute< RealType, 1 >
using Super = FDynamicMeshAttributeBase
 
- Protected Member Functions inherited from UE::Geometry::TDynamicAttributeBase< ParentType >
virtual void CopyParentClassData (const TDynamicAttributeBase< ParentType > &Other)
 
- Protected Attributes inherited from UE::Geometry::TDynamicMeshTriangleAttribute< RealType, 1 >
FDynamicMesh3ParentMesh
 
TDynamicVector< RealType > AttribValues
 
- Protected Attributes inherited from UE::Geometry::TDynamicAttributeBase< ParentType >
FName Name = FName()
 

Detailed Description

template<typename RealType>
class UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >

TDynamicMeshScalarTriangleAttribute is an extension of TDynamicMeshTriangleAttribute for scalar-valued attributes. Adds some convenience functions to simplify get/set code.

Member Typedef Documentation

◆ BaseType

template<typename RealType >
using UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::BaseType = TDynamicMeshTriangleAttribute<RealType, 1>

Constructor & Destructor Documentation

◆ TDynamicMeshScalarTriangleAttribute() [1/2]

template<typename RealType >
UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::TDynamicMeshScalarTriangleAttribute ( )
inline

◆ TDynamicMeshScalarTriangleAttribute() [2/2]

template<typename RealType >
UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::TDynamicMeshScalarTriangleAttribute ( FDynamicMesh3 ParentMeshIn)
inline

Member Function Documentation

◆ GetValue()

template<typename RealType >
RealType UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::GetValue ( int  TriangleID) const
inline

◆ SetNewValue()

template<typename RealType >
void UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::SetNewValue ( int  NewTriangleID,
RealType  Value 
)
inline

◆ SetValue()

template<typename RealType >
void UE::Geometry::TDynamicMeshScalarTriangleAttribute< RealType >::SetValue ( int  TriangleID,
RealType  Value 
)
inline

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