Jump to content

Carve A Nurb Curve Using Hdk


Recommended Posts

Hi.....

I want to carve a Nurb Curve in HDK , like a Carve SOP. I have a pointer to the"GU_PrimNURBCurve".

I think the "cut" function in GU_PrimNURBCurve class does the same thing.My Code is something like,

///////////////////////////////////

GU_Curve* newNurbcurvePtr = 0;

int ind1 = 0;

int ind2 = 0;

newNurbcurvePtr = nurbcurvePtr->cut(myU(),myV(),ind1,ind2,0);

////////////////////////////////

the "keep" flag is off. So it should modify my source curve. It is not doing that. Also it is not giving any outpout, as value of newNurbcurvePtr remains 0 after the function. If i use 1 as "keep" flag then also the value is 0.

I don't know what the Index parameters ind1 and ind2 are for, but they are also not changing . If anybody knows plz explain.

Edited by iamjaideep80
Link to comment
Share on other sites

  • 1 year later...

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...