Loft in OpenSCAD

by better call it art in Circuits > Tools

5301 Views, 6 Favorites, 0 Comments

Loft in OpenSCAD

OpenSACD loft module (tutorial)
title.png

You probably want to watch the video first.

What Is 'loft'?

triangle.png
star.png
loft_tools.png

In many CAD programs, a loft is a 3d object that is stretched out between two (or more) 2d-objects (sketches), that are located in 3d space. In the pictures you see a loft between a star and a triangle in FreeCAD, and in green circles the two sketches and the loft tool.

But there are no sketches in OpenSCAD, so what to do now?

Hull in OpenSCAD

hull_screenshot.png

If both of your shapes are entirely convex, you can make a hull. I've included an example, the documentation is there: https://en.wikibooks.org/wiki/OpenSCAD_User_Manua...

Note though that both of your shapes are three dimensional (but only 0.1 mm thick).

Downloads

The Loft Module

calling_scad.png

The problem with the hull method though is that is it limited to convex shapes, the star and triangle model from FreeCAD is not going to work here. And that is why I made a loft module. Technically it is a polyhedron that is defined by code and you 'only' need to express your two shapes in points. The number of the points of the upper and lower shapes have to be identical. It works defining your points by code, for instance if you want a circle use sin and cos.

The last number in the loft module is the number of layers, adjust it to your liking (natural number).

Troubleshooting

That's it. But for the case that something doesn't work, I added this 'debugging' file. If something is funny with your loft, add your points here and look at the colorful dots and the error messages.

If you have ideas how to make even better lofts in OpenSCAD, I'd be happy to hear from you.

Downloads