Method ToCells
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ToCells(CellOptions3)
Cuts the box into cells as the options say, along its own axes, using the default tolerance.
public GeoCellGrid3 ToCells(CellOptions3 options)
Parameters
optionsCellOptions3How each axis of the grid is divided, the joint, and the snap distance.
Returns
- GeoCellGrid3
The grid of cells.
ToCells(CellOptions3, Tolerance)
Cuts the box into cells as the options say, along its own axes, within a tolerance.
public GeoCellGrid3 ToCells(CellOptions3 options, Tolerance tolerance)
Parameters
optionsCellOptions3How each axis of the grid is divided, the joint, and the snap distance.
toleranceToleranceThe tolerance it is cut within: which cells are whole, and the least a cut is snapped by.
Returns
- GeoCellGrid3
The grid of cells.
ToCells(CellOptions3, MeshPlacement3)
Cuts the box into cells as the options say, its grid standing as the placement says, using the default tolerance.
public GeoCellGrid3 ToCells(CellOptions3 options, MeshPlacement3 placement)
Parameters
optionsCellOptions3How each axis of the grid is divided, the joint, and the snap distance.
placementMeshPlacement3Which way the grid's axes run, and where a cell starts.
Returns
- GeoCellGrid3
The grid of cells.
ToCells(CellOptions3, MeshPlacement3, Tolerance)
Cuts the box into cells as the options say, its grid standing as the placement says, within a tolerance: blocks, bays, lifts or bars, each a closed body of what the box holds of the cell.
public GeoCellGrid3 ToCells(CellOptions3 options, MeshPlacement3 placement, Tolerance tolerance)
Parameters
optionsCellOptions3How each axis of the grid is divided, the joint, and the snap distance.
placementMeshPlacement3Which way the grid's axes run, and where a cell starts.
toleranceToleranceThe tolerance it is cut within: which cells are whole, and the least a cut is snapped by.
Returns
- GeoCellGrid3
The grid of cells.
Exceptions
- ArgumentNullException
Thrown when the options or the placement are null.
- ArgumentException
Thrown when a cell is no larger than the point tolerance along an axis it divides, or the grid would lay more cells than a grid may have.