I'm showing a user how to use scripts for mged to change region and
combination attributes and I ran across a situation I can't explain:

Use the comb_color command to set RGB on a combination with no existing
color:

mged> attr show stool2
stool2 combination:

mged> comb_color stool2 80 80 80
mged> attr show stool2
stool2 combination:
 rgb    80/80/80

That looks reasonable.  Now remove the rgb attr:

mged rm stool2 rgb
mged> attr show stool2
stool2 combination:

Set the attr "manually"

mged> attr set stool2 rgb 80/80/90
mged> attr show stool2
 color    80/80/80

Notice the attr name has changed!

Now run the comb_color again:

mged> comb_color stool2 80 80 80
mged> attr show stool2
 color          80/80/80
rgb            80/80/80

Now both color and rgb are showing!

So, what is the user to do to truly affect the color: use both rgb and
color attributes?  Or does it matter since BRL-CAD may be treating 'color'
and 'rgb' as aliases for each other?

Best regards,

-Tom
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to