MeshCreateFromBox Method (BoundingBox, Int32, Int32, Int32) |
Constructs new mesh that matches a bounding box.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.6
Syntax public static Mesh CreateFromBox(
BoundingBox box,
int xCount,
int yCount,
int zCount
)
Public Shared Function CreateFromBox (
box As BoundingBox,
xCount As Integer,
yCount As Integer,
zCount As Integer
) As Mesh
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:
MeshA new brep, or null on failure.
See Also