AddBox

Adds a new box-shaped polysurface to the document.

Syntax

rhinoscriptsyntax.AddBox (corners)

rhinoscript.surface.AddBox (corners)

Parameters

corners

Required.  List.  A list of eight 3-D points that define the corners of the box.  Points need to be in counter-clockwise order starting with the bottom rectangle of the box.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

box = rs.GetBox()

if box: rs.AddBox(box)

Also See

AddCone

AddCylinder

AddSphere

AddTorus