Click or drag to resize

MeshIsPointInside Method

Determines if a point is inside a closed mesh.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool IsPointInside(
	Point3d point,
	double tolerance,
	bool strictlyIn
)

Parameters

point
Type: Rhino.GeometryPoint3d
3d point to test.
tolerance
Type: SystemDouble
(>=0) 3d distance tolerance used for ray-mesh intersection and determining strict inclusion. This is expected to be a tiny value.
strictlyIn
Type: SystemBoolean
If strictlyIn is true, then point must be inside mesh by at least tolerance in order for this function to return true. If strictlyIn is false, then this function will return true if point is inside or the distance from point to a mesh face is <= tolerance.

Return Value

Type: Boolean
true if point is inside the mesh, false if not.
Remarks
The mesh must be closed and manifold; this function returns false for any other mesh. Inside means enclosed by the mesh, so a consistent face orientation is not required and reversing the faces does not change the answer.
See Also