Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
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.
| Name | UE::Geometry::ComputeFaceSelectionFrame |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyModeling/PolyModelingFaceUtil.h |
| Include Path | #include "Operations/PolyModeling/PolyModelingFaceUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyModeling/PolyModelingFaceUtil.cpp |
namespace UE
{
namespace Geometry
{
FFrame3d UE::Geometry::ComputeFaceSelectionFrame
(
const FDynamicMesh3 & Mesh,
const TArray < int32 > & Triangles,
bool bIsDefinitelySingleComponent
)
}
}
Parameters
| Name | Remarks |
|---|---|
| bIsDefinitelySingleComponent | if this is known, passing as true will speed up the computation |