Click or drag to resize
AB4D logo

Model3DFactoryCreateMultiMaterialBox(Point3D, Size3D, 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.1.8864.1045
Syntax
C#
public static Model3DGroup CreateMultiMaterialBox(
	Point3D centerPosition,
	Size3D size,
	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
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, Material) method.

See Also