TMeshQueries::GetVolumeNonWatertight

Get the volume of a mesh using a method that is more robust to inputs with holes

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/MeshQueries.h

Include

#include "MeshQueries.h"

Syntax

static double GetVolumeNonWatertight
(
    const TriangleMeshType & Mesh,
    double DimScaleFactor
)

Remarks

Get the volume of a mesh using a method that is more robust to inputs with holes

Returns

Mesh volume (scaled by DimScaleFactor^3)

Parameters

Parameter

Description

Mesh

Input shape

DimScaleFactor

Scale factor to apply to each dimension; useful for keeping volume calculation in a good range for floating point precision

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