3D-Printed Mathematical Lampshades (opens in new tab)

hessammehr.github.io·11w·Hacker News·Open original (opens in new tab)

Finished lampshade

I’ve been playing with translucent PLA for lighting projects at home. Earlier this year, I built a diffuser/housing for our Lidl LED strip, since the light from the exposed LEDs was too cool and jarring. The design files are on OnShape, although they might need tweaking for the exact strip and required installation area.

alt text alt text alt text

A few viral videos have recently popped up in my YouTube feed showing bespoke 3D-printed lampshades. These ondulating membranes struck me as a surface that would arise from sweeping 2D profile as it’s raised and rotated through space. Making one from scratch seemed like a fun challenge (not to mention a nice Christmas present!).

2D profile

I started by graphing the following equation in Desmos (link will take you to the formula).

[ r = \cos(5\theta) + 0.2\cos(9\theta) + 0.05\cos(200\theta) + 4]

Something like this with big gentle ondulations on top of which small jittery ridges are overlapped.

alt text

Trying (and failing) 3D with OnShape

Desmos helpfully allows export to SVG, which I then converted to DXF in Inkscape so it can be imported into OnShape. DXF files can be added to OnShape sketches directly. So far so good. Creating the loft object in OnShape proved challenging though. A loft is pretty much what I described earlier, the volume or surface created as one 2D profile is interpolated to another. In this case, the second profile is just a point placed above the initial one. Something like this:

alt textalt text

The loft tool provide a few nice settings, specifically the initial and final angle of approach to each profile. I want the shape to rise straight from the 2D contour and form a tangent to the final point. This way the top will form a nice dome rather than a sharp spike.

This complex organic-looking profile, made up of 1047 points, doesn’t really seem to fit OnShape’s main usecase. The loft operation kept failing to process (although it looks nice) and froze a couple of times too.

alt text

Loading more...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help