|
Model3DFactoryCreateBox(Point3D, Size3D, Int32, Int32, Int32, Material) Method |
Creates a 3D Box model at custom position and with custom x, y and z cells count.
Namespace: Ab3d.ModelsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static GeometryModel3D CreateBox(
Point3D centerPosition,
Size3D size,
int xCellsCount,
int yCellsCount,
int zCellsCount,
Material material
)
Parameters
- centerPosition Point3D
- box center position
- size Size3D
- size of the box
- xCellsCount Int32
- number of cells in x direction
- yCellsCount Int32
- number of cells in y direction
- zCellsCount Int32
- number of cells in z direction
- material Material
- material
Return Value
GeometryModel3D3D Box model as GeometryModel3D
Remarks
The CreateBox creates a 3D box where all sides have the same materials.
To creates a 3D box where each side of the box can have its own material use CreateMultiMaterialBox(Point3D, Size3D, Int32, Int32, Int32, Material, Material, Material, Material, Material, Material, Boolean).
See Also