Replaced all .handle() calls
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@904 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -190,7 +190,7 @@ size_t McDecimaterT<Mesh>::decimate(size_t _n_collapses) {
|
||||
typename Mesh::VertexFaceIter vf_it = mesh_.vf_iter(ci.v1);
|
||||
for (; vf_it; ++vf_it)
|
||||
if (!mesh_.status(vf_it).deleted())
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(vf_it.handle()));
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(*vf_it));
|
||||
|
||||
// post-process collapse
|
||||
this->postprocess_collapse(ci);
|
||||
@@ -324,7 +324,7 @@ size_t McDecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
|
||||
typename Mesh::VertexFaceIter vf_it = mesh_.vf_iter(ci.v1);
|
||||
for (; vf_it; ++vf_it)
|
||||
if (!mesh_.status(vf_it).deleted())
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(vf_it.handle()));
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(*vf_it));
|
||||
|
||||
// post-process collapse
|
||||
this->postprocess_collapse(ci);
|
||||
@@ -478,7 +478,7 @@ size_t McDecimaterT<Mesh>::decimate_constraints_only(float _factor) {
|
||||
typename Mesh::VertexFaceIter vf_it = mesh_.vf_iter(ci.v1);
|
||||
for (; vf_it; ++vf_it)
|
||||
if (!mesh_.status(vf_it).deleted())
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(vf_it.handle()));
|
||||
mesh_.set_normal(vf_it, mesh_.calc_face_normal(*vf_it));
|
||||
|
||||
// post-process collapse
|
||||
this->postprocess_collapse(ci);
|
||||
|
||||
@@ -113,7 +113,7 @@ void ModAspectRatioT<MeshT>::preprocess_collapse(const CollapseInfo& _ci) {
|
||||
typename Mesh::FVIter fv_it;
|
||||
|
||||
for (typename Mesh::VFIter vf_it = mesh_.vf_iter(_ci.v0); vf_it; ++vf_it) {
|
||||
fh = vf_it.handle();
|
||||
fh = *vf_it;
|
||||
if (fh != _ci.fl && fh != _ci.fr) {
|
||||
typename Mesh::Point& p0 = mesh_.point(fv_it = mesh_.fv_iter(fh));
|
||||
typename Mesh::Point& p1 = mesh_.point(++fv_it);
|
||||
@@ -134,14 +134,14 @@ float ModAspectRatioT<MeshT>::collapse_priority(const CollapseInfo& _ci) {
|
||||
typename Mesh::Scalar r0, r1, r0_min(1.0), r1_min(1.0);
|
||||
typename Mesh::CVVIter vv_it(mesh_, _ci.v0);
|
||||
|
||||
v3 = vv_it.handle();
|
||||
v3 = *vv_it;
|
||||
p3 = &mesh_.point(v3);
|
||||
|
||||
while (vv_it) {
|
||||
v2 = v3;
|
||||
p2 = p3;
|
||||
|
||||
v3 = (++vv_it).handle();
|
||||
v3 = *(++vv_it);
|
||||
p3 = &mesh_.point(v3);
|
||||
|
||||
fh = mesh_.face_handle(vv_it.current_halfedge_handle());
|
||||
|
||||
@@ -216,7 +216,7 @@ collapse_priority(const CollapseInfo& _ci)
|
||||
// collect all points to be tested
|
||||
// collect all faces to be tested against
|
||||
for (vf_it=mesh_.vf_iter(_ci.v0); vf_it; ++vf_it) {
|
||||
fh = vf_it.handle();
|
||||
fh = *vf_it;
|
||||
|
||||
if (fh != _ci.fl && fh != _ci.fr)
|
||||
faces.push_back(fh);
|
||||
@@ -290,7 +290,7 @@ postprocess_collapse(const CollapseInfo& _ci)
|
||||
|
||||
// collect active faces and their points
|
||||
for (vf_it=mesh_.vf_iter(_ci.v1); vf_it; ++vf_it) {
|
||||
fh = vf_it.handle();
|
||||
fh = *vf_it;
|
||||
faces.push_back(fh);
|
||||
|
||||
Points& pts = mesh_.property(points_, fh);
|
||||
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
if (_ci.vrv0.is_valid()) fhr = mesh_.face_handle(_ci.vrv0);
|
||||
|
||||
for (; vf_it; ++vf_it) {
|
||||
fh = vf_it.handle();
|
||||
fh = *vf_it;
|
||||
if (fh != _ci.fl && fh != _ci.fr) {
|
||||
NormalCone nc = mesh_.property(normal_cones_, fh);
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
|
||||
for (; vf_it; ++vf_it)
|
||||
{
|
||||
fh = vf_it.handle();
|
||||
fh = *vf_it;
|
||||
if (fh != _ci.fl && fh != _ci.fr)
|
||||
{
|
||||
typename Mesh::Normal n1 = Base::mesh().normal(fh);
|
||||
|
||||
@@ -92,7 +92,7 @@ write( const std::string& _ofname )
|
||||
for (; v_it != v_end; ++v_it)
|
||||
if (!Base::mesh().status(v_it).deleted())
|
||||
{
|
||||
vhandles[i] = v_it.handle();
|
||||
vhandles[i] = *v_it;
|
||||
Base::mesh().property( idx_, v_it ) = i;
|
||||
++i;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ write( const std::string& _ofname )
|
||||
{
|
||||
if (!Base::mesh().status(f_it).deleted())
|
||||
{
|
||||
typename Mesh::ConstFaceVertexIter fv_it(Base::mesh(), f_it.handle());
|
||||
typename Mesh::ConstFaceVertexIter fv_it(Base::mesh(), *f_it);
|
||||
|
||||
IO::store( out, Base::mesh().property( idx_, fv_it ) );
|
||||
IO::store( out, Base::mesh().property( idx_, ++fv_it ) );
|
||||
|
||||
@@ -93,10 +93,10 @@ initialize()
|
||||
|
||||
for (; f_it != f_end; ++f_it)
|
||||
{
|
||||
fv_it = Base::mesh().fv_iter(f_it.handle());
|
||||
vh0 = fv_it.handle(); ++fv_it;
|
||||
vh1 = fv_it.handle(); ++fv_it;
|
||||
vh2 = fv_it.handle();
|
||||
fv_it = Base::mesh().fv_iter(*f_it);
|
||||
vh0 = *fv_it; ++fv_it;
|
||||
vh1 = *fv_it; ++fv_it;
|
||||
vh2 = *fv_it;
|
||||
|
||||
Vec3 v0, v1, v2;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user