---
title: 'Workflow: Daily Desmos -> Desmos -> Madeup -> 3D Print'
url: 'https://blog.recursiveprocess.com/2016/06/13/workflow-daily-desmos-desmos-madeup-3d-print'
markdown: 'https://blog.recursiveprocess.com/2016/06/13/workflow-daily-desmos-desmos-madeup-3d-print.md'
date: '2016-06-13'
description: 'The seniors don’t go to school on the last day, so I had calculus class on Friday with one student (a junior). We went down to the innovations lab to create things. Here’s what we worked on: Took this sketch from dailydesmos: I had the student work on the solution after talking about s…'
taxonomy:
  category:
    - blog
---

# Workflow: Daily Desmos -> Desmos -> Madeup -> 3D Print

### [Workflow: Daily Desmos -> Desmos -> Madeup -> 3D Print](https://blog.recursiveprocess.com/2016/06/13/workflow-daily-desmos-desmos-madeup-3d-print)

   June 13, 2016, 12:00 am  

The seniors don’t go to school on the last day, so I had calculus class on Friday with one student (a junior). We went down to the innovations lab to create things. Here’s what we worked on:

[Took this sketch from dailydesmos](http://dailydesmos.com/2016/04/21/supercircles-0-advanced/):

![2016-04-21_07h38_06](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/2016-04-21_07h38_06.png)

I had the student work on the solution after talking about superellipses (or the better name, squircles).

When he finished the solution, [we modified it to get this sketch](https://www.desmos.com/calculator/dwabvz8q0t):

![dwabvz8q0t](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/dwabvz8q0t-e1465828793326-1024x633.png)

and we decided to try and get a 3D print of this sketch. [We started working in madeup](https://www.kickstarter.com/projects/1975355456/madeup-a-programming-language-for-3-d-models) (a fantastic beta of a program that takes code and creates 3D models), but found it tricky to graph the function. [Went back to desmos to get this sketch](https://www.desmos.com/calculator/nhijuf1mi5) where we could figure out how to get the specific coordinates of points along the curve.

![cp6i3eokwg](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/cp6i3eokwg-e1465828776197-1024x703.png)

Fiddled around for a bit to get this result:
![ezgif.com-optimize (1)](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/ezgif.com-optimize-1.gif)

Here’s the code:

```
to abs x = if x > 0 then x else -x

to func t_ a_
  if (t_ < 0)
    t_ = t_ * -1
  end
  out = a_ - t_ ^ 4
  if (out < 0)
    out = abs out
    out = out ^ (0.2)
    out = - out
  else 
    out = out ^ (0.2)
  end
  out
end

a = 20
h = 0
while a > 0
    t = -3
    while t < 3
        x = t
        y = func t,a
        moveto x,y,h
        t = t + 0.025
    end
    h = h + 0.1
    extrude 0,0,1,-0.1
    a = a - 1
end
```

Then click on the solidify button and [download the model](https://dl.dropboxusercontent.com/u/3646828/squircle%20thing.obj).

![2016-06-13_10h44_39](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/2016-06-13_10h44_39.png)

Send to makerbot, and pick up first thing monday!

![FullSizeRender](https://blog.recursiveprocess.com/wp-content/uploads/2016/06/FullSizeRender-2-1006x1024.jpg)

 [ Next Post](https://blog.recursiveprocess.com/2016/07/08/workflow-desmos-processing-fiji-3d-print) [Previous Post ](https://blog.recursiveprocess.com/2016/06/13/thoughts-on-the-intersection-of-math-and-programming)

#### SimpleSearch

Bootstrap Theme for [Grav](http://getgrav.org)

---

## Navigation

- Parent: [A Recursive Process](https://blog.recursiveprocess.com/index.md)
- Previous: [Workflow: Desmos -> Processing -> Fiji -> 3D Print](https://blog.recursiveprocess.com/2016/07/08/workflow-desmos-processing-fiji-3d-print.md)
- Next: [Thoughts on the Intersection of Math and Programming](https://blog.recursiveprocess.com/2016/06/13/thoughts-on-the-intersection-of-math-and-programming.md)
