FlipSurface



Your Ad Here

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.  Number.  The new normal orientation.  If omitted, the current normal orientation is returned.

Returns

Boolean

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

Number

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 = vbTrue) Then

    Rhino.FlipSurface strObject, vbFalse

  End If

End If

Also See

IsSurface

Return to Rhino Index


Your Ad Here