bareja Posted December 30, 2009 Share Posted December 30, 2009 Hi i have problem with GPD: http://sourceforge.net/projects/houdinigpdlibra/files/ I wanna write bgeo exporter and i wondering about how to create polygons, for example: gpdPrimpoly = (GPD_PrimPoly*)gpdPtr->buildPrimitive(GPDPRIMMESH); now i can just use methods setSize and getVertex: gpdPrimpoly->setSize(4,1); gpdPrimPoly->wrapU(); gpdPrimpoly->getVertex(0,0)->getPt()->pos[0] = 0.0f; gpdPrimpoly->getVertex(0,0)->getPt()->pos[1] = 0.0f; gpdPrimpoly->getVertex(0,0)->getPt()->pos[2] = 0.0f; gpdPrimpoly->getVertex(0,0)->getPt()->pos[3] = 0.0f; etc... but when i export data to file, bgeo format contains only 'connected' points, so my question is: How to connect points to polygon? There is no static methods in GPD_PrimPoly, I don't know why Hoduini doesn't display any Polygon. Please help. Thanks, The situation: Quote Link to comment Share on other sites More sharing options...
edward Posted December 30, 2009 Share Posted December 30, 2009 See this %20[GPD]%20adding%20vertex%20to%20GPD_PrimPoly&perpage=20&revdate=off"]thread. Quote Link to comment Share on other sites More sharing options...
symek Posted December 30, 2009 Share Posted December 30, 2009 See this thread. ...fortunately the work is going forward, so we're getting close to share patches to GPD allowing creation of geometry. The idea is to make fully workable bgeo library with python bindings, so one can easily create ad hoc converters/exporters to *.bgeo or even "geometry on demand" scripts - relying on efficient c++ basis. Quote Link to comment Share on other sites More sharing options...
bareja Posted January 2, 2010 Author Share Posted January 2, 2010 Hi, Thanks edward for the replay, really useful. Symek thanks for your post, I'm just curious how xsi api works and how bgeo format looks like. I think it's really simple, simpler than Maya api imo. Thanks for advices. Cheers, Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.