void MarchingCubes::Process()
{
bbGetVtkObject()->SetValue(0, bbGetInputValue() );
+ if(bbGetInputComputeNormalsOn())
+ bbGetVtkObject()->ComputeNormalsOn();
+ else
+ bbGetVtkObject()->ComputeNormalsOff();
+
+ if(bbGetInputComputeScalarsOn())
+ bbGetVtkObject()->ComputeScalarsOn();
+ else
+ bbGetVtkObject()->ComputeScalarsOff();
bbGetVtkObject()->Update();
}
{
BBTK_VTK_SET_DEFAULT_VALUES();
bbSetInputValue(400);
+ bbSetInputComputeNormalsOn(true);
+ bbSetInputComputeScalarsOn(true);
}
//-----------------------------------------------------------------
BBTK_DECLARE_VTK_INPUT(In,vtkImageData *);
BBTK_DECLARE_INPUT(Value,double);
+ BBTK_DECLARE_INPUT(ComputeNormalsOn,bool);
+ BBTK_DECLARE_INPUT(ComputeScalarsOff,bool);
BBTK_DECLARE_VTK_OUTPUT(Out,vtkPolyData *);
// For the 'Value' parameter, the standard bbtk macro does not work
BBTK_INPUT(MarchingCubes,In,"Image",vtkImageData*,"");
BBTK_INPUT(MarchingCubes,Value,"Value of the iso-surface",double,"");
+ BBTK_INPUT(MarchingCubes,ComputeNormalsOn,"Set the computation of normals",bool,"");
+ BBTK_INPUT(MarchingCubes,ComputeScalarsOn,"Set the computation of scalars",bool,"");
BBTK_OUTPUT(MarchingCubes,Out,"Output iso-surface",vtkPolyData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(MarchingCubes);