Function GridMap.setCellItem

Sets the mesh index for the cell referenced by its grid-based X, Y and Z coordinates. A negative item index such as constant INVALID_CELL_ITEM will clear the cell. Optionally, the item's orientation can be passed. For valid orientation values, see Basis.getOrthogonalIndex.

void setCellItem (
  const(long) x,
  const(long) y,
  const(long) z,
  const(long) item,
  const(long) orientation = 0L
) nothrow @nogc;