Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshRefinerBase
Description
Resolve vertex constraints for collapsing edge eid=[a,b]. Generally we would collapse a to b, and set the new position as 0.5*(v_a+v_b). However if a or b are constrained, then we want to keep that vertex and collapse to its position. This vertex (a or b) will be returned in collapse_to, which is -1 otherwise. If a and b are constrained, then things are complicated (and documented below). Resolve vertex constraints for collapsing edge eid=[a,b]. Generally we would collapse a to b, and set the new position as 0.5*(v_a+v_b). However if a or b are non-deletable, then we want to keep that vertex. This vertex (a or b) will be returned in collapse_to, which is -1 otherwise. If a and b are non-deletable, then things are complicated (and documented below).
| Name | CanCollapseVertex |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/MeshRefinerBase.h |
| Include Path | #include "MeshRefinerBase.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/MeshRefinerBase.cpp |
bool CanCollapseVertex
(
int eid,
int a,
int b,
int & collapse_to
) const
Parameters
| Name | Remarks |
|---|---|
| eid | edge ID |
| a | first vertex of edge |
| b | second vertex of edge* |
| collapse_to | either a or b if we should collapse to one of those, or -1 if either is acceptable |