Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshRefinerBase
Description
Figure out if we can collapse edge eid=[a,b] under current constraint set. First we resolve vertex constraints using CanCollapseVertex(). However this does not catch some topological cases at the edge-constraint level, which which we will only be able to detect once we know if we are losing a or b. See comments on CanCollapseVertex() for what collapse_to is for. Figure out if we can collapse edge eid=[a,b] under current constraint set. First we resolve vertex constraints using CanCollapseVertex(). However this does not catch some topological cases at the edge-constraint level, which which we will only be able to detect once we know if we are losing a or b. See comments on CanCollapseVertex() for what collapse_to is for.
| Name | CanCollapseEdge |
| 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 CanCollapseEdge
(
int eid,
int a,
int b,
int c,
int d,
int tc,
int td,
int & collapse_to
) const
Parameters
| Name | Remarks |
|---|---|
| a | first vertex of edge |
| b | second vertex of edge |
| c | opposing vertex 1 |
| d | opposing vertex 2 |
| tc | index of triangle [a,b,c] |
| td | index of triangle [a,b,d] |
| collapse_to | either a or b if we should collapse to one of those, or -1 if either is acceptable |