FMeshRefinerBase::CanCollapseEdge

Figure out if we can collapse edge eid=[a,b] under current constraint set.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshRefinerBase.h

Include

#include "MeshRefinerBase.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshRefinerBase.cpp

Syntax

bool CanCollapseEdge
(
    int eid,
    int a,
    int b,
    int c,
    int d,
    int tc,
    int td,
    int & collapse_to
) 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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss