TMeshQueries

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "MeshQueries.h"

Syntax

template<class TriangleMeshType>
class TMeshQueries

Constructors

Name Description

Public function

TMeshQueries()

Functions

Name Description

Public function Static

int

 

FindHitTriangle_LinearSearch

(
    const TriangleMeshType& Mesh,
    const FRay3d& Ray
)

Brute force search for nearest triangle intersection

Public function Static

void

 

FindHitTriangles_LinearSearch

(
    const TriangleMeshType& Mesh,
    const FRay3d& Ray,
    TArray< TPair< float, int >>& Sort...
)

Brute force search for all triangle intersections, sorted

Public function Static

FVector3d

 

FindNearestPoint_LinearSearch

(
    const TriangleMeshType& Mesh,
    const FVector3d& P
)

Public function Static

int

 

FindNearestTriangle_LinearSearch

(
    const TriangleMeshType& Mesh,
    const FVector3d& P
)

Brute force search for nearest triangle to Point

Public function Static

FAxisAligned...

 

GetTriBounds

(
    const TriangleMeshType& Mesh,
    int TID
)

Public function Static

FVector3d

 

GetTriCentroid

(
    const TriangleMeshType& Mesh,
    int TriIdx
)

Compute triangle centroid

Public function Static

void

 

GetTriNormalAreaCentroid

(
    const TriangleMeshType& Mesh,
    int TriIdx,
    FVector3d& Normal,
    double& Area,
    FVector3d& Centroid
)

Compute the normal, area, and centroid of a triangle all together

Public function Static

FVector2d

 

GetVolumeArea

(
    const TriangleMeshType& Mesh
)

Public function Static

FIntrRay3Tri...

 

RayTriangleIntersection

(
    const TriangleMeshType& Mesh,
    int TriIdx,
    const FRay3d& Ray
)

Convenience function to construct a IntrRay3Triangle3 object for a Mesh triangle

Public function Static

FDistPoint3T...

 

TriangleDistance

(
    const TriangleMeshType& Mesh,
    int TriIdx,
    FVector3d Point
)

Construct a DistPoint3Triangle3 object for a Mesh triangle

Public function Static

FIntrRay3Tri...

 

TriangleIntersection

(
    const TriangleMeshType& Mesh,
    int TriIdx,
    const FRay3d& Ray
)

Convenience function to construct a IntrRay3Triangle3 object for a Mesh triangle

Public function Static

double

 

TriDistanceSqr

(
    const TriangleMeshType& Mesh,
    int TriIdx,
    const FVector3d& Point
)

Compute distance from Point to triangle in Mesh, with minimal extra objects/etc

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