mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Some checks are pending
benchmarks / benchmarks (macos-13, 3.12) (push) Waiting to run
benchmarks / benchmarks (macos-14, 3.12) (push) Waiting to run
benchmarks / benchmarks (ubuntu-latest, 3.12) (push) Waiting to run
benchmarks / benchmarks (windows-latest, 3.12) (push) Waiting to run
Upload coverage reports to Codecov / run (push) Waiting to run
pylint / lint (3.10) (push) Waiting to run
Run type checker / typecheck (3.10) (push) Waiting to run
Run type checker / typecheck (3.13) (push) Waiting to run
Wheel building and publishing / Build wheel on ubuntu-latest (push) Waiting to run
Wheel building and publishing / upload_pypi (push) Blocked by required conditions
tests / tests (macos-13, 3.10) (push) Waiting to run
tests / tests (macos-13, 3.13) (push) Waiting to run
tests / tests (macos-14, 3.10) (push) Waiting to run
tests / tests (macos-14, 3.13) (push) Waiting to run
tests / tests (ubuntu-latest, 3.10) (push) Waiting to run
tests / tests (ubuntu-latest, 3.13) (push) Waiting to run
tests / tests (windows-latest, 3.10) (push) Waiting to run
tests / tests (windows-latest, 3.13) (push) Waiting to run
18 lines
563 B
Python
18 lines
563 B
Python
from build123d import *
|
|
|
|
# from ocp_vscode import show_all, set_defaults, Camera
|
|
|
|
# set_defaults(reset_camera=Camera.KEEP)
|
|
|
|
with BuildLine() as blend_curve:
|
|
l1 = CenterArc((0, 0), 5, 135, -135)
|
|
l2 = Spline((0, -5), (-3, -8), (0, -11))
|
|
l3 = BlendCurve(l1, l2, tangent_scalars=(2, 5))
|
|
s = 100 / max(*blend_curve.line.bounding_box().size)
|
|
svg = ExportSVG(scale=s)
|
|
svg.add_layer("dashed", line_type=LineType.ISO_DASH_SPACE)
|
|
svg.add_shape(l1, "dashed")
|
|
svg.add_shape(l2, "dashed")
|
|
svg.add_shape(l3)
|
|
svg.write("assets/example_blend_curve.svg")
|
|
# show_all()
|