corrected some compilation issue
This commit is contained in:
parent
9e4394a656
commit
0148e9ff4b
|
|
@ -226,7 +226,7 @@ public:
|
||||||
//create the sphere
|
//create the sphere
|
||||||
vcg::tri::Sphere<TriMeshType>(*sphere,SubDirections);
|
vcg::tri::Sphere<TriMeshType>(*sphere,SubDirections);
|
||||||
vcg::tri::UpdateBounding<TriMeshType>::Box(*sphere);
|
vcg::tri::UpdateBounding<TriMeshType>::Box(*sphere);
|
||||||
sphere->face.EnableMark();
|
//sphere->face.EnableMark();
|
||||||
|
|
||||||
///initialize grid
|
///initialize grid
|
||||||
GridSph.Set(sphere->face.begin(),sphere->face.end());
|
GridSph.Set(sphere->face.begin(),sphere->face.end());
|
||||||
|
|
@ -244,7 +244,7 @@ public:
|
||||||
VotingPos.resize(radiusSph*sphere->fn);
|
VotingPos.resize(radiusSph*sphere->fn);
|
||||||
|
|
||||||
///then count votes
|
///then count votes
|
||||||
for (size_t i=0;i<tri_mesh.vert.size();i++)
|
for (size_t i=0;i<tri_mesh.vert.size()-1;i++)
|
||||||
for (size_t j=i+1;j<tri_mesh.vert.size();j++)
|
for (size_t j=i+1;j<tri_mesh.vert.size();j++)
|
||||||
{
|
{
|
||||||
VertexType *v0=&tri_mesh.vert[i];
|
VertexType *v0=&tri_mesh.vert[i];
|
||||||
|
|
@ -252,7 +252,6 @@ public:
|
||||||
if ((OnlyBorder)&&(!((v0->IsB())&&(v1->IsB()))))continue;
|
if ((OnlyBorder)&&(!((v0->IsB())&&(v1->IsB()))))continue;
|
||||||
Elect(v0->P(),v1->P());
|
Elect(v0->P(),v1->P());
|
||||||
}
|
}
|
||||||
|
|
||||||
SortedPlanes.resize(Votes.size());
|
SortedPlanes.resize(Votes.size());
|
||||||
for (size_t i=0;i<Votes.size();i++)
|
for (size_t i=0;i<Votes.size();i++)
|
||||||
SortedPlanes[i]=std::pair<ScalarType,int>(Votes[i],i);
|
SortedPlanes[i]=std::pair<ScalarType,int>(Votes[i],i);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue