Gaurav commited on
Commit
e94ff98
1 Parent(s): 5dbff37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -36,7 +36,13 @@ def visualize_instance_seg_mask(mask):
36
  image[i, j, :] = label2color[mask[i, j]]
37
 
38
  window_vertices = np.array([[x, 0, -y] for x, y in window])
39
- print(window_vertices)
 
 
 
 
 
 
40
  image = image / 255
41
  return image
42
 
 
36
  image[i, j, :] = label2color[mask[i, j]]
37
 
38
  window_vertices = np.array([[x, 0, -y] for x, y in window])
39
+
40
+ # Define indices for triangles (assuming triangle faces)
41
+ window_indices = np.array([0, 1, 2], dtype=np.uint32) # Example indices for window triangle
42
+
43
+ # Concatenate vertices and indices
44
+ vertices = np.concatenate((window_vertices, floor_vertices))
45
+ print(vertices)
46
  image = image / 255
47
  return image
48