TMeshQueries::VertexToSurfaceDistances

For each vertex on MeshA, compute the distance to the nearest point on the surface contained in SpatialB.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "MeshQueries.h"

Syntax

template<typename MeshSpatialType>
static void VertexToSurfaceDistances
(
    const TriangleMeshType & MeshA,
    const MeshSpatialType & SpatialB,
    TArray< double > & Distances
)

Remarks

For each vertex on MeshA, compute the distance to the nearest point on the surface contained in SpatialB.

Parameters

Parameter

Description

MeshA

The mesh whose vertex distances should be computed.

SpatialB

The target surface's acceleration structure.

Distances

For each vertex in MeshA, the distance to the closest point in SpatialB.

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