-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[panic] in BVHAccel::recursive_build() #96
Labels
Comments
On the C++ side we can set a breakpoint here (in B+ │285 return CreateTriangleMesh(o2w, w2o, reverseOrientation,
│286 context.indexCtr / 3, context.indices,
│287 vertexCount, context.p, nullptr, context.n,
│288 context.uv, alphaTex, shadowAlphaTex,
>│289 context.faceIndices); At that point we have read 3970 vertices and 23808 indices (divided by 3, means 7936 triangles): (gdb) p context.indexCtr
$3 = 23808
(gdb) p vertexCount
$7 = 3970 Debugging the Rust side (in let mesh = Arc::new(TriangleMesh::new(
*o2w,
*w2o,
reverse_orientation,
tm_vertex_indices.len() / 3, // n_triangles
tm_vertex_indices,
n_vertices,
p_ws, // in world space
s_ws, // in world space
n_ws, // in world space
uvs,
)); We find the same amount of read vertices: (gdb) p n_vertices
$15 = 3970 But the vertex indices are missing!!! (gdb) p tm_vertex_indices
$16 = Vec<usize>(len: 0, cap: 0) |
wahn
referenced
this issue
May 23, 2019
Commit 056f2e4 fixes the issue and also fixes a bug in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: