ReverseSurface

Reverses the U and V directions of a surface object. This feature can also be found in Rhino's Dir command.

To reverse the normal direction of a surface, use the FlipSurface method.

Syntax

rhinocsriptsyntax.ReverseSurface (object_id, direction)

rhinocsript.surface.ReverseSurface (object_id, direction)

Parameters

object_id

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

direction

Required.  Number.  The direction to reverse. Values can be added together so as to reverse more than one direction.

Value

Description

1

Reverse the surface in the U direction.

2

Reverse the surface in the V direction.

4

Swap, or transpose, the U and V directions of the surface.

Returns

Boolean

True or False indicating success or failure.

None

On error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a surface to reverse")

ff rs.IsSurface(obj):

  rs.ReverseSurface( obj, 1 )

Also See

FlipSurface

IsSurface