Open vrzh opened 11 months ago
Call consolidateWires()
to render the intermediate result.
wi0 = result.consolidateWires()
show_object(wi0)
If you are working with Sketch, you can view the intermediate result like this.:
import cadquery as cq
s0 = (
cq.Sketch()
.segment((0, 0), (1, 2))
.segment((3, 3))
.segment((2, 1))
#.close()
#.assemble()
)
show_object(s0)
So this is not a bug. For Workplane
only top of the stack is displayed.
So this is not a bug. For
Workplane
only top of the stack is displayed.
Ahh, yes. That makes sense. Thank you.
Call
consolidateWires()
to render the intermediate result.wi0 = result.consolidateWires() show_object(wi0)
If you are working with Sketch, you can view the intermediate result like this.:
import cadquery as cq s0 = ( cq.Sketch() .segment((0, 0), (1, 2)) .segment((3, 3)) .segment((2, 1)) #.close() #.assemble() ) show_object(s0)
Perfect, I will use this. Thank you.
This is probably more of a question, but also maybe a bug.
I really like the "automatic reload and preview" inside CQ-Editor.
I am trying to build up a complicated path using many
lineTo
calls, and want to have a preview as I am in the middle of this. However, in the CQ-Editor preview window, I don't see the entire path (only the last segment).If I want to see the path so far, I need to call
close
at the end, and then it renders. But, I am not finished with the path yet and so don't want to close it.This seems not related to CQ-Editor itself, because if you generate an SVG output for attached example, you get the same effect.
I am using
CadQuery
andCQ-Editor
viapip
.Screenshot:
SVG output: