Skip to content

Commit

Permalink
Merge branch 'bvh_fix' into 'main'
Browse files Browse the repository at this point in the history
Fixed an assertion bug which happens when a mesh only has 2 faces

See merge request omniverse/warp!991
  • Loading branch information
shi-eric committed Jan 17, 2025
2 parents dcbddf4 + 39ef7b3 commit fcc6d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warp/native/bvh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ float TopDownBVHBuilder::partition_sah(BVH& bvh, const vec3* lowers, const vec3*

int TopDownBVHBuilder::build_recursive(BVH& bvh, const vec3* lowers, const vec3* uppers, int start, int end, int depth, int parent)
{
assert(end - start >= 2);
assert(start < end);

// printf("start %d end %d\n", start, end);

Expand Down

0 comments on commit fcc6d60

Please sign in to comment.