Why is the color not reflected?

Feel free to ask any question here
Post Reply
Eiji Kurihara
Posts: 24
Joined: Mon Mar 14, 2016 1:35 am

Why is the color not reflected?

Post 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.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Why is the color not reflected?

Post by daniel »

You should maybe call 'showColors(true)' on the polyline entity.
Daniel, CloudCompare admin
Eiji Kurihara
Posts: 24
Joined: Mon Mar 14, 2016 1:35 am

Re: Why is the color not reflected?

Post 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.
Post Reply