Click or drag to resize
HatchCreate Method (IEnumerableCurve, Int32, Double, Double)
Constructs an array of hatches from a set of curves.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Hatch[] Create(
	IEnumerable<Curve> curves,
	int hatchPatternIndex,
	double rotationRadians,
	double scale
)

Parameters

curves
Type: System.Collections.GenericIEnumerableCurve
An array, a list or any enumarable set of Curve.
hatchPatternIndex
Type: SystemInt32
The index of the hatch pattern in the document hatch pattern table.
rotationRadians
Type: SystemDouble
The relative rotation of the pattern.
scale
Type: SystemDouble
A scaling factor.

Return Value

Type: Hatch
An array of hatches. The array might be empty on error.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf curves is null.
See Also