Auto-generate edge colors from face colors?
Posted: Thu 7. Apr 2011, 21:40
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
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