FlipSurface

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

Syntax

Rhino.FlipSurface (strObject [, blnFlip])

Parameters

strObject

Required.  String.  The identifier of a surface object.

blnFlip

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

Returns

Boolean

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

Boolean

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

Null

If not successful, or on error.

Example

Dim strObject, bFlip

strObject = Rhino.GetObject("Select object", 8)

If Not IsNull(strObject) Then

  bFlip = Rhino.FlipSurface(strObject)

  If (bFlip = True) Then

    Rhino.FlipSurface strObject, False

  End If

End If

Also See

IsSurface