Page 1 of 1

Auto-generate edge colors from face colors?

Posted: Thu 7. Apr 2011, 21:40
by Joe
Hello,
I have created a set of faces. To allow switching to a wrieframe representation, I have added a "indexedFaceSetFactory.setGenerateEdgesFromFaces(true);". But when I switch from colored faces to wireframe (via Appearance), all lines are blue, the colors are lost. I think, I have to call also "indexedFaceSetFactory.setEdgeColors(colors);"

Is there an easy way to reuse the colors of the faces for the generated edges, or do I have to create these colors manually?

Thanks and best regards, Joe

Re: Auto-generate edge colors from face colors?

Posted: Sat 30. Apr 2011, 12:24
by sechel
Hi Joe,
I don't see canonical colors for edges derived from face colors. What you probably want is holes in the faces so you may want to have a look into the IndexedFaceSetUtility.implode() method.
Stefan