M_Rhino_Geometry_Mesh_IsPointInside - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh.IsPointInside Method

Determines if a point is inside a solid mesh.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public bool IsPointInside(
	Point3d point,
	double tolerance,
	bool strictlyIn
)

VB

Public Function IsPointInside ( 
	point As Point3d,
	tolerance As Double,
	strictlyIn As Boolean
) As Boolean

Parameters

 

point
Type: Rhino.Geometry.Point3d
3d point to test.
tolerance
Type: System.Double
(>=0) 3d distance tolerance used for ray-mesh intersection and determining strict inclusion.
strictlyIn
Type: System.Boolean
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 solid mesh, false if not.

Remarks

The caller is responsible for making certing the mesh is solid before calling this function. If the mesh is not solid, the behavior is unpredictable.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️