Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Spatial
Assembly
GeometryHelper.dll

GetIntersections(GeoRay3)

Finds every point where a ray crosses the mesh, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, Tolerance)

Finds every point where a ray crosses the mesh, within a tolerance.

public GeoPoint3[] GetIntersections(GeoRay3 ray, Tolerance tolerance)

Parameters

ray GeoRay3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The results come back in no particular order. A ray passing exactly along an edge shared by two triangles is reported by both of them, so a caller counting crossings should aim the ray away from edges rather than trust the count.