Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/PolyModeling
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyModeling/PolyModelingFaceUtil.h |
| Include | #include "Operations/PolyModeling/PolyModelingFaceUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyModeling/PolyModelingFaceUtil.cpp |
namespace UE
{
namespace Geometry
{
FFrame3d UE&58;&58;Geometry&58;&58;ComputeFaceSelectionFrame
&40;
const FDynamicMesh3 & Mesh,
const TArray< int32 > & Triangles,
bool bIsDefinitelySingleComponent
&41;
}
}
Remarks
Try to compute a good "Frame" for the selected Triangles of the Mesh. Only the largest triangle-connected-component of Triangles is considered. The Frame Z is aligned with the area-weighted average normal of the connected triangles. Initially the Frame is placed at the area-weighted centroid of the connected triangles. Rays are cast along Z in both directions, if either hits, the Frame is translated to the nearer hit.
Parameters
| Name | Description |
|---|---|
| bIsDefinitelySingleComponent | if this is known, passing as true will speed up the computation |