Jump to content

HDK Version of Carve-Sop


Recommended Posts

Hi all!

I am trying to replicate the Carve-Sop on per primitive basis. Digging though the HDK Docs i found cutU and cutV.

My code is as follow:

GEO_Primitive *prim;

GU_PrimNURBSurf *primNurbs;

int ind1, ind2;

prim = gdp->primitives()[0];

primNurbs = (GU_PrimNURBSurf *) prim;

primNurbs->cutU(0, 1, ind1, ind2, 0);

The problem is that nothing happens. The Primitive does not get cut whatever I fill in between the brackets after cutU.

Can someone tell me what I am doing wrong?

Thanks in advance!

Link to comment
Share on other sites

What values have you tried for the "keep" input? "If keep is zero the curve is only refined and the indices updated."

Hi Seth, I tried pretty much all combinations I could think about but the result was the same.

Just to make sure:

If I have some Nurbs Surfaces and I would like to cut or lets say carve the surfaces in two pieces, is GU_PrimNURBSurface->cutU and cutV the standard practice or is there a more common approach?

Thanks!

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