Simon Haegler wrote: > osgHello > > i have a a geometry core with a box which is open on one side. i try to write > a > function which "regenerates" cores, i.e fills the holes. i tried to use the > triangle iterator to loop through _all_ triangles (implicit triangluation), > but > somehow the hole is still there. do i need to explicitely search for missing > faces? how? > The Triangle Iterator loops through all triangle primitives (triangles, fans, strips) stored in the geometry. It does _not_ loop through non-triangles, as this would be very confusing in other cases.
To do what you want, you do need to search for missing faces. Doing that in general can be hard as "missing" is difficult to define for everyone. Do you have other use-cases than "missing side of a cube"? Knowing what you want to do more in detail could help here. /Marcus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
