Skip to content

Commit eb0c8b5

Browse files
committed
Closes #707
1 parent b40e82b commit eb0c8b5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Modules/Fields/EditMeshBoundingBox.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ EditMeshBoundingBox::build_widget(FieldHandle f, bool reset)
311311
box_->setScale(bscale); // callback sets box_scale for us.
312312
box_->setPosition(center, right, down, in);
313313
box_->setCurrentMode(state->getValue(BoxMode).toInt());
314-
#ifdef WORKING_ON_EDITMESH_DAN
314+
#ifdef WORKING_ON_EDITMESH
315315
box_center_.set(center);
316316
box_right_.set(right);
317317
box_down_.set(down);
@@ -321,7 +321,7 @@ EditMeshBoundingBox::build_widget(FieldHandle f, bool reset)
321321
}
322322
else
323323
{
324-
#ifdef WORKING_ON_EDITMESH_DAN
324+
#ifdef WORKING_ON_EDITMESH
325325
const double l2norm = (box_right_.get().vector() +
326326
box_down_.get().vector() +
327327
box_in_.get().vector()).length();
@@ -337,7 +337,7 @@ EditMeshBoundingBox::build_widget(FieldHandle f, bool reset)
337337
box_->setCurrentMode(box_mode_.get());
338338
#endif
339339
}
340-
#ifdef WORKING_ON_EDITMESH_DAN
340+
#ifdef WORKING_ON_EDITMESH
341341
GeomGroup *widget_group = new GeomGroup;
342342
widget_group->add(box_->GetWidget());
343343

@@ -444,14 +444,12 @@ void EditMeshBoundingBox::executeImpl(FieldHandle fh)
444444
sizex = Vector(state->getValue(OutputSizeX).toDouble(), 0, 0);
445445
sizey = Vector(0, state->getValue(OutputSizeY).toDouble(), 0);
446446
sizez = Vector(0, 0, state->getValue(OutputSizeZ).toDouble());
447-
//std::cout << "setting size from gui: " << sizex << " " << sizey << " " << sizez << std::endl;
448447
}
449448
else
450449
{
451450
sizex = (right - center) * 2;
452451
sizey = (down - center) * 2;
453452
sizez = (in - center) * 2;
454-
//std::cout << "setting size default: " << sizex << " " << sizey << " " << sizez << std::endl;
455453
}
456454
if (useOutputCenter)
457455
{
@@ -511,7 +509,7 @@ void EditMeshBoundingBox::widget_moved(bool last)
511509
state->setValue(OutputSizeX, (right.x() - center.x())*2.);
512510
state->setValue(OutputSizeY, (down.y() - center.y())*2.);
513511
state->setValue(OutputSizeZ, (in.z() - center.z())*2.);
514-
#ifdef WORKING_ON_EDITMESH_DAN
512+
#ifdef WORKING_ON_EDITMESH
515513
state->setValue(BoxMode, box_mode_.set(box_->GetMode());
516514
box_center_.set(center);
517515
box_right_.set(right);
@@ -521,7 +519,7 @@ void EditMeshBoundingBox::widget_moved(bool last)
521519
want_to_execute();
522520
#endif
523521
}
524-
#ifdef WORKING_ON_EDITMESH_DAN
522+
#ifdef WORKING_ON_EDITMESH
525523
box_real_scale_.set(box_->GetScale());
526524
#endif
527525
}

0 commit comments

Comments
 (0)