NURB circle

   6425   10   0
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Hi! How can I build NURB circle by HDK?
There is only primitive class
Thanks
Houdini is great! O'right?
User Avatar
Member
7725 posts
Joined: July 2005
Offline
http://odforce.net/hdk/tree/H9.1/classGU__PrimCircle.html [odforce.net]
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Hey Edward.
I have already tried to use convert method from this class, but fromType and toType parms are confusing me a little. I can't find in those .h a way to make the circle nurb by those parms.
Houdini is great! O'right?
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Can you show some examples?
Houdini is great! O'right?
User Avatar
Member
7725 posts
Joined: July 2005
Offline
It's similar to the SOP_Star HDK example except replace the usage of GU_PrimPoly with GU_PrimCircle.
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Ok. I will try tomorrow
Houdini is great! O'right?
User Avatar
Member
136 posts
Joined: July 2005
Offline
http://www.sidefx.com/exchange/info.php?fileid=227&versionid=227 [sidefx.com]
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Hey, Andrew! What is it?
Houdini is great! O'right?
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Edward, I can't understand. This is a poly primitive generated.

GU_PrimPoly *poly;
poly = GU_PrimPoly::build(gdp, divisions, GU_POLY_CLOSED);

But I need nurb circle, not a primCircle for the next sweep operation.
Even if I wright smth like this:

GU_Detail *gdpCircle;
gdpCircle = allocateGeometry();
GU_PrimCircle *primCircle = new GU_PrimCircle(gdpCircle);

it will be prim type.
I can't take primitive as a cross section into sweep. It can be only nurb or poly.
Houdini is great! O'right?
User Avatar
Member
136 posts
Joined: July 2005
Offline
Wish
Hey, Andrew! What is it?
This is sop which uses (NURBS/POLY) circle from GU_PrimCircle as starting point
for building 3Point Arc.
Do not use it…this sop compiled for H8.0…just look at source code.
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Amazing! Thanks! :arrow:
Houdini is great! O'right?
  • Quick Links