Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance between a point and a line/plane #854

Open
alikureishy opened this issue Aug 21, 2021 · 2 comments
Open

Distance between a point and a line/plane #854

alikureishy opened this issue Aug 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@alikureishy
Copy link

alikureishy commented Aug 21, 2021

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 alikureishy changed the title Distance between two shapes Distance between a point and a line/plane Aug 21, 2021
@jmwright jmwright added the enhancement New feature or request label Aug 23, 2021
@jmwright
Copy link
Member

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.

@willhansen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants