From 86f340cb411313c040c21b52a81fcdf1811ffc93 Mon Sep 17 00:00:00 2001 From: Rafal Paluch Date: Fri, 19 Dec 2025 11:04:48 +0100 Subject: [PATCH] =?UTF-8?q?Dalsze=20rozkminki=20nad=20trapezoidem=20ju?= =?UTF-8?q?=C5=BC=20blisko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_cap.py | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/post_cap.py b/post_cap.py index f517c86..8faaa8e 100644 --- a/post_cap.py +++ b/post_cap.py @@ -25,16 +25,36 @@ with BuildPart() as p: with Locations((punkt1.Z, 0)): Ellipse(4 / 2, 10 / 2) sweep(path=ucho) - with BuildSketch(Plane.XZ) as s3: - Trapezoid(18, 6, 80, 88, align=Align.MIN) - t3 = revolve(axis=Axis.Z, mode=Mode.PRIVATE) + with BuildSketch(Plane.XZ) as s1: + # Trapezoid(18, 6, 80, 88, align=Align.MIN) + Trapezoid(42, 37, 86, align=(Align.CENTER, Align.MIN)) + split(bisect_by=Plane.YZ) + t3 = revolve(axis=Axis.Z) + t4 = t3.faces().sort_by(Axis.Z)[-1].edge() + t5 = fillet(t4, 1) + +debug(t3) +debug(t4) # export_step(p.part, "/home/pali112/Build123d/debug.step") +# with BuildPart() as testowo: +# with BuildSketch(Plane.XZ) as s1: +# # Trapezoid(18, 6, 80, 88, align=Align.MIN) +# Trapezoid(42, 37, 86, align=(Align.CENTER, Align.MIN)) +# split(bisect_by=Plane.YZ) +# t3 = revolve(axis=Axis.Z) +# t4 = testowo.faces().sort_by(Axis.Z)[-1].edge() +# t5 = fillet(t4, 3 / 2) + +# export_step(testowo.part, "/home/pali112/Build123d/debug.step") + +# show_object(testowo) + # debug(punkt1, name="punkt1") -debug(t3, name="t3") -debug(s3.sketch, name="s3") -debug(s2.sketch, name="s2") -debug(l1.line, name="ucho") -show_object(p) -debug(s.sketch, name="kubek") +# debug(t3, name="t3") +# debug(s3.sketch, name="s3") +# debug(s2.sketch, name="s2") +# debug(l1.line, name="ucho") +# show_object(p) +# debug(s.sketch, name="kubek")