Click or drag to resize

MeshCreateFromBox Method (BoundingBox, Int32, Int32, Int32)

Constructs new mesh that matches a bounding box.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Mesh CreateFromBox(
	BoundingBox box,
	int xCount,
	int yCount,
	int zCount
)

Parameters

box
Type: Rhino.GeometryBoundingBox
A box to use for creation.
xCount
Type: SystemInt32
Number of faces in x-direction.
yCount
Type: SystemInt32
Number of faces in y-direction.
zCount
Type: SystemInt32
Number of faces in z-direction.

Return Value

Type: Mesh
A new brep, or null on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.6
See Also