Click or drag to resize
AB4D logo

Model3DFactoryCreateBox(Size3D, Material) Method

Creates a 3D Box model positioned at (0, 0, 0).

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

Parameters

size  Size3D
size 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 create 3D Box at custom position use CreateBox(Point3D, Size3D, Material) method.

To creates a 3D box where each side of the box can have its own material use CreateMultiMaterialBox(Point3D, Size3D, Material, Material, Material, Material, Material, Material, Boolean).

See Also