Skip to content

Doubt in 3d box construction #2

Description

@arshemii

In the following method:

def _construct_box_3d(self, l, h, w):
"""
Compute the coordinates of the vertices of a 3D bounding box in an
object coordinate system.
"""
x_corners = [0.5l, l, l, l, l, 0, 0, 0, 0]
y_corners = [0.5
h, 0, h, 0, h, 0, h, 0, h]
z_corners = [0.5*w, w, w, 0, 0, w, w, 0, 0]
x_corners += - np.float32(l) / 2
y_corners += - np.float32(h)
z_corners += - np.float32(w) / 2
corners_3d = np.array([x_corners, y_corners, z_corners])
return corners_3d

Why x is calculated from l
and why z is calculated from w?

Shouldn't be the opposite?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions