|
Model3DFactoryCreateMultiMaterialBox(Point3D, Size3D, Int32, Int32, Int32, Material, Material, Material, Material, Material, Material, Boolean) Method |
Creates a 3D Box model where each side can have its own material.
Namespace: Ab3d.ModelsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static Model3DGroup CreateMultiMaterialBox(
Point3D centerPosition,
Size3D size,
int xCellsCount,
int yCellsCount,
int zCellsCount,
Material topMaterial,
Material bottomMaterial,
Material leftMaterial,
Material rightMaterial,
Material frontMaterial,
Material backMaterial,
bool isBackMaterialSet
)
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
- topMaterial Material
- top material
- bottomMaterial Material
- bottom material
- leftMaterial Material
- left material
- rightMaterial Material
- right material
- frontMaterial Material
- front material
- backMaterial Material
- back material
- isBackMaterialSet Boolean
- is true the BackMaterial for each side is set to the same value as Material.
Return Value
Model3DGroup3D Box model as Model3DGroup
Remarks See Also