Skip to content
Snippets Groups Projects
Commit 83102f7b authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent d054551f
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,17 @@ void updateedges_cb(Fl_Widget* w, void* data)
break;
e->temporary->lines.push_back(new MLine(ea.v1, ea.v2));
}
if (e->_togbuttons[CLASSTOGBUTTON_CLOS]->value())
{
for ( int i=0 ; i<e->edges_lonly.size();i++)
{
edge_angle ea = e->edges_lonly[i];
e->temporary->lines.push_back(new MLine(ea.v1, ea.v2));
}
}
CTX.mesh.changed = ENT_ALL;
Draw();
}
......@@ -244,6 +255,10 @@ classificationEditor::classificationEditor()
_togbuttons[CLASSTOGBUTTON_HIDE] =
new Fl_Toggle_Button(3*WB+BB, 2*WB+1*BH, BB, BH, "Hide Unselected");
_togbuttons[CLASSTOGBUTTON_HIDE]->callback(hide_cb,this);
_togbuttons[CLASSTOGBUTTON_CLOS] =
new Fl_Toggle_Button(4*WB+2*BB, 2*WB+1*BH, BB, BH, "Include Closure");
_togbuttons[CLASSTOGBUTTON_CLOS]->callback(updateedges_cb,this);
_inputs[CLASSVALUE_ANGLE] =
new Fl_Value_Input(2*WB, 3*WB+2*BH, BB, BH, "Treshold Angle");
......
......@@ -26,6 +26,7 @@ void class_color_cb(Fl_Widget *w, void *data);
#define CLASSBUTTON_COLOR 5
#define CLASSBUTTON_SELFAC 6
#define CLASSTOGBUTTON_HIDE 0
#define CLASSTOGBUTTON_CLOS 1
#define CLASSVALUE_ANGLE 0
class edge_angle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment