Click or drag to resize
AB4D logo

Model3DFactoryCreateBox(Point3D, Size3D, Material) Method

Creates a 3D Box model at custom position.

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

Parameters

centerPosition  Point3D
box center position
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 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