Extrusion.CreatePipeExtrusion Method

ExtrusionCreatePipeExtrusion Method

Gets an extrusion form of a pipe.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Extrusion CreatePipeExtrusion(
	Cylinder cylinder,
	double otherRadius,
	bool capTop,
	bool capBottom
)
Public Shared Function CreatePipeExtrusion ( 
	cylinder As Cylinder,
	otherRadius As Double,
	capTop As Boolean,
	capBottom As Boolean
) As Extrusion

Parameters

cylinder
Type: Rhino.GeometryCylinder
IsFinite must be true.
otherRadius
Type: SystemDouble
If cylinder.Radius is less than other radius, then the cylinder will be the inside of the pipe.
capTop
Type: SystemBoolean
If true, the end at cylinder.Height2 will be capped.
capBottom
Type: SystemBoolean
If true, the end at cylinder.Height1 will be capped.

Return Value

Type: Extrusion
Extrusion on success. null on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also