compas-dev / compas-dev/compas
Intersection methods that accepts tuples.
- Dominant language
- Python
- Stars
- 386
- Forks
- 122
- Avg merge
- 11d 46m
- Merged PRs (30d)
- 1
Description
**Describe the bug**
I doubt it is a bug, but still would like to ask.
In several intersection methods of compas, input parameters are either a tuple or a primitive geometry object, but it works only with a tuple. For example:
`p0, p1 = intersection_sphere_line((sphere.base, sphere.radius), line)`
But this does not work, since the intersection method tries to unpack the sphere:
`p0, p1 = intersection_sphere_line(sphere, line)`
**To Reproduce**
Above.
**Expected behavior**
Preferred way would be to work with a primitive rather than a tuple.
**Desktop (please complete the following information):**
- OS: Ubuntu
- Python version 3.9.10
- Python pip installed compas version from git clone.
Contributor guide
Assessment
This issue has not been assessed yet.