RhinoCommon API
ExtrusionCreateBoxExtrusion Method |
Gets an extrusion from a box.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Extrusion CreateBoxExtrusion( Box box, bool cap = true )
Public Shared Function CreateBoxExtrusion ( box As Box, Optional cap As Boolean = true ) As Extrusion
Parameters
- box
- Type: Rhino.GeometryBox
IsValid must be true. - cap (Optional)
- Type: SystemBoolean
If true, the base and the top of the box will be capped. Defaults to true.
Return Value
Type: ExtrusionExtrusion on success. null on failure.

Rhino for Windows
Supported in: 6.8