Jump to content

GPD problems


Recommended Posts

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:

post-3353-126218336784_thumb.png

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...