Navigation
API > API/Plugins > API/Plugins/PlanarCut
References
| Module | PlanarCut |
| Header | /Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Public/PlanarCut.h |
| Include | #include "PlanarCut.h" |
| Source | /Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Private/PlanarCut.cpp |
void ConvertGeometryCollectionToDynamicMesh
(
UE::Geometry::FDynamicMesh3 & OutputMesh,
FTransform & TransformOut,
bool bCenterPivot,
const FGeometryCollection & Collection,
bool bWeldEdges,
TArrayView < const FTransform3f > BoneTransforms,
bool bUseRelativeTransforms,
TArrayView < const int32 > TransformIndices,
TFunction < int32 , bool)> RemapMaterialIDs,
bool bAllowInvisible,
bool bSetPolygroupPerBone
)
Remarks
Convert chosen Geometry groups inside a GeometryCollection to a single Dynamic Mesh.
Parameters
| Name | Description |
|---|---|
| OutputMesh | Mesh to be filled with the geometry collection geometry |
| TransformOut | Transform taking output mesh geometry to local space of geometry collection. This will be Identity unless bCenterPivot is true. |
| bCenterPivot | Whether to center the geometry at the origin |
| Collection | The collection to be converted |
| bWeldEdges | Whether to weld edges on conversion |
| BoneTransforms | Transforms for each bone in the geometry collection |
| bUseRelativeTransforms | Whether the BoneTransforms are relative to each bone's parent, or in a shared space (e.g., Collection.Transform is relative, UGeometryCollectionComponent's component space transforms are not) |
| TransformIndices | Which transform groups inside the collection to convert |
| RemapMaterialIDs | Optional function to remap (MaterialID, bIsInternal) -> NewMaterialID |
| bAllowInvisible | Allow mesh to include triangles that are not marked 'visible' (typically, pre-fracture geometry stored for potential history/LOD usage) |
| bSetPolygroupPerBone | Enable PolyGroups on the OutputMesh and set one group per geometry |