Auto-generate edge colors from face colors?

Have jReality programming problems or questions? Post them here.
Post Reply
Joe
Posts: 61
Joined: Fri 11. Jul 2008, 19:29

Auto-generate edge colors from face colors?

Post by Joe » 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

sechel
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Re: Auto-generate edge colors from face colors?

Post by sechel » Sat 30. Apr 2011, 12:24

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

Post Reply