Hi Yang, Try preprocessing your scene using osgUtil::Tesselator, this uses glu to break concave polygons down into non convex primitives. However, ideally you should be importing data that doesn't have convex polygons, as this would do away with the need to preprocess.
Robert. 2008/6/18 heishuijing_2000 <[EMAIL PROTECTED]>: > hi everyone, > Recently,i have some troubles with drawing complex polygon.These polygons > contains > Convex polygon ,concave polygon.Sometimes the polygon contains holes in it. > I only know how to draw them using Opengl,there two methods: > 1 using glEdgeFlag() > 2 using gluTessCallBack gluTessBeginPolygon.. > > But these methods have some problems,they all draw points one by one,they > don't use vertexs array. And I also don't know how to draw them using Osg > and i don't konw whether osg has provided us with Convex decomposition > Algorithm. > Any help would be appreaciated. > > Thanks, > Yang > > > ________________________________ > 快来用音乐为奥运加油 > 得奥运会、演唱会门票 > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

