double radio;
double spc[3];
+ int last_valid_color_index = 0;
if (bbGetInputRenderer()!=NULL)
{
sphereActor.push_back(newActor);
newActor -> SetMapper(newMapper);
newActor -> SetOrigin(0, 0, 0);
- newActor -> GetProperty() -> SetColor( bbGetInputColour()[0] , bbGetInputColour()[1] , bbGetInputColour()[2] );
+
+ unsigned int j = 3*i +2;
+ if (j < bbGetInputColour().size() )
+ {
+ newActor -> GetProperty() -> SetColor( bbGetInputColour()[3*i] , bbGetInputColour()[3*i + 1] , bbGetInputColour()[3*i + 2] );
+ last_valid_color_index = 3*i;
+ }
+ else
+ newActor -> GetProperty() -> SetColor( bbGetInputColour()[last_valid_color_index] , bbGetInputColour()[last_valid_color_index + 1] , bbGetInputColour()[last_valid_color_index + 2] );
+
newActor -> GetProperty() -> SetOpacity( bbGetInputOpacity() );
newActor -> SetPosition( px,py,pz );