Click or drag to resize
AB4D logo

Model3DFactoryCreateBox(Rect3D, Material) Method

Creates a 3D Box model from rect3D.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public static GeometryModel3D CreateBox(
	Rect3D rect3D,
	Material material
)

Parameters

rect3D  Rect3D
defines size and position of the box
material  Material
material

Return Value

GeometryModel3D
3D 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(Rect3D, Material, Material, Material, Material, Material, Material, Boolean).

See Also