FlipSurface

Returns or changes the normal direction of a surface. This feature can also be found in Rhino's Dir command.

Syntax

rhinoscriptsyntax.FlipSurface (surface_id, flip=None)

rhinoscript.surface.FlipSurface (surface_id, flip=None)

Parameters

surface_id

Required.  String or Guid.  The identifier of a surface object.

flip

Optional.  Boolean.  The new normal orientation, either flipped (True) or not flipped (False).  If omitted, the current normal orientation is returned.

Returns

Boolean

If flip is not specified, the current normal orientation if successful.

Boolean

If flip is specified, the previous normal orientation if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surf = rs.GetObject("Select object", rs.filter.surface)

if surf:

    flip = rs.FlipSurface(surf)

    if flip: rs.FlipSurface(surf, False)

Also See

IsSurface