Click or drag to resize
AB4D logo

Model3DFactoryCreateMultiMaterialBox(Rect3D, 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(
	Rect3D rect3D,
	Material topMaterial,
	Material bottomMaterial,
	Material leftMaterial,
	Material rightMaterial,
	Material frontMaterial,
	Material backMaterial,
	bool isBackMaterialSet
)

Parameters

rect3D  Rect3D
defines size and position 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(Rect3D, Material) method.

See Also