Skip to content

Commit

Permalink
Fixed an assertion bug which happens when a mesh only has 2 faces (GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkaChan authored and shi-eric committed Jan 17, 2025
1 parent ea113f4 commit 39ef7b3
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 39ef7b3

Please sign in to comment.