Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This script can fill the fluid voxels adjacent to the curves. Select the curves and then shift select a fluid container and run this script.
Sample Step: this script samples the position on curves based on the curve parameter. Sample step controls the sample frequency to the curve parameter, the less the samplt step the more accurate the result and you can get a less-gap result.
Density: define the value add to the voxels. The gradient map below is used to control the variance of the density and the look-up value is curve parameter. Turn on the Use Ramp to active the gradient control.
Radius: define the sample area along the curve. By increasing this parameter, more voxels will be filled.
Clear Fluid: set the fluid contain density to zero
When you active the main function of this script, a dialog window will pop up and show the total loop steps it may take。 It gives you a method to determine whether the parameters fit you machine because if you select many curves and the volume resolution is set to a high number, it would take a long time to caculate.
P.S. for now, it's just a test version; the script may be a little unstable so leave me a message if you find any bugs.