OffsetSurface

Offsets a trimmed or untrimmed surface by a distance. The offset surface will be added to Rhino.

Syntax

rhinoscriptsyntax.OffsetSurface (surface_id, distance, tolerance=None, both_sides=False, create_solid=False)

rhinoscript.surface.OffsetSurface (surface_id, distance, tolerance=None, both_sides=False, create_solid=False)

Parameters

surface_id

Required.  String or Guid.  The object's identifier.

distance

Required.  Number.  The distance to offset.

tolerance

Optional.  Number. The offset tolerance. Use 0.0 to make a loose offset. Otherwise, the document's absolute tolerance is usually sufficient.

both_sides

Optional. Boolean. Offset to both sides of input surface. The default is False

create_solid

Optional. Boolean. Make a solid object. The default is False

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select a surface", rs.filter.surface)

if rs.IsSurface(surface):

    rs.OffsetSurface( surface, 10.0 )

Also See

OffsetCurve