Whats the fastest way to mirror a volume ?
I really want to mirror the density field not just the transformation matrix.
ATM I am using a little python script, which is very slow ..
import numpy
node = hou.pwd()
geo = node.geometry()
# Add code to modify contents of geo.
# Use drop down menu to select examples.
volume = geo.prims()
np = numpy.array(volume.allVoxels()).reshape(volume.resolution(), order='F')
# Now we have our numpy 3d array… have fun!
np = np
# set the values of the volume back in Houdini
volume.setAllVoxels( np.flatten(order='F') )
Best way to mirror volume
2132 2 1- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- jlait
- Staff
- 6237 posts
- Joined: July 2005
- Offline
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
-
- Quick Links