Navigation
API > API/Runtime > API/Runtime/GeometryCore
| Name | TMeshQueries |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/MeshQueries.h |
| Include Path | #include "MeshQueries.h" |
Syntax
template<class TriangleMeshType>
class TMeshQueries
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMeshQueries() |
MeshQueries.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static double AverageEdgeLength
(
const TriangleMeshType& Mesh |
Compute the mean edge length for the given mesh. | MeshQueries.h | |
static void EdgeLengthStats
(
const TriangleMeshType& Mesh, |
Compute the min, max, and mean edge lengths for the given mesh. | MeshQueries.h | |
static void EdgeLengthStatsFromEdges
(
const TriangleMeshType& Mesh, |
Given a mesh and a subset of mesh edges, compute the min, max, and mean edge lengths. | MeshQueries.h | |
| Expand selection of vertices with one-ring neighbors. | MeshQueries.h | ||
static int FindHitTriangle_LinearSearch
(
const TriangleMeshType& Mesh, |
Brute force search for nearest triangle intersection | MeshQueries.h | |
static void FindHitTriangles_LinearSearch
(
const TriangleMeshType& Mesh, |
Brute force search for all triangle intersections, sorted | MeshQueries.h | |
static FIndex2i FindIntersectingTriangles_LinearSearch
(
const TriangleMeshType& Mesh1, |
Brute force search for any intersecting triangles on two meshes | MeshQueries.h | |
static FVector3d FindNearestPoint_LinearSearch
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static int FindNearestTriangle_LinearSearch
(
const TriangleMeshType& Mesh, |
Brute force search for nearest triangle to Point | MeshQueries.h | |
static void GetAllEdgeLengths
(
const TriangleMeshType& Mesh, |
Compute the length for each edge and return the result as an array of Mesh.MaxEdgeID() size. | MeshQueries.h | |
static FAxisAlignedBox3d GetBounds
(
const TriangleMeshType& Mesh |
MeshQueries.h | ||
static FVector3d GetMeshVerticesCentroid
(
const TriangleMeshType& Mesh |
Get the average of the mesh vertices. | MeshQueries.h | |
static FAxisAlignedBox3d GetTrianglesBounds
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static FAxisAlignedBox3d GetTriBounds
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static FVector3d GetTriCentroid
(
const TriangleMeshType& Mesh, |
Compute triangle centroid | MeshQueries.h | |
static void GetTriNormalAreaCentroid
(
const TriangleMeshType& Mesh, |
Compute the normal, area, and centroid of a triangle all together | MeshQueries.h | |
| Get triangles that contain at least on vertex in the Vertices array. | MeshQueries.h | ||
static FVector3d GetVertexWeightsOnTriangle
(
const TriangleMeshType& Mesh, |
Retrieve the area and/or angle weights for each vertex of a triangle. | MeshQueries.h | |
static FAxisAlignedBox3d GetVerticesBounds
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static FVector2d GetVolumeArea
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static FVector2d GetVolumeArea
(
const TriangleMeshType& Mesh |
MeshQueries.h | ||
static FVector2d GetVolumeAreaCenter
(
const TriangleMeshType& Mesh, |
MeshQueries.h | ||
static double GetVolumeNonWatertight
(
const TriangleMeshType& Mesh, |
Get the volume of a mesh using a method that is more robust to inputs with holes | MeshQueries.h | |
static double HausdorffDistance
(
const TriangleMeshType& MeshA, |
Compute all vertex-to-surface distances in parallel. | MeshQueries.h | |
static double HausdorffDistanceSerial
(
const TriangleMeshType& MeshA, |
Compute all distances in serial, then a serial raw loop to find max. | MeshQueries.h | |
static double MaxEdgeLength
(
const TriangleMeshType& Mesh |
Compute the longest edge length for the given mesh. | MeshQueries.h | |
static void MeshDistanceStatistics
(
const TriangleMeshType& MeshA, |
Compute various statistics on distances between two meshes | MeshQueries.h | |
static double MinEdgeLength
(
const TriangleMeshType& Mesh |
Compute the shortest edge length for the given mesh. | MeshQueries.h | |
static FIntrRay3Triangle3d RayTriangleIntersection
(
const TriangleMeshType& Mesh, |
Convenience function to construct a IntrRay3Triangle3 object for a Mesh triangle | MeshQueries.h | |
static double TotalEdgeLength
(
const TriangleMeshType& Mesh, |
Given a mesh and a subset of mesh edges, compute the total length of all the edges. | MeshQueries.h | |
static FDistPoint3Triangle3d TriangleDistance
(
const TriangleMeshType& Mesh, |
Construct a DistPoint3Triangle3 object for a Mesh triangle | MeshQueries.h | |
static FIntrRay3Triangle3d TriangleIntersection
(
const TriangleMeshType& Mesh, |
Convenience function to construct a IntrRay3Triangle3 object for a Mesh triangle | MeshQueries.h | |
static double TriDistanceSqr
(
const TriangleMeshType& Mesh, |
Compute distance from Point to triangle in Mesh, with minimal extra objects/etc | MeshQueries.h | |
static double TwoSidedHausdorffDistance
(
const TriangleMeshType& MeshA, |
Because Hausdorff distance is not symmetric, we compute the maximum of the distances between two surfaces. | MeshQueries.h | |
static double TwoSidedHausdorffDistanceSerial
(
const TriangleMeshType& MeshA, |
MeshQueries.h | ||
static void VertexToSurfaceDistances
(
const TriangleMeshType& MeshA, |
For each vertex on MeshA, compute the distance to the nearest point on the surface contained in SpatialB. | MeshQueries.h | |
static void VertexToSurfaceDistancesSerial
(
const TriangleMeshType& MeshA, |
Compute all vertex-to-surface distances in serial. Should only be used for debugging the parallel version above! | MeshQueries.h |