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

Failure on hull of two spheres #3

Open
KeithSloan opened this issue Aug 1, 2021 · 0 comments
Open

Failure on hull of two spheres #3

KeithSloan opened this issue Aug 1, 2021 · 0 comments

Comments

@KeithSloan
Copy link
Owner

The following file fails

group() {
	hull() {
		multmatrix([[1, 0, 0, -15], [0, 1, 0, -15], [0, 0, 1, 0], [0, 0, 0, 1]]) {
			sphere($fn = 0, $fa = 12, $fs = 2, r = 5);
		}
		multmatrix([[1, 0, 0, 15], [0, 1, 0, -15], [0, 0, 1, 0], [0, 0, 0, 1]]) {
			sphere($fn = 0, $fa = 12, $fs = 2, r = 5);
		}
	}

}

FreeCAD Report View

6:07:56  hullTwoSpheres
16:07:56  5.0 mm
16:07:56  Traceback (most recent call last):
  File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/OpenSCAD_Alt_Import/OpenSCADHull.py", line 31, in execute
    obj.Shape = createHull(obj.Group)
  File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/OpenSCAD_Alt_Import/OpenSCADHull.py", line 474, in createHull
    return hullTwoSpheres(obj0,obj1)
  File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/OpenSCAD_Alt_Import/OpenSCADHull.py", line 337, in hullTwoSpheres
    p1, p2 = c4.intersect(c3)
<class 'ValueError'>: too many values to unpack (expected 2)
16:07:56  Recompute failed! Please check report view.
16:07:56  Group
16:07:56  End Parser
16:07:56  [<Part::PartFeature>]
16:07:56  End processing CSG file
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