Finished except unittests
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@910 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -430,11 +430,11 @@ open_prog_mesh(const std::string& _filename)
|
||||
|
||||
Mesh::Point bbMin, bbMax;
|
||||
|
||||
bbMin = bbMax = mesh_.point(vIt);
|
||||
bbMin = bbMax = mesh_.point(*vIt);
|
||||
for (; vIt!=vEnd; ++vIt)
|
||||
{
|
||||
bbMin.minimize(mesh_.point(vIt));
|
||||
bbMax.maximize(mesh_.point(vIt));
|
||||
bbMin.minimize(mesh_.point(*vIt));
|
||||
bbMax.maximize(mesh_.point(*vIt));
|
||||
}
|
||||
|
||||
// info
|
||||
@@ -661,7 +661,7 @@ vdpm_analysis()
|
||||
for (h_it=mesh_.halfedges_begin(); h_it!=mesh_.halfedges_end(); ++h_it)
|
||||
{
|
||||
vh = mesh_.to_vertex_handle(*h_it);
|
||||
mesh_.data(h_it).set_vhierarchy_leaf_node_handle(mesh_.data(vh).vhierarchy_node_handle());
|
||||
mesh_.data(*h_it).set_vhierarchy_leaf_node_handle(mesh_.data(vh).vhierarchy_node_handle());
|
||||
}
|
||||
|
||||
for (v_it=mesh_.vertices_begin(); v_it!=mesh_.vertices_end(); ++v_it)
|
||||
|
||||
@@ -539,11 +539,11 @@ open_vd_prog_mesh(const char* _filename)
|
||||
|
||||
VDPMMesh::Point bbMin, bbMax;
|
||||
|
||||
bbMin = bbMax = mesh_.point(vIt);
|
||||
bbMin = bbMax = mesh_.point(*vIt);
|
||||
for (; vIt!=vEnd; ++vIt)
|
||||
{
|
||||
bbMin.minimize(mesh_.point(vIt));
|
||||
bbMax.maximize(mesh_.point(vIt));
|
||||
bbMin.minimize(mesh_.point(*vIt));
|
||||
bbMax.maximize(mesh_.point(*vIt));
|
||||
}
|
||||
|
||||
// set center and radius
|
||||
|
||||
@@ -321,14 +321,14 @@ int main(int argc, char **argv)
|
||||
Mesh::FaceIter f_it;
|
||||
|
||||
for (f_it = mesh.faces_begin(); f_it != mesh.faces_end(); ++f_it)
|
||||
if ( !mesh.status(f_it).deleted() )
|
||||
mesh.update_normal(f_it);
|
||||
if ( !mesh.status(*f_it).deleted() )
|
||||
mesh.update_normal(*f_it);
|
||||
|
||||
for (v_it = mesh.vertices_begin(); v_it != mesh.vertices_end(); ++v_it)
|
||||
if ( !mesh.status(v_it).deleted() )
|
||||
if ( !mesh.status(*v_it).deleted() )
|
||||
{
|
||||
mesh.status(v_it).set_locked(false);
|
||||
mesh.update_normal(v_it);
|
||||
mesh.status(*v_it).set_locked(false);
|
||||
mesh.update_normal(*v_it);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user