mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-09-02 17:12:28 +02:00
Fix performance bottleneck in IGL
This commit is contained in:
@@ -29,7 +29,9 @@ IGL_INLINE bool igl::ray_mesh_intersect(
|
||||
// Should be but can't be const
|
||||
Vector3d s_d = s.template cast<double>();
|
||||
Vector3d dir_d = dir.template cast<double>();
|
||||
hits.clear();
|
||||
hits.clear();
|
||||
hits.reserve(F.rows());
|
||||
|
||||
// loop over all triangles
|
||||
for(int f = 0;f<F.rows();f++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user