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