Jump to content
Gangs

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.

Share this post


Link to post
Share on other sites

I've attached the code posing problem.

edit : found the problem with the help of the SESI mailing list (thanks Michael and Andy!).

The problem lies with my Visual Studio project, it works fine using hcustom...

hdkvolume.zip

Edited by Vinz9

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×