Jump to content

How to get the GU_SDF from input node?


Recommended Posts

Hello,

I am trying to get the SDF (signed distance field) from a collision object.

I found the class GU_SDF and GU_SDFParms. These classes are related to the isooffset node.

However, I cannot find the way to set up(GU_SDFParms) and compute the SDF from an input node (for example sphere node).

Thanks in advance and I am looking forward to your response.

collision = inputGeo(2, context);		
if (collision)
{
   myCollision_SDF = new GU_SDF
   myCollision_SDF->build(collision, SDF_parms);
}

When I do like this, SDF_parms don't have current prameters data.

Edited by zzangxx
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...