5#include "Containers/Array.h"
32 return !Layers.IsEmpty();
64 return Layers.IsValidIndex(LayerIndex) ? &Layers[LayerIndex] :
nullptr;
71 return Layers.IsValidIndex(LayerIndex) ? &Layers[LayerIndex] :
nullptr;
83 UpdateMeshFromLayers();
101 int32 ActiveLayer = -1;
117 inline bool HasValidLayers()
const
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_REWRITE SizeType Num() const
Definition Array.h:1144
Definition IndirectArray.h:20
UE_FORCEINLINE_HINT int32 Num() const
Definition IndirectArray.h:94
UE_FORCEINLINE_HINT bool IsValidIndex(int32 Index) const
Definition IndirectArray.h:408
Definition CompactMaps.h:20
Definition DynamicMeshAttributeSet.h:84
Definition DynamicMeshSculptLayers.h:22
bool IsEnabled() const
Definition DynamicMeshSculptLayers.h:30
GEOMETRYCORE_API bool MergeSculptLayers(int32 StartIndex, int32 EndIndex, bool bUseWeights)
Definition DynamicMeshSculptLayers.cpp:54
int32 NumLayers() const
Definition DynamicMeshSculptLayers.h:25
GEOMETRYCORE_API void CopyThroughMapping(const FDynamicMeshSculptLayers &Other, const FMeshIndexMappings &Mapping)
Definition DynamicMeshSculptLayers.cpp:204
GEOMETRYCORE_API void UpdateLayerWeights(TConstArrayView< double > InLayerWeights)
Definition DynamicMeshSculptLayers.cpp:94
GEOMETRYCORE_API bool UpdateLayersFromMesh()
Definition DynamicMeshSculptLayers.cpp:242
void RebuildMesh()
Definition DynamicMeshSculptLayers.h:81
GEOMETRYCORE_API bool DiscardSculptLayer(int32 LayerIndex)
Definition DynamicMeshSculptLayers.cpp:18
FDynamicMeshSculptLayerAttribute * GetLayer(int32 LayerIndex)
Definition DynamicMeshSculptLayers.h:69
TConstArrayView< double > GetLayerWeights() const
Definition DynamicMeshSculptLayers.h:75
GEOMETRYCORE_API int32 SetActiveLayer(int32 LayerIndex)
Definition DynamicMeshSculptLayers.cpp:10
int32 GetActiveLayer() const
Definition DynamicMeshSculptLayers.h:35
const FDynamicMeshSculptLayerAttribute * GetLayer(int32 LayerIndex) const
Definition DynamicMeshSculptLayers.h:62
GEOMETRYCORE_API bool MoveLayer(const int32 InitLayerIndex, const int32 TargetIndex)
Definition DynamicMeshSculptLayers.cpp:32
Definition DynamicVertexAttribute.h:49
Definition ParametricSurfaceData.h:18
TDynamicMeshVertexAttribute< double, 3 > FDynamicMeshSculptLayerAttribute
Definition DynamicMeshSculptLayers.h:17
EValidityCheckFailMode
Definition GeometryTypes.h:72
Definition MeshIndexMappings.h:22