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
A question on Discord came up regarding Sketch.polygon and calling with a list of points that were not closed.
It wasn't clear to the user that there is no option to close and they are responsible for providing a closed list of points.
pts= [
(0, 0),
(5, 0),
(5, 5),
(0, 5),
(0, 0), # user is responsible for closing
]
s=cq.Sketch().polygon(pts)
r=cq.Workplane().placeSketch(s).extrude(1)
I've added enhancement and docs labels. This is either an enhancement (1) or resolved with doc update (2).
At the OCCT level, BRepBuilderAPI_MakePolygon provides an option to close and Close() method.
Potentially this option could be exposed in CQ in both Wire.makePolygon and Sketch.polygon
or a note might be added to the docs that the user is responsible for providing a closed list of points.
The text was updated successfully, but these errors were encountered:
A question on Discord came up regarding
Sketch.polygon
and calling with a list of points that were not closed.It wasn't clear to the user that there is no option to close and they are responsible for providing a closed list of points.
I've added enhancement and docs labels. This is either an enhancement (1) or resolved with doc update (2).
BRepBuilderAPI_MakePolygon
provides an option to close andClose()
method.Potentially this option could be exposed in CQ in both
Wire.makePolygon
andSketch.polygon
The text was updated successfully, but these errors were encountered: