M_Rhino_Geometry_Mesh_CreateFromBox_2 - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs new mesh from 8 corner points.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Mesh CreateFromBox(
IEnumerable<Point3d> corners,
int xCount,
int yCount,
int zCount
)
VB
Public Shared Function CreateFromBox (
corners As IEnumerable(Of Point3d),
xCount As Integer,
yCount As Integer,
zCount As Integer
) As Mesh
- corners
- Type: System.Collections.Generic.IEnumerable(Point3d)
8 points defining the box corners arranged as the vN labels indicate.v7_____________v6
|\ |\
| \ | \
| \ _____________\
| v4 | v5
| | | |
| | | |
v3--|----------v2 |
\ | \ |
\ | \ |
| |
v0_____________v1
- 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.
Type: Mesh
A new brep, or null on failure.
Type: Mesh
A new box mesh, on null on error.
Supported in: 6.0.16224.21491, 5D58w