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

Bug: ClosedShell3D.point_belongs() #1147

Open
1 of 2 tasks
WirajanDASILVA opened this issue Nov 21, 2023 · 0 comments
Open
1 of 2 tasks

Bug: ClosedShell3D.point_belongs() #1147

WirajanDASILVA opened this issue Nov 21, 2023 · 0 comments

Comments

@WirajanDASILVA
Copy link
Collaborator

  • I'm submitting a ...

    • bug report
    • feature request
  • What is the current behavior?
    ClosedShell3D.point_belongs() giving false positives
    test_shell_false_point_belongs.json

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem Avoid reference to other packages

shell, point = closedshell = DessiaObject.from_json(
    "/Users/wirajandasilva/Downloads/test_shell_false_point_belongs.json"
).primitives
ax = shell.plot()
point.plot(ax, 'y')
for i in range(20):
    point_belongs = shell.point_belongs(point)
    if point_belongs:
        print(f'point belongs to shell: ', point_belongs)
        break
else:
    print('Everything went well. point_belongs gave the correct results 100% of times.')
  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

  • Possible fixes

  • Please tell us about your environment:

    • branch: dev
    • commit:
    • python version: 3.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant