unreal.GeometryScript_OrientedBox

class unreal.GeometryScript_OrientedBox(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Oriented Box methods

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: ShapeFunctions.h

classmethod convert_oriented_box_to_axis_aligned_box(box) Box

Find the bounding Box enclosing the input Oriented Box.

Parameters:

box (OrientedBox)

Return type:

Box

classmethod find_closest_point_on_oriented_box(box, point) -> (Vector, is_inside_or_on=bool)

Find the point on the faces of the Box that is closest to the input Point. If the Point is inside the Box, it is returned, ie points Inside do not project to the Box Faces

Parameters:
Returns:

is_inside_or_on (bool): if the Point is inside or on the Box, this will return as true, otherwise false

Return type:

bool

classmethod get_expanded_oriented_box(oriented_box, expand_by, min_extent=0.000000) OrientedBox

Get the Oriented Box with extents expanded by the ExpandBy vector Can also shrink the box if negative ExpandBy values are provided, but will clamp to Max(0, MinExtent)

Parameters:
Return type:

OrientedBox

classmethod get_oriented_box_corner(box, corner_index) Vector

Get the position of a corner of the Oriented Box. Corners are indexed from 0 to 7: Corner 0 is in the negative direction along each axis, 1/2/3 are along +Z/+Y/+X from the corner 0, 7 is the all-positive direction corner, and 4/5/6 are along -Z/-Y/-X from the corner 7.

Parameters:
Return type:

Vector

classmethod get_oriented_box_face_center(box, face_index) -> (Vector, face_normal=Vector)

Get the position of the center of a face of the Oriented Box. Faces are indexed from 0 to 5, using an ordering where 0/1 are the negative then positive Z-axis faces, 2/3 are Y-axis faces, and 4/5 are X-axis faces

Parameters:
Returns:

face_normal (Vector): returned Normal vector of the identified face

Return type:

Vector

classmethod get_oriented_box_orientation(box) Rotator

Get the orientation of an Oriented Box

Parameters:

box (OrientedBox)

Return type:

Rotator

classmethod get_oriented_box_volume_area(box) -> (volume=double, surface_area=double)

Get the Volume and Surface Area of an Oriented Box

Parameters:

box (OrientedBox)

Returns:

volume (double):

surface_area (double):

Return type:

tuple

classmethod get_transformed_oriented_box(oriented_box, transform) OrientedBox

Apply the Transform to the Oriented Box

Parameters:
Return type:

OrientedBox

classmethod make_oriented_box_from_box(box, transform) OrientedBox

Create an Oriented Box from a Box and a Transform

Parameters:
Return type:

OrientedBox

classmethod test_box_oriented_box_intersection(box, oriented_box) bool

Test if an axis-aligned box intersects an oriented box

Parameters:
Return type:

bool

classmethod test_oriented_box_oriented_box_intersection(box1, box2) bool

Test if two oriented boxes intersect

Parameters:
Return type:

bool

classmethod test_point_inside_or_on_oriented_box(box, point) bool

Test if a Point is inside or on the Box, returning true if so, otherwise false

Parameters:
Return type:

bool