Open stijn-ucrowds opened 3 years ago
The newest version (0.5.5) does not crash on the same panic! anymore, but now has an index out of bounds issue.
thread 'main' panicked at 'Index 121 is out of bounds!', C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:315:13
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\std\src\panicking.rs:493
1: std::panicking::begin_panic_fmt
at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\std\src\panicking.rs:435
2: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:315
3: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
4: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
5: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
6: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
7: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
8: rtbvh::mbvh_node::MbvhNode::merge_nodes
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\mbvh_node.rs:334
9: rtbvh::bvh::Mbvh::construct
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\bvh.rs:373
10: rtbvh::bvh::{{impl}}::from
at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rtbvh-0.5.5\src\bvh.rs:419
During MBVH construction the algorithm panics.
With the following input triangles.
This being 5 triangles composed of 3 points each composed of 3 components, so:
And then repeat