Skip to content

Commit 27b8e14

Browse files
authored
Fix crop obb masking in pointcloud generation (#3433)
1 parent 106d427 commit 27b8e14

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nerfstudio/exporter/exporter_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ def generate_point_cloud(
165165

166166
if crop_obb is not None:
167167
mask = crop_obb.within(point)
168-
point = point[mask]
169-
rgb = rgb[mask]
170-
view_direction = view_direction[mask]
171-
if normal is not None:
172-
normal = normal[mask]
168+
point = point[mask]
169+
rgb = rgb[mask]
170+
view_direction = view_direction[mask]
171+
if normal is not None:
172+
normal = normal[mask]
173173

174174
points.append(point)
175175
rgbs.append(rgb)

0 commit comments

Comments
 (0)