Click or drag to resize

ExtrusionCreate Method (Curve, Double, Boolean)

Creates an extrusion of a 3d curve (which must be planar) and a height.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.1
Syntax
public static Extrusion Create(
	Curve planarCurve,
	double height,
	bool cap
)

Parameters

planarCurve
Type: Rhino.GeometryCurve
Planar curve used as profile
height
Type: SystemDouble
If the height > 0, the bottom of the extrusion will be in plane and the top will be height units above the plane. If the height < 0, the top of the extrusion will be in plane and the bottom will be height units below the plane. The plane used is the one that is returned from the curve's TryGetPlane function.
cap
Type: SystemBoolean
If the curve is closed and cap is true, then the resulting extrusion is capped.

Return Value

Type: Extrusion
If the input is valid, then a new extrusion is returned. Otherwise null is returned
See Also