paramak
paramak copied to clipboard
Solid cutting issue with some shapes
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).