MeshCreateFromBox Method (IEnumerablePoint3d, Int32, Int32, Int32) |
Constructs new mesh from 8 corner points.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.3
Syntax public static Mesh CreateFromBox(
IEnumerable<Point3d> corners,
int xCount,
int yCount,
int zCount
)
Public Shared Function CreateFromBox (
corners As IEnumerable(Of Point3d),
xCount As Integer,
yCount As Integer,
zCount As Integer
) As Mesh
Parameters
- corners
- Type: System.Collections.GenericIEnumerablePoint3d
8 points defining the box corners arranged as the vN labels indicate.
v7_____________v6
|\ |\
| \ | \
| \ _____________\
| v4 | v5
| | | |
| | | |
v3--|----------v2 |
\ | \ |
\ | \ |
\| \|
v0_____________v1
- 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.
Return Value
Type:
MeshA new box mesh, on null on error.
See Also