Jump to content

How can i delete GU_PrimVolume.?


Recommended Posts

I writing some volume SOP Node.

GU_PrimVolume	*volumeGdp = (GU_PrimVolume *)GU_PrimVolume::build(gdp);
UT_VoxelArrayWriteHandleF voxelHandle = volumeGdp->getVoxelWriteHandle();
voxelHandle->size(global_grid.grid_x, global_grid.grid_y, global_grid.grid_z);
.......
voxelHandle->setValue( x, y, z, phi);
.......
blah blah...

this code is working very well.

but houdini is down when i delete volume primitive using this code.

gdp->clearAndDestroy();

how can i delete volume primitive..?

poly primitive is deleted very well.

Link to comment
Share on other sites

  • 6 months 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...