Table of Contents

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

sizeX double

The size of a cell along the grid's X axis; nought leaves the body whole that way.

sizeY double

The size of a cell along the grid's Y axis; nought leaves the body whole that way.

sizeZ double

The size of a cell along the grid's Z axis; nought leaves the body whole that way.

joint double

The gap between two neighbouring cells, along each axis divided; nought for none.

alignment GridAlignment

Where the cells stand along each axis divided, when the placement gives no origin.

Returns

CellOptions3

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.