M_Rhino_Geometry_Mesh_CreateFromBox - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh.CreateFromBox Method (BoundingBox, Int32, Int32, Int32)

Constructs new mesh that matches a bounding box.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static Mesh CreateFromBox(
	BoundingBox box,
	int xCount,
	int yCount,
	int zCount
)

VB

Public Shared Function CreateFromBox ( 
	box As BoundingBox,
	xCount As Integer,
	yCount As Integer,
	zCount As Integer
) As Mesh

Parameters

 

box
Type: Rhino.Geometry.BoundingBox
A box to use for creation.
xCount
Type: System.Int32
Number of faces in x-direction.
yCount
Type: System.Int32
Number of faces in y-direction.
zCount
Type: System.Int32
Number of faces in z-direction.

Return Value

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

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
CreateFromBox Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️