-
Notifications
You must be signed in to change notification settings - Fork 291
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
Update shapes.py #986
Update shapes.py #986
Conversation
Use TopTools_ListOfShape() in assembleEdges()
Codecov Report
@@ Coverage Diff @@
## master #986 +/- ##
=======================================
Coverage 96.17% 96.17%
=======================================
Files 40 40
Lines 9286 9288 +2
Branches 1109 1109
=======================================
+ Hits 8931 8933 +2
Misses 208 208
Partials 147 147
Continue to review full report at Codecov.
|
"##[error]No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form https://aka.ms/azpi" Is that ok? |
That's an unrelated issue with azure - working on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bragostin
I have just noticed that this new import cadquery as cq
(L, H, W, t) = (100.0, 20.0, 20.0, 1.0)
pts = [
(0, H/2.0),
(0, H/2.0),
(W/2.0, H/2.0),
(W/2.0, (H/2.0 - t)),
(t/2.0, (H/2.0 - t)),
(t/2.0, (t - H/2.0)),
(W/2.0, (t - H/2.0)),
(W/2.0, H/-2.0),
(0, H/-2.0)
]
result = cq.Workplane("front").polyline(pts).mirrorY().extrude(L) Do you think this is a problem? |
@bragostin How does it crash? Does it segfault or raise an exception? Does it give a stacktrace? |
@jmwright It raises the following exception Traceback (most recent call last):
File "/home/bruno/Documents/CadQuery/tests/issues/polyline.py", line 15, in <module>
result = cq.Workplane("front").polyline(pts).mirrorY().extrude(L)
File "/home/bruno/.conda/envs/cadquery/lib/python3.9/site-packages/cadquery/cq.py", line 2719, in polyline
edges.append(Edge.makeLine(startPoint, endPoint))
File "/home/bruno/.conda/envs/cadquery/lib/python3.9/site-packages/cadquery/occ_impl/shapes.py", line 1826, in makeLine
return cls(BRepBuilderAPI_MakeEdge(v1.toPnt(), v2.toPnt()).Edge())
OCP.StdFail.StdFail_NotDone: BRep_API: command not done It looks like using |
@bragostin you error is not in |
@adam-urbanczyk @jmwright yes, but before we changed |
Failure in |
@adam-urbanczyk I would think not because if I change back for e in listOfEdges:
wire_builder.Add(e.wrapped) this errors disappears. |
Use TopTools_ListOfShape() in assembleEdges() as explained in issue : List of wires is not closed : solution proposal #985