mirror of https://github.com/CGAL/cgal
Bugfix in wrapper for regularization
This commit is contained in:
parent
f6b49d3cae
commit
455e341731
|
|
@ -126,7 +126,7 @@ namespace CGAL {
|
||||||
extracted_planes.push_back (static_cast<Plane> (*(m_planes[i])));
|
extracted_planes.push_back (static_cast<Plane> (*(m_planes[i])));
|
||||||
plane_point_index.push_back (std::vector<int>());
|
plane_point_index.push_back (std::vector<int>());
|
||||||
std::copy (m_planes[i]->indices_of_assigned_points().begin (),
|
std::copy (m_planes[i]->indices_of_assigned_points().begin (),
|
||||||
m_planes[i]->indices_of_assigned_points().begin (),
|
m_planes[i]->indices_of_assigned_points().end (),
|
||||||
std::back_inserter (plane_point_index.back ()));
|
std::back_inserter (plane_point_index.back ()));
|
||||||
|
|
||||||
std::vector < Point > listp;
|
std::vector < Point > listp;
|
||||||
|
|
@ -227,7 +227,7 @@ namespace CGAL {
|
||||||
|
|
||||||
if(cluster_normal*normal_it <0)
|
if(cluster_normal*normal_it <0)
|
||||||
normal_it=-normal_it;
|
normal_it=-normal_it;
|
||||||
|
|
||||||
cluster_normal=(FT)cumulated_area*cluster_normal+(FT)list_areas[it]*normal_it;
|
cluster_normal=(FT)cumulated_area*cluster_normal+(FT)list_areas[it]*normal_it;
|
||||||
FT norm=1./sqrt(cluster_normal.squared_length());
|
FT norm=1./sqrt(cluster_normal.squared_length());
|
||||||
cluster_normal=norm*cluster_normal;
|
cluster_normal=norm*cluster_normal;
|
||||||
|
|
@ -343,7 +343,7 @@ namespace CGAL {
|
||||||
for (std::size_t i=0; i<group_planes_orthogonal.size();i++)
|
for (std::size_t i=0; i<group_planes_orthogonal.size();i++)
|
||||||
{
|
{
|
||||||
std::cout<<std::endl<<i<<" -> ";
|
std::cout<<std::endl<<i<<" -> ";
|
||||||
for (std::size_t j=0;j<group_planes_orthogonal.size();j++)
|
for (std::size_t j=0;j<group_planes_orthogonal[i].size();j++)
|
||||||
{
|
{
|
||||||
if(group_planes_orthogonal[i][j])
|
if(group_planes_orthogonal[i][j])
|
||||||
std::cout<<j<<" ";
|
std::cout<<j<<" ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue