Commit 2dc6332f authored by Jan Möbius's avatar Jan Möbius
Browse files

NOOP

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5350 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0b7d5d30
......@@ -92,7 +92,7 @@ void SelectionPlugin::set_area( MeshType* _mesh)
if (selectionType_ & VERTEX){
typename MeshType::VertexIter v_it, v_end=_mesh->vertices_end();
for (v_it=_mesh->vertices_begin(); v_it!=v_end; ++v_it) {
_mesh->status(v_it).change_bit(AREA, _mesh->status(v_it).selected());
_mesh->status(v_it).set_selected(false);
......@@ -106,27 +106,27 @@ void SelectionPlugin::set_area( MeshType* _mesh)
if (selectionType_ & EDGE){
typename MeshType::EdgeIter e_it, e_end( _mesh->edges_end() );
for (e_it=_mesh->edges_begin(); e_it!=e_end; ++e_it){
if ( _mesh->status(e_it).selected() ){
typename MeshType::HalfedgeHandle h0 = _mesh->halfedge_handle(e_it,0);
_mesh->status( _mesh->from_vertex_handle(h0) ).set_tagged(true);
_mesh->status( _mesh->to_vertex_handle(h0) ).set_tagged(true);
_mesh->status(e_it).set_selected(false);
}
}
}
if (selectionType_ & FACE){
typename MeshType::FaceIter f_it, f_end( _mesh->faces_end() );
for (f_it=_mesh->faces_begin(); f_it!=f_end; ++f_it){
if ( _mesh->status(f_it).selected() ){
for (typename MeshType::FaceVertexIter fv_it(*_mesh,f_it) ; fv_it; ++fv_it ){
_mesh->status( fv_it ).set_tagged(true);
_mesh->status(f_it).set_selected(false);
}
......@@ -157,7 +157,7 @@ void SelectionPlugin::set_handle(MeshType* _mesh)
if (selectionType_ & VERTEX){
typename MeshType::VertexIter v_it, v_end=_mesh->vertices_end();
for (v_it=_mesh->vertices_begin(); v_it!=v_end; ++v_it) {
_mesh->status(v_it).change_bit(HANDLEAREA, _mesh->status(v_it).selected());
_mesh->status(v_it).set_selected(false);
......@@ -171,27 +171,27 @@ void SelectionPlugin::set_handle(MeshType* _mesh)
if (selectionType_ & EDGE){
typename MeshType::EdgeIter e_it, e_end( _mesh->edges_end() );
for (e_it=_mesh->edges_begin(); e_it!=e_end; ++e_it){
if ( _mesh->status(e_it).selected() ){
typename MeshType::HalfedgeHandle h0 = _mesh->halfedge_handle(e_it,0);
_mesh->status( _mesh->from_vertex_handle(h0) ).set_tagged(true);
_mesh->status( _mesh->to_vertex_handle(h0) ).set_tagged(true);
_mesh->status(e_it).set_selected(false);
}
}
}
if (selectionType_ & FACE){
typename MeshType::FaceIter f_it, f_end( _mesh->faces_end() );
for (f_it=_mesh->faces_begin(); f_it!=f_end; ++f_it){
if ( _mesh->status(f_it).selected() ){
for (typename MeshType::FaceVertexIter fv_it(*_mesh,f_it) ; fv_it; ++fv_it ){
_mesh->status( fv_it ).set_tagged(true);
_mesh->status(f_it).set_selected(false);
}
......@@ -219,7 +219,7 @@ void SelectionPlugin::set_features(MeshType* _mesh)
if (selectionType_ & VERTEX){
typename MeshType::VertexIter v_it, v_end=_mesh->vertices_end();
for (v_it=_mesh->vertices_begin(); v_it!=v_end; ++v_it){
_mesh->status(v_it).set_feature( _mesh->status(v_it).selected() );
_mesh->status(v_it).set_selected( false );
......@@ -255,7 +255,7 @@ void SelectionPlugin::clear_features(MeshType* _mesh)
if (selectionType_ & VERTEX){
typename MeshType::VertexIter v_it, v_end=_mesh->vertices_end();
for (v_it=_mesh->vertices_begin(); v_it!=v_end; ++v_it)
_mesh->status(v_it).set_feature( false );
}
......@@ -325,7 +325,7 @@ bool SelectionPlugin::deleteSelection(MeshT* _mesh) {
if (selectionType_ & VERTEX){
typename MeshT::VertexIter v_it, v_end=_mesh->vertices_end();
for (v_it=_mesh->vertices_begin(); v_it!=v_end; ++v_it)
if ( _mesh->status(v_it).selected() ) {
_mesh->delete_vertex(v_it);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment