Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_MeshSpatial
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSpatialFunctions.h |
| Include | #include "GeometryScript/MeshSpatialFunctions.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"GeometryScript_MeshSpatial"&41;&41;
class UGeometryScriptLibrary_MeshSpatial : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| UDynamicMesh * | BuildBVHForMesh
(
UDynamicMesh* TargetMesh, |
Builds a Bounding Volume Hierarchy (BVH) object for a mesh that can be used with multiple spatial queries. | |
| UDynamicMesh * | FindNearestPointOnMesh
(
UDynamicMesh* TargetMesh, |
Finds the nearest point (Nearest Result) on the Target Mesh to a given 3D point (Query Point) by using the Query BVH. | |
| UDynamicMesh * | FindNearestRayIntersectionWithMesh
(
UDynamicMesh* TargetMesh, |
Finds the nearest intersection of a 3D ray with the mesh by using the Query BVH. | |
| UDynamicMesh * | IsBVHValidForMesh
(
UDynamicMesh* TargetMesh, |
Checks if the provided Bounding Volume Hierarchy (BVH) can still be used with the Mesh — it generally returns false if the mesh has been changed. | |
| UDynamicMesh * | IsPointInsideMesh
(
UDynamicMesh* TargetMesh, |
Tests if a point is inside the mesh using the Fast Winding Number query and data stored in the BVH. | |
| UDynamicMesh * | RebuildBVHForMesh
(
UDynamicMesh* TargetMesh, |
Rebuilds the Bounding Volume Hierarchy (BVH) for the mesh in-place, which can reduce memory allocations, compared to building a new BVH. | |
| void | ResetBVH
(
FGeometryScriptDynamicMeshBVH& ResetBVH |
Reset the Bounding Volume Hierarchy (BVH) by clearing all the internal data. | |
| UDynamicMesh * | SelectMeshElementsInBoxWithBVH
(
UDynamicMesh* TargetMesh, |
Create Mesh Selection of mesh elements in TargetMesh contained by QueryBox, using QueryBVH to accellerate the computation. |