You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make a box with tapered walls using the following code, however I get an error OCP.Standard.Standard_NoSuchObject: BRep_Tool:: no parameter on edge.
import cadquery as cq
result = (
cq.Workplane('XY')
.rect(10, 10)
.extrude(10, taper=-10.0)
.faces(">Z")
.shell(-0.5)
)
cq.exporters.export(result, 'issue.stl')
show_object(result)
Traceback (most recent call last):
File "issue.py", line 8, in <module>
.shell(-0.5)
^^^^^^^^^^^
File ".venv\Lib\site-packages\cadquery\cq.py", line 1276, in shell
s = solidRef.shell(faces, thickness, kind=kind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\cadquery\occ_impl\shapes.py", line 2848, in shell
shell_builder.MakeThickSolidByJoin(
OCP.Standard.Standard_NoSuchObject: BRep_Tool:: no parameter on edge
Strangely, no such error occurs when I change the taper from -10deg to +10deg and select the bottom face instead of the top face. The model renders normally and it is exactly the same, as the expected result from the first example, but upside down.
import cadquery as cq
result = (
cq.Workplane('XY')
.rect(10, 10)
.extrude(10, taper=10.0)
.faces("<Z")
.shell(-0.5)
)
cq.exporters.export(result, 'issue.stl')
show_object(result)
I am not sure why the negative taper is causing the issue. Am I doing something wrong or is this a bug?
Python libraries
python==3.11.7
cadquery==2.4.0
cadquery-ocp==7.7.2
numpy==1.23.5 (not using numpy 2.1.1 because of currently unresolved issue #442)
The text was updated successfully, but these errors were encountered:
Problem Statement
I am trying to make a box with tapered walls using the following code, however I get an error
OCP.Standard.Standard_NoSuchObject: BRep_Tool:: no parameter on edge
.Strangely, no such error occurs when I change the taper from -10deg to +10deg and select the bottom face instead of the top face. The model renders normally and it is exactly the same, as the expected result from the first example, but upside down.
I am not sure why the negative taper is causing the issue. Am I doing something wrong or is this a bug?
Python libraries
python==3.11.7
cadquery==2.4.0
cadquery-ocp==7.7.2
numpy==1.23.5 (not using numpy 2.1.1 because of currently unresolved issue #442)
The text was updated successfully, but these errors were encountered: