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);
-
-
}
//=====