distance3d.geometry.convert_box_to_face

distance3d.geometry.convert_box_to_face(box2origin, size, i, sign)[source]

Convert box to face.

Parameters:
box2originarray, shape (4, 4)

Pose of the box.

sizearray, shape (3,)

Size of the box along its axes.

iint

Index of the axis along which we select the face.

signint

Indicate the direction along the axis.

Returns:
face_centerarray, shape (3,)

Center point of the rectangle.

face_axesarray, shape (2, 3)

Each row is a vector of unit length, indicating the direction of one axis of the rectangle. Both vectors are orthogonal.

face_lengthsarray, shape (2,)

Lengths of the two sides of the rectangle.