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
According to https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.rarray
rarray's arguments need to be greater than 0. The implementation correctly does this for the integer arguments xCount and yCount, however xSpacing and ySpacing are floats and their check should be if arg less than or equal to 0
This simple code reproduces the error:
import cadquery as cq
cq.Workplane().box(5.0, 5.0, 5.0).faces(">Z").rarray(1.0, 0.625, 1, 3).hole(0.125)
Recommended Solution
if xSpacing <= 0 or ySpacing <= 0 or xCount < 1 or yCount < 1:
raise ValueError("Spacing and count must be > 0 ")
The text was updated successfully, but these errors were encountered:
cadquery/cadquery/cq.py
Line 1294 in 2d721d0
According to https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.rarray
rarray's arguments need to be greater than 0. The implementation correctly does this for the integer arguments xCount and yCount, however xSpacing and ySpacing are floats and their check should be if arg less than or equal to 0
This simple code reproduces the error:
Recommended Solution
The text was updated successfully, but these errors were encountered: