Method Divide
- Namespace
- GeometryHelper.Meshing
- Assembly
- GeometryHelper.dll
Divide(int, int, int, double)
As many equal cells along each axis as asked, from the body's first side to its far one.
public static CellOptions3 Divide(int countX, int countY, int countZ, double joint = 0)
Parameters
countXintHow many cells along the grid's X axis; one leaves the body whole that way.
countYintHow many cells along the grid's Y axis; one leaves the body whole that way.
countZintHow many cells along the grid's Z axis; one leaves the body whole that way.
jointdoubleThe gap between two neighbouring cells, along each axis divided; nought for none.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when a count is below one, or the joint is negative or not a finite number.