Measurement: optimize feature extraction:
- do not call ransac when not needed - decrease number of ransac iterations - precalculate inverse of transformation matrix - pass the min error from ransac algorithm, do not calculate it again
This commit is contained in:
parent
bed64cb7c7
commit
a37f09edaa
5 changed files with 40 additions and 55 deletions
|
@ -654,7 +654,6 @@ void GLGizmoMeasure::on_render()
|
|||
GLModel::Geometry init_data = init_plane_data(its, plane_triangles);
|
||||
m_plane.reset();
|
||||
m_plane.mesh_raycaster = std::make_unique<MeshRaycaster>(std::make_shared<const TriangleMesh>(init_data.get_as_indexed_triangle_set()));
|
||||
m_plane.model.init_from(std::move(init_data));
|
||||
}
|
||||
|
||||
m_raycasters.insert({ PLANE_ID, m_parent.add_raycaster_for_picking(SceneRaycaster::EType::Gizmo, PLANE_ID, *m_plane.mesh_raycaster) });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue