|
Author
|
Topic: How do I set edge color?
|
RatMonkey Junior Member
|
posted June 16, 2006 01:02 PM
I am trying to modify the color of a shell's visible edges.I would have thought that HC_UnSet_Rendering_Options(); HC_Set_Color("edges = yellow"); would do the trick, but they always seem to come out white. Thanks
IP: Logged |
edgroc Junior Member
|
posted June 19, 2006 05:34 PM
Is it possible that a previous call to Open_Geometry(), Open_Edge(), and Set_Color() may have already been done prior to your calls?If the shell has its colors set this way, it overrides the segment level color attribute settings which you are providing. See Open_Edge() documentation. IP: Logged |
RatMonkey Junior Member
|
posted June 23, 2006 01:46 PM
I just insert the shell and set visibility and color immediately after. The geometry/edges aren't ever opened.IP: Logged |
ghobbler Junior Member
|
posted June 26, 2006 09:58 PM
Perhaps you're unsetting an "attribute lock" rendering option, and thus your colors are being overridden by an "attribute lock" set higher up the segment tree?IP: Logged |
RatMonkey Junior Member
|
posted July 25, 2006 12:51 PM
I 'fixed' it, by adding HC_Set_Rendering_Options("attribute lock = color"); (The HC_UnSet_Rendering_Options call was also unnecessary)It seems that my HC_Insert_Shell call must be setting its edge color. Is this a bug? Thanks for your help. IP: Logged |