Page 1 of 1

Why is the color not reflected?

Posted: Wed Mar 30, 2016 6:20 am
by Eiji Kurihara
As your help, I can draw a line on your CloudCompare display window.
But I think something is wrong with the color. I define the line color by
ccColor::Rgb red(255, 0, 0 );
...
poly->setColor( red ) ;
But the displayed line color is white. I expect the line is drawn in red.
How can I draw the line in red? Even if I changed ccColor::RGB red = ccColor::red ,
the result is the same while.

Re: Why is the color not reflected?

Posted: Thu Mar 31, 2016 7:32 am
by daniel
You should maybe call 'showColors(true)' on the polyline entity.

Re: Why is the color not reflected?

Posted: Thu Mar 31, 2016 10:05 am
by Eiji Kurihara
Thank you for your kind teaching.
Only putting poly->showColors( true ) ;
I can draw the line in red.
Thank you very much.