unreal.GeometryScript_MeshSpatial
¶
- class unreal.GeometryScript_MeshSpatial(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
BlueprintFunctionLibrary
Geometry Script Library Mesh Spatial
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: MeshSpatialFunctions.h
- classmethod build_bvh_for_mesh(target_mesh, debug=None) -> (DynamicMesh, output_bvh=GeometryScriptDynamicMeshBVH)¶
Build BVHFor Mesh
- Parameters:
target_mesh (DynamicMesh) –
debug (GeometryScriptDebug) –
- Returns:
output_bvh (GeometryScriptDynamicMeshBVH):
- Return type:
- classmethod find_nearest_point_on_mesh(target_mesh, query_bvh, query_point, options, debug=None) -> (DynamicMesh, nearest_result=GeometryScriptTrianglePoint, outcome=GeometryScriptSearchOutcomePins)¶
Find Nearest Point on Mesh
- Parameters:
target_mesh (DynamicMesh) –
query_bvh (GeometryScriptDynamicMeshBVH) –
query_point (Vector) –
options (GeometryScriptSpatialQueryOptions) –
debug (GeometryScriptDebug) –
- Returns:
nearest_result (GeometryScriptTrianglePoint):
outcome (GeometryScriptSearchOutcomePins):
- Return type:
tuple
- classmethod find_nearest_ray_intersection_with_mesh(target_mesh, query_bvh, ray_origin, ray_direction, options, debug=None) -> (DynamicMesh, hit_result=GeometryScriptRayHitResult, outcome=GeometryScriptSearchOutcomePins)¶
Find Nearest Ray Intersection with Mesh
- Parameters:
target_mesh (DynamicMesh) –
query_bvh (GeometryScriptDynamicMeshBVH) –
ray_origin (Vector) –
ray_direction (Vector) –
options (GeometryScriptSpatialQueryOptions) –
debug (GeometryScriptDebug) –
- Returns:
hit_result (GeometryScriptRayHitResult):
outcome (GeometryScriptSearchOutcomePins):
- Return type:
tuple
- classmethod is_bvh_valid_for_mesh(target_mesh, test_bvh, debug=None) -> (DynamicMesh, is_valid=bool)¶
Is BVHValid for Mesh
- Parameters:
target_mesh (DynamicMesh) –
test_bvh (GeometryScriptDynamicMeshBVH) –
debug (GeometryScriptDebug) –
- Returns:
is_valid (bool):
- Return type:
- classmethod is_point_inside_mesh(target_mesh, query_bvh, query_point, options, debug=None) -> (DynamicMesh, is_inside=bool, outcome=GeometryScriptContainmentOutcomePins)¶
Is Point Inside Mesh
- Parameters:
target_mesh (DynamicMesh) –
query_bvh (GeometryScriptDynamicMeshBVH) –
query_point (Vector) –
options (GeometryScriptSpatialQueryOptions) –
debug (GeometryScriptDebug) –
- Returns:
is_inside (bool):
outcome (GeometryScriptContainmentOutcomePins):
- Return type:
tuple
- classmethod rebuild_bvh_for_mesh(target_mesh, update_bvh, only_if_invalid=True, debug=None) -> (DynamicMesh, update_bvh=GeometryScriptDynamicMeshBVH)¶
Rebuild BVHFor Mesh
- Parameters:
target_mesh (DynamicMesh) –
update_bvh (GeometryScriptDynamicMeshBVH) –
only_if_invalid (bool) –
debug (GeometryScriptDebug) –
- Returns:
update_bvh (GeometryScriptDynamicMeshBVH):
- Return type:
- classmethod reset_bvh(reset_bvh) GeometryScriptDynamicMeshBVH ¶
Reset BVH
- Parameters:
reset_bvh (GeometryScriptDynamicMeshBVH) –
- Returns:
reset_bvh (GeometryScriptDynamicMeshBVH):
- Return type: