IsPointOnMesh

Verifies that a point is on a mesh.

Syntax

rhinoscriptsyntax.IsPointOnMesh (object_id, point)

rhinoscript.mesh.IsPointOnMesh (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.

None

On error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a mesh")

if rs.IsMesh(obj):

    point = rs.GetPointOnMesh(strObject, "Pick a test point")

    if point:

        if rs.IsPointOnMesh(obj, point):

            print "The point is on the mesh"

        else:

            print "The point is not on the mesh"

Also See

IsMesh

MeshClosestPoint