vipnj / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Enhancement Request: Making faces invisible #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For my current project i manipulate a dynamically created mesh, moving it's
vertices and faces around.
But sometimes I want to just very temporarily remove a face. It would be
convenient to be able to set a visibility-property to false.

Currently I have to remove the face from the geometry of the mesh, and then
put it back in.

I don't know if this is worth to do, but in my case it feels like it would
be a good possibility.

Original issue reported on code.google.com by ogg...@gmail.com on 6 Sep 2008 at 11:46

GoogleCodeExporter commented 9 years ago
I changed my PV files and got it working myself in just a couple minutes.
Added
public var hidden:Boolean=false;
to Triangle3D
and in the DefaultTriangleCuller i culled it if hidden was set to true.

A reason why I really needed this was that my code edits triangles on the mesh
depending on where in the geometry-face-array they were, so I couldn't just 
splice it
out, or setting it to null since that makes PV throws an error.

Original comment by ogg...@gmail.com on 7 Sep 2008 at 12:45

GoogleCodeExporter commented 9 years ago

Original comment by r.hauw...@gmail.com on 17 Nov 2008 at 12:56

GoogleCodeExporter commented 9 years ago
In my opinion this is more or less an add on feature, which can be added by just
working with a custom culler, in which you register triangles not to be drawn. 

Original comment by r.hauw...@gmail.com on 17 Nov 2008 at 1:27