Click or drag to resize

SubDCreateSubDBox Method (IEnumerablePoint3d, Double, UInt32, UInt32, UInt32)

Creates a SubD box.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.36
Syntax
public static SubD CreateSubDBox(
	IEnumerable<Point3d> corners,
	double edgeSharpness,
	uint faceCountX,
	uint faceCountY,
	uint faceCountZ
)

Parameters

corners
Type: System.Collections.GenericIEnumerablePoint3d
The eight box corners. The first four are the bottom face, in order around it, and the last four are the top face, in the same order.
edgeSharpness
Type: SystemDouble
The sharpness to give the edges where box sides meet. SmoothValue leaves them smooth and CreaseValue makes them creases.
faceCountX
Type: SystemUInt32
Number of faces along the first bottom edge.
faceCountY
Type: SystemUInt32
Number of faces along the second bottom edge.
faceCountZ
Type: SystemUInt32
Number of faces from the bottom face to the top face.

Return Value

Type: SubD
A new SubD box, or null if the input is not valid.
See Also