-
Notifications
You must be signed in to change notification settings - Fork 6
geometry_utils.py
Andrew Edgley edited this page Feb 21, 2023
·
2 revisions
Contains general functions that are mainly used for geometry.
- transform_matrix [16]
- A list of 16 floats that represent a flattened 4x4 transform matrix
- box1 {dict}
- Specifies a dictionary object for the first box being compared.
- Dictionary should have keys: "origin" and "size"
- box2 {dict}
- Specifies a dictionary object for the second box being compared.
- Dictionary should have keys: "origin" and "size"
This function is used to test whether two axis aligned 3D boxes overlap.
- box1 {dict}
- Specifies a dictionary object for the first box being compared.
- Dictionary should have keys: "origin"
- box2 {dict}
- Specifies a dictionary object for the second box being compared.
- Dictionary should have keys: "origin"
This function is used to get the distance between the origins of two boxes
- box {dict}
- A dictionary representing the particular bounding box
Returns any array of x,y,z coordinates for all 8 vertices that make up the bounding box.
- box {dict}
- Represents a dictionary object that contains the information for the current annotation
- point_cloud {numpy.array[numpy.float64[3, 1]]}
- An array representing the points in the current point cloud
Calculates the number of points in the point cloud that are bounded by the input bounding box.