Commit 655b47a6 authored by David Vincent's avatar David Vincent
Browse files

allow computing distance from interior points

parent e6c27ec0
Pipeline #8373 passed with stages
in 2 minutes and 7 seconds
......@@ -56,6 +56,9 @@ class Distance:
for curve in itertools.chain(domain._curves, domain._interior_curves):
if (tags is None) or (curve.tag in tags):
points.append(_curve_sample_fix(curve, sampling))
for point in itertools.chain(domain._interior_points):
if (tags is None) or (point.tag in tags):
points = np.vstack(points)
self._tree = cKDTree(points)
self._projection = domain._projection
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment