Click or drag to resize
AB4D logo

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.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
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

Model3DGroup
3D Box model as Model3DGroup
Remarks

The CreateMultiMaterialBox creates a 3D box where each side of the box can have its own material.

To create a 3D box where all sides have the same material use CreateBox(Point3D, Size3D, Int32, Int32, Int32, Material) method.

See Also