Skip to content

Commit

Permalink
Trivial: table scene builder height and width
Browse files Browse the repository at this point in the history
  • Loading branch information
arth-shukla committed Jan 25, 2024
1 parent 41ed0e4 commit 74d3db6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mani_skill2/utils/scene_builder/table/table_scene_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ def build(self):
.find_component_by_type(sapien.render.RenderBodyComponent)
.compute_global_aabb_tight()
)
self.table_width = aabb[1, 0] - aabb[0, 0]
self.table_length = aabb[1, 1] - aabb[0, 1]
self.table_height = aabb[1, 2] - aabb[0, 2]

print(self.table_width, self.table_length, self.table_height)

self.ground = build_tesselated_square_floor(
self.scene, altitude=-self.table_height
)
Expand Down

0 comments on commit 74d3db6

Please sign in to comment.