Intersection
Provides static methods for the computation of intersections, projections, sections and similar.
Inheritance Hierarchy
System.Object
Rhino.Geometry.Intersect.Intersection
Namespace: Rhino.Geometry.Intersect
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public static class Intersection
The Intersection type exposes the following members.
Properties
Name
Description
Public Property
Static Member
MeshIntersectionsTolerancesCoefficient
Offers a requested adjustment coefficient for mesh-mesh intersections tolerances. The value can be used to multiply the document absolute tolerance.
This is only a UI value; it is up to developer to honor (or not) this request, depending on application needs.
Methods
Name
Description
Public Method
Static Member
ArcArc
Intersects two arcs using exact calculations.
Public Method
Static Member
BrepBrep(Brep, Brep, Double, .Curve.., .Point3d..)
Intersects two Breps.
Public Method
Static Member
BrepBrep(Brep, Brep, Double, Boolean, .Curve.., .Point3d..)
Intersects two Breps.
Public Method
Static Member
BrepPlane
Intersects a Brep with an (infinite) plane.
Public Method
Static Member
BrepSurface(Brep, Surface, Double, .Curve.., .Point3d..)
Intersects a Brep and a Surface.
Public Method
Static Member
BrepSurface(Brep, Surface, Double, Boolean, .Curve.., .Point3d..)
Intersects a Brep and a Surface.
Public Method
Static Member
CircleCircle
Intersects two circles using exact calculations.
Public Method
Static Member
Code Example
CurveBrep(Curve, Brep, Double, .Curve.., .Point3d..)
Intersects a curve with a Brep. This function returns the 3D points of intersection and 3D overlap curves. If an error occurs while processing overlap curves, this function will return false, but it will still provide partial results.
Public Method
Static Member
CurveBrep(Curve, Brep, Double, Double, .Double..)
Intersect a curve with a Brep. This function returns the intersection parameters on the curve.
Public Method
Static Member
CurveBrep(Curve, Brep, Double, .Curve.., .Point3d.., .Double..)
Intersects a curve with a Brep. This function returns the 3D points of intersection, curve parameters at the intersection locations, and 3D overlap curves. If an error occurs while processing overlap curves, this function will return false, but it will still provide partial results.
Public Method
Static Member
CurveBrepFace
Intersects a curve with a Brep face.
Public Method
Static Member
Code Example
CurveCurve
Finds the intersections between two curves.
Public Method
Static Member
CurveCurveValidate
Finds the intersections between two curves.
Public Method
Static Member
CurveLine
Intersects a curve and an infinite line.
Public Method
Static Member
CurvePlane
Intersects a curve with an (infinite) plane.
Public Method
Static Member
CurveSelf
Finds the places where a curve intersects itself.
Public Method
Static Member
Code Example
CurveSurface(Curve, Surface, Double, Double)
Intersects a curve and a surface.
Public Method
Static Member
CurveSurface(Curve, Interval, Surface, Double, Double)
Intersects a sub-curve and a surface.
Public Method
Static Member
CurveSurfaceValidate(Curve, Surface, Double, Double, .Int32.., TextLog.)
Intersects a curve and a surface.
Public Method
Static Member
CurveSurfaceValidate(Curve, Interval, Surface, Double, Double, .Int32.., TextLog.)
Intersects a sub-curve and a surface.
Public Method
Static Member
LineBox(Line, BoundingBox, Double, Interval.)
Intersects an infinite line and an axis aligned bounding box.
Public Method
Static Member
LineBox(Line, Box, Double, Interval.)
Intersects an infinite line with a box volume.
Public Method
Static Member
Code Example
LineCircle
Intersects a line with a circle using exact calculations.
Public Method
Static Member
LineCylinder
Intersects a line with a cylinder using exact calculations.
Public Method
Static Member
Code Example
LineLine(Line, Line, Double., Double.)
Find the unique closest-points pair between two infinite lines, if it exists.
Public Method
Static Member
LineLine(Line, Line, Double., Double., Double, Boolean)
Intersects two lines.
Public Method
Static Member
LinePlane
Intersects a line and a plane. This function only returns true if the intersection result is a single point (i.e. if the line is coincident with the plane then no intersection is assumed).
Public Method
Static Member
LineSphere
Intersects a line with a sphere using exact calculations.
Public Method
Static Member
MeshLine(Mesh, Line)
Finds the intersections of a mesh and a line.
Public Method
Static Member
MeshLine(Mesh, Line, .Int32..)
Finds the intersections of a mesh and a line. The points are not necessarily sorted.
Public Method
Static Member
MeshLineSorted
Finds the intersections of a mesh and a line. Points are sorted along the line.
Public Method
Static Member
MeshMesh
Intersects meshes. Overlaps and perforations are provided in the output list.
Public Method
Static Member
MeshMeshAccurate
Intersects two meshes. Overlaps and near misses are handled. This is an old method kept for compatibility.
Public Method
Static Member
MeshMeshFast
This is an old overload kept for compatibility. Overlaps and near misses are ignored.
Public Method
Static Member
MeshMeshPredicate
Determines if meshes intersect or overlap.
Public Method
Static Member
MeshPlane(Mesh, Plane)
Intersects a mesh with an infinite plane.
Public Method
Static Member
MeshPlane(Mesh, IEnumerable.Plane.)
Intersects a mesh with a collection of infinite planes.
Public Method
Static Member
MeshPlane(Mesh, MeshIntersectionCache, Plane, Double)
Intersects a mesh with an infinite plane.
Public Method
Static Member
MeshPlane(Mesh, MeshIntersectionCache, IEnumerable.Plane., Double)
Intersects a mesh with a collection of infinite planes.
Public Method
Static Member
MeshPolyline
Finds the intersection of a mesh and a polyline. Starting from version 7, points are always sorted along the polyline.
Public Method
Static Member
MeshPolylineSorted
Finds the intersection of a mesh and a polyline. Points are guaranteed to be sorted along the polyline.
Public Method
Static Member
MeshRay(Mesh, Ray3d)
Finds the first intersection of a ray with a mesh.
Public Method
Static Member
MeshRay(Mesh, Ray3d, .Int32..)
Finds the first intersection of a ray with a mesh.
Public Method
Static Member
PlaneBoundingBox
Intersects a plane and a bounding box.
Public Method
Static Member
PlaneCircle
Intersects a plane with a circle using exact calculations.
Public Method
Static Member
PlanePlane
Intersects two planes and return the intersection line. If the planes are parallel or coincident, no intersection is assumed.
Public Method
Static Member
PlanePlanePlane
Intersects three planes to find the single point they all share.
Public Method
Static Member
PlaneSphere
Intersects a plane with a sphere using exact calculations.
Public Method
Static Member
Code Example
ProjectPointsToBreps
Projects points onto breps.
Public Method
Static Member
ProjectPointsToBrepsEx
Projects points onto breps.
Public Method
Static Member
ProjectPointsToMeshes
Projects points onto meshes.
Public Method
Static Member
Code Example
ProjectPointsToMeshesEx
Projects points onto meshes.
Public Method
Static Member
RayShoot(IEnumerable.GeometryBase., Ray3d, Int32)
Computes point intersections that occur when shooting a ray to a collection of surfaces and Breps.
Public Method
Static Member
RayShoot(Ray3d, IEnumerable.GeometryBase., Int32)
Computes point intersections that occur when shooting a ray to a collection of surfaces and Breps.
Public Method
Static Member
SphereSphere
Intersects two spheres using exact calculations.
Public Method
Static Member
SurfaceSurface
Intersects two Surfaces.