Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshRefinerBase
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/MeshRefinerBase.h |
| Include | #include "MeshRefinerBase.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/MeshRefinerBase.cpp |
bool CanCollapseEdge
&40;
int eid,
int a,
int b,
int c,
int d,
int tc,
int td,
int & collapse_to
&41; const
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |