IsPointOnSurface

Verifies that a point lies on a surface.

Syntax

rhinoscriptsyntax.IsPointOnSurface (object_id, point)

rhinoscript.surface.IsPointOnSurface (object_id, point)

Parameters

object_id

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

point

Required.  List of 3 numbers or Point3d.  The test, or sampling, point.

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

surf = rs.GetObject("Select a surface")

if rs.IsSurface(surf):

    point = rs.GetPoint("Pick a test point")

    if point:

        if rs.IsPointOnSurface(surf, point):

            print "The point is on the surface."

        else:

            print "The point is not on the surface."

Also See

IsPointInSurface