Method Grid
- Namespace
- GeometryHelper.Meshing
- Assembly
- GeometryHelper.dll
Grid(double, double, double, double, GridAlignment)
Cells of a size along each axis, standing against the body as the alignment says along all three.
public static CellOptions3 Grid(double sizeX, double sizeY, double sizeZ, double joint = 0, GridAlignment alignment = GridAlignment.Start)
Parameters
sizeXdoubleThe size of a cell along the grid's X axis; nought leaves the body whole that way.
sizeYdoubleThe size of a cell along the grid's Y axis; nought leaves the body whole that way.
sizeZdoubleThe size of a cell along the grid's Z axis; nought leaves the body whole that way.
jointdoubleThe gap between two neighbouring cells, along each axis divided; nought for none.
alignmentGridAlignmentWhere the cells stand along each axis divided, when the placement gives no origin.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when a size is negative or not a finite number, the joint is negative or not a finite number, or the alignment is not one of GridAlignment.