cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Distance between a point and a line/plane

Open alikureishy opened this issue 4 years ago • 2 comments

I see the following method stubs in occ_impl/geom.py:

    def distanceToLine(self):
        raise NotImplementedError("Have not needed this yet, but OCCT supports it!")

    ...

    def distanceToPlane(self):
        raise NotImplementedError("Have not needed this yet, but OCCT supports it!")

Any chance these could be implemented? Sure would be nice to have a clean way of accessing this functionality at the cadquery level, instead of digging into OCCT objects.

alikureishy avatar Aug 21 '21 00:08 alikureishy

I think there is support for implementing these, but we have limited resources like most other open source projects. We do accept PRs from the community.

jmwright avatar Aug 23 '21 19:08 jmwright

For reference, I think these are the relevant OCCT functions:

willhansen avatar Jun 05 '22 00:06 willhansen