FMeshRefinerBase::CheckIfCollapseCreatesFlipOrInvalid

Check if edge collapse will create a face-normal flip.

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 CheckIfCollapseCreatesFlipOrInvalid
(
    int vid,
    int vother,
    const FVector3d & newv,
    int tc,
    int td
) const

Remarks

Check if edge collapse will create a face-normal flip. Also checks if collapse would violate link condition, since we are iterating over one-ring anyway. This only checks one-ring of vid, so you have to call it twice, with vid and vother reversed, to check both one-rings

Parameters

Parameter

Description

vid

first vertex of edge

vother

other vertex of edge

newv

new vertex position after collapse

tc

triangle on one side of edge

td

triangle on other side of edge

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