3d printing with mathematica tinkercad

11
3D Printing with Mathematica and TinkerCad Kevin Marinelli 2019-10-07 Topics: o Geometry for 3D Printing o STL File o Surfaces in Mathematica o Constructive Solid Geometry o Export to STL o Basic TinkerCad o Importing STL files in TinkerCad o Exporting STL files from TinkerCad

Upload: others

Post on 03-Jun-2022

25 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3D Printing with Mathematica TinkerCad

3D Printing with Mathematica and TinkerCad

Kevin Marinelli 2019-10-07

Topics:

o Geometry for 3D Printing o STL File o Surfaces in Mathematica o Constructive Solid Geometry o Export to STL o Basic TinkerCad o Importing STL files in TinkerCad o Exporting STL files from TinkerCad

Page 2: 3D Printing with Mathematica TinkerCad

Geometry for 3D Printing

Requires a closed Manifold

• No dangling vertices • No dangling edges • No dangling polygons

Page 3: 3D Printing with Mathematica TinkerCad

Examples:

o Torus

o Klein Bottle

Page 4: 3D Printing with Mathematica TinkerCad

Not Examples: o Disc

o Infinite Line

Page 5: 3D Printing with Mathematica TinkerCad

STL Files

STL = STereoLithography file

What is Stereolithography?

Triangle Example:

solid MyObject facet normal 0 0 0 outerloop Vertex -0.625 1 0.609 Vertex -0.714 0.875 0.255 Vertex 0.625 0.946 0.505 endloop endfacet endsolid MyObject

Page 6: 3D Printing with Mathematica TinkerCad

Surfaces in Mathematica

The “Plot” commands can generate 3D surfaces.

Example:

ParametricPlot3D[ {x,y,y^2-x^2},{x,-1,1}, {y,-1,1}, boxed->False,

Ticks->False, AspectRatio->Automatic, Axes->False]

This violates the requirements for an STL file for 3D printing! Why?

Page 7: 3D Printing with Mathematica TinkerCad

Constructive Solid Geometry

Defines geometry in such a way that objects can be closed.

Implemented in Mathematica using RegionPlot.

Saddle=RegionPlot3D[(x^2 – y^2)/100 > z, {x, -100, 100}, {y, -100, 100}, {z, -150, 100}, AxesLabel -> {x, y, z}, Mesh -> 50, PlotRange -> {{-100, 100}, {-100, 100}, {-150, 100}}]

Meets requirements of being closed, no dangling vertices, no dangling edges, no dangling faces.

Page 8: 3D Printing with Mathematica TinkerCad

Export to STL

Mathematica makes generating STL files easy!

Export["~/Saddle_Ascii.stl", Saddle, {"STL", "BinaryFormat" ->

False}]

Ascii text output is human readable:

solid Created_by_the_Wolfram_Language_:_www.wolfram.com

facet normal 0 0 0

outer loop vertex -0.589286 0.125 -0.331633

vertex -0.571428 0.125 -0.310906

vertex -0.571428 0.142857 -0.306122

endloop endfacet

Page 9: 3D Printing with Mathematica TinkerCad

Basic TinkerCad

Tinkercad is a beginner-level Autodesk web-based cad package. https://www.tinkercad.com/ Basic tutorial: https://maker.math.uconn.edu/3d-printing-for-mathematics/tinkercad-for-mathematics/tutorial-for-annotating-3d-models/ Example model: https://www.tinkercad.com/things/aCkT4ohjIcl A challenging example: https://www.tinkercad.com/things/aKMpAQMPnEW

Page 10: 3D Printing with Mathematica TinkerCad

Discussion

Page 11: 3D Printing with Mathematica TinkerCad

facet normal 0 0 0

outer loop vertex -0.5 -0.571428 0.0765306

vertex -0.5 -0.5 0

vertex -0.571428 -0.571428 0

endloop endfacet

facet normal 0 0 0

outer loop vertex -0.928571 -0.5 -0.612245

vertex -0.875 -0.5 -0.515625

vertex -0.875 -0.446429 -0.566326

endloop

endfacet

facet normal 0 0 0

outer loop vertex -0.785714 -0.5 -0.367347

vertex -0.75 -0.5 -0.3125

vertex -0.75 -0.464286 -0.346939

endloop endfacet

Endsolid Created_by_the_Wolfram_Language_:_www.wolfram.com