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:
Returns:

output_bvh (GeometryScriptDynamicMeshBVH):

Return type:

GeometryScriptDynamicMeshBVH

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:
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:
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:
Returns:

is_valid (bool):

Return type:

bool

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:
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:
Returns:

update_bvh (GeometryScriptDynamicMeshBVH):

Return type:

GeometryScriptDynamicMeshBVH

classmethod reset_bvh(reset_bvh) GeometryScriptDynamicMeshBVH

Reset BVH

Parameters:

reset_bvh (GeometryScriptDynamicMeshBVH) –

Returns:

reset_bvh (GeometryScriptDynamicMeshBVH):

Return type:

GeometryScriptDynamicMeshBVH