IMeshSpatial

[IMeshSpatial](API\Runtime\GeometryCore\Spatial\IMeshSpatial) is an extension of [ISpatial](API\Runtime\GeometryCore\Spatial\ISpatial) specifically for meshes

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

ISpatial

IMeshSpatial

TMeshAABBTree3

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/Spatial/SpatialInterfaces.h

Include

#include "Spatial/SpatialInterfaces.h"

Syntax

class IMeshSpatial : public UE::Geometry::ISpatial

Remarks

IMeshSpatial is an extension of ISpatial specifically for meshes

Destructors

Name Description

Public function Virtual

~IMeshSpatial()

Functions

Name Description

Public function Virtual Const

int

 

FindNearestHitTriangle

(
    const FRay3d& Ray,
    const FQueryOptions& Options
)

Public function Virtual Const

bool

 

FindNearestHitTriangle

(
    const FRay3d& Ray,
    double& NearestT,
    int& TID,
    const FQueryOptions& Options
)

Find nearest triangle from the given ray

Public function Const

bool

 

FindNearestHitTriangle

(
    const FRay3d& Ray,
    double& NearestT,
    int& TID,
    FVector3d& BaryCoords,
    const FQueryOptions& Options
)

Find nearest triangle from the given ray

Public function Const

int

 

FindNearestTriangle

(
    const FVector3d& Point,
    double& NearestDistSqrOut,
    const FQueryOptions& Options
)

Public function Const

bool

 

SupportsNearestTriangle()

Public function Const

bool

 

SupportsTriangleRayIntersection()

Classes

Name

Description

Public struct

FQueryOptions

Standard shared options for all mesh spatial queries