Skip to content

Commit

Permalink
Fix crop obb masking in pointcloud generation (#3433)
Browse files Browse the repository at this point in the history
  • Loading branch information
nepfaff authored Sep 16, 2024
1 parent 106d427 commit 27b8e14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nerfstudio/exporter/exporter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ def generate_point_cloud(

if crop_obb is not None:
mask = crop_obb.within(point)
point = point[mask]
rgb = rgb[mask]
view_direction = view_direction[mask]
if normal is not None:
normal = normal[mask]
point = point[mask]
rgb = rgb[mask]
view_direction = view_direction[mask]
if normal is not None:
normal = normal[mask]

points.append(point)
rgbs.append(rgb)
Expand Down

0 comments on commit 27b8e14

Please sign in to comment.