Skip to content

Hello! I'm Victor, the author of this project.
I'm looking for funding to be able to keep working on it. If you can, please consider donating or sponsoring.
Thank you! ❤️

Export with build123

python
import torchlensmaker as tlm
from torchlensmaker.export_build123d import surface_to_sketch


# TODO add SphereR

test_shapes = [
    tlm.Sphere(15.0, 20.0),
    tlm.Sphere(15.0, -20.0),
    tlm.Parabola(15.0, 0.02),
    tlm.Parabola(15.0, -0.02),
    tlm.CircularPlane(15.0),
]

for shape in test_shapes:
    sk = surface_to_sketch(shape)
    if not tlm.viewer.vue_format_requested():
        display(sk)