Determines if point is inside Brep. This question only makes sense when
the brep is a closed manifold. This function does not not check for
closed or manifold, so result is not valid in those cases. Intersects
a line through point with brep, finds the intersection point Q closest
to point, and looks at face normal at Q. If the point Q is on an edge
or the intersection is not transverse at Q, then another line is used.
RhinoCommon (in RhinoCommon.dll)
public bool IsPointInside(
Public Function IsPointInside (
point As Point3d,
tolerance As Double,
strictlyIn As Boolean
) As Boolean
- Type: Rhino.GeometryPoint3d
3d point to test.
- Type: SystemDouble
3d distance tolerance used for intersection and determining strict inclusion.
A good default is RhinoMath.SqrtEpsilon.
- Type: SystemBoolean
if true, point is in if inside brep by at least tolerance.
if false, point is in if truly in or within tolerance of boundary.
true if point is in, false if not.
Rhino for MacSupported in: 5.4
Rhino for WindowsSupported in: 6.17