Skip to content

Commit

Permalink
Added Room Layout results
Browse files Browse the repository at this point in the history
  • Loading branch information
vevenom committed Apr 22, 2021
1 parent 00e6e73 commit fa43311
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

flags.DEFINE_string('scene', 'scene0000_00', 'scene ID')
flags.DEFINE_string('shapenet_dir', '/media/shreyas/4aa82be1-14a8-47f7-93a7-171e3ebac2b0/Datasets/ShapeNetCore.v2', 'shapenet dir')
flags.DEFINE_bool('add_objects', False, 'add objects to the scene')
flags.DEFINE_bool('add_layout', False, 'add room layout to the scene')
flags.DEFINE_bool('add_objects', True, 'add objects to the scene')
flags.DEFINE_bool('add_layout', True, 'add room layout to the scene')

def visualize(sceneID, add_objects=True, add_layout=True):
# Visualize
Expand All @@ -34,7 +34,6 @@ def visualize(sceneID, add_objects=True, add_layout=True):
col = [0, 0, 1]
lineSets = drawOpen3dCylLines([obj.orientedBB], col)
lineGeometryList.append(lineSets)

finalMesh = deepcopy(mctsObjs.sceneMesh)
for i in range(0, len(geometryList)):
finalMesh += lineGeometryList[i]
Expand Down

0 comments on commit fa43311

Please sign in to comment.