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

Solid cutting issue with some shapes #298

Open
generein opened this issue Jan 15, 2023 · 0 comments
Open

Solid cutting issue with some shapes #298

generein opened this issue Jan 15, 2023 · 0 comments

Comments

@generein
Copy link
Contributor

I want to cut one shape with another, but run into an error.

vol1 = paramak.RotateCircleShape(a1,points=[(R,0,0,"straight")]
vol2  = paramak.RotateCircleShape(a1+a2,points=[(R,0,0,"straight")]
vol3 = paramak.utils.cut_solid(vol2,vol1)

The error is as follows:

Traceback (most recent call last):
  File "<path-to-anaconda>/envs/paramak_env/lib/python3.8/site-packages/paramak/utils.py", line 287, in cut_solid
    solid = solid.cut(cutter.solid)
TypeError: 'NoneType' object is not callable

Printing the type of vol1 and vol2 shows them correctly as <class 'paramak.parametric_shapes.rotate_circle_shape.RotateCircleShape'>

Also happens for e.g. CenterColumnShieldCylinder and whether I use cut_solid or intersect_solid (from paramak.utils) and cut or intersect (from CQ directly).

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