void MarchingCubes::Process()
{
- bbGetVtkObject()->SetValue(0, bbGetInputValue() );
- bbGetVtkObject()->Update();
+ if (bbGetInputActive()==true)
+ {
+ bbGetVtkObject()->SetValue(0, bbGetInputValue() );
+
+ if(bbGetInputComputeNormalsOn())
+ {
+ bbGetVtkObject()->ComputeNormalsOn();
+ }else {
+ bbGetVtkObject()->ComputeNormalsOff();
+ }
+
+ if(bbGetInputComputeScalarsOn())
+ {
+ bbGetVtkObject()->ComputeScalarsOn();
+ }else{
+ bbGetVtkObject()->ComputeScalarsOff();
+ }
+
+ bbGetVtkObject()->Update();
+ }
}
//-----------------------------------------------------------------
void MarchingCubes::bbUserSetDefaultValues()
{
BBTK_VTK_SET_DEFAULT_VALUES();
+ bbSetInputActive(true);
bbSetInputValue(400);
+ bbSetInputComputeNormalsOn(true);
+ bbSetInputComputeScalarsOn(true);
}
//-----------------------------------------------------------------