ShortPath

Creates the shortest possible curve (geodesic) between two points on a surface. For more details, see the ShortPath command in the Rhino help file.

Syntax

rhinoscriptsyntax.ShortPath (surface_id, start_point, end_point)

rhinoscript.surface.ShortPath (surface_id, start_point, end_point)

Parameters

surface_id

Required.  String or Guid.  The identifier of the surface object that pulls.

start_point

Required.  A 3-D surface point identifying the starting point of the short curve.

end_point

Required.  A 3-D surface point identifying the ending point of the short curve.

Returns

Guid

The identifier of the new curve object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select surface for short path", rs.filter.surface + rs.filter.surface)

if surface:

    start = rs.GetPointOnSurface(surface, "First point")

    end = rs.GetPointOnSurface(surface, "Second point")

    rs.ShortPath(surface, start, end)

Also See

EvaluateSurface

SurfaceClosestPoint