Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshPlanarSymmetry
Description
The set of functions below are intended to be used together in situations like 3D sculpting where we want to apply symmetry constraints within a "brush region of interest (ROI)" See UMeshVertexSculptTool for example usage Computes list of vertices that are mirror-constrained to vertices in VertexROI. If bForceSameSizeWithGaps is true, MirrorVertexROIOut will be the same size as VertexROI, and -1 is stored for vertices in VertexROI that are source vertices, or on the symmetry plane, or excluded by ShouldExcludeVertex(). Otherwise those vertices are skipped.
| Name | GetMirrorVertexROI |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/MeshPlanarSymmetry.h |
| Include Path | #include "Parameterization/MeshPlanarSymmetry.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Parameterization/MeshPlanarSymmetry.cpp |
void GetMirrorVertexROI
(
const TArray < int > & VertexROI,
TArray < int > & MirrorVertexROIOut,
bool bForceSameSizeWithGaps,
TFunctionRef < bool> ShouldExcludeVertex
) const
Parameters
| Name | Remarks |
|---|---|
| ShouldExcludeVertex | Optional filter to exclude vertices: takes vertex ID, returns true if the vertex should not be added to the ROI, false otherwise |