Posts Tagged ‘script’

mhIsPointInside plugin and mh_polyToFluidAttr script

Wednesday, October 17th, 2007

For my current project I needed a command to evaluate if a given worldspace point is inside a polygonal object. Because I couldn’t find anything like that I wrote the little Maya command plugin “mhIsPointInside that does exacly what I need.
What I wanted to do was to be able to create an arbitrarily shaped subvolume from a given 3D fluid container. The MEL-Script “mh_polyToFluidAttr” uses the above command to check if a voxel is inside the poly object to set the attribute for that voxel correctly. This way I could generate an arbitrarily shaped falloff grid.

You can download both plugin and script from my DOWNLOAD site.