tubefilter = new MaracasTubeFilter();
tubefilter->SetvtkRenderer( bbGetInputRenderer() );
tubefilter->SetlstPoints( bbGetInputlstPointX(), bbGetInputlstPointY(), bbGetInputlstPointZ() );
+
+ // Sets the default value for radius to 1 everywhere, if the radius input vevctor is empty.
+ if (bbGetInputlstRadio().size() == 0)
+ {
+ std::vector<double> radio;
+ radio.resize(bbGetInputlstPointX().size(), 1.);
+ bbSetInputlstRadio(radio);
+ }
tubefilter->SetlstRadius( bbGetInputlstRadio() );
tubefilter->SetOpacity( bbGetInputOpacity() );
tubefilter->SetTransform( bbGetInputTransform() );
colour.push_back(0.0);
colour.push_back(0.0);
bbSetInputColour(colour);
-
-
}
//=====
BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
- BBTK_DECLARE_INPUT(Opacity,double);
+ BBTK_DECLARE_INPUT(Opacity,double);
BBTK_DECLARE_INPUT(Colour ,std::vector<double>);
BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
BBTK_INPUT(TubeFilter,lstPointX,"lstPointX",std::vector<double>,"");
BBTK_INPUT(TubeFilter,lstPointY,"lstPointY",std::vector<double>,"");
BBTK_INPUT(TubeFilter,lstPointZ,"lstPointZ",std::vector<double>,"");
- BBTK_INPUT(TubeFilter,lstRadio,"lstRadio",std::vector<double>,"");
+ BBTK_INPUT(TubeFilter,lstRadio,"lstRadio. Default value is 1 everywhere.",std::vector<double>,"");
BBTK_INPUT(TubeFilter,Colour,"Colour",std::vector<double>,"");
BBTK_INPUT(TubeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
BBTK_INPUT(TubeFilter,Opacity,"Opacity",double,"");