May 6, 2018
Description
Curv is a programming language for creating art using mathematics. It's a 2D and 3D geometric modelling tool that supports full colour, animation and 3D printing.
https://github.com/doug-moen/curv
repeat_mirror_x
(
union(
smooth 0.3 .union
(
union
(
// nose
smooth 0.1 .difference(
smooth 0.1 .union
(sphere 2>> move(0.7,-4.5,1.5) ,
sphere 2>> move(-0,-4.5,1.5) ),
sphere 3>> move(1.3,-6,1.5)
),
//mouth
smooth 0.5 .union(
smooth 0.5 .difference( smooth 0.25 .union
( sphere 2>> move(0.1,-5.5,0.5),sphere 6>> move(0,-4,-1) ),
smooth 0.25 .union ( sphere 2>> move(0.1,-6,0),sphere 8>> move(0,-5,-3) )),
smooth 0.5 .difference( smooth 0.5 .union
( sphere 5>> move(0,-4,0),sphere 7>> move(0,-2,-1)) ,
sphere 7>> move(0,-5,3) ),
)
)
,
//Head
smooth 0.5 .difference
(
smooth 0.5 .union( sphere 9, sphere 6>> move(1,-2,2) ) ,
smooth 0.5 .union ( sphere 8>> move(1,-6,3), sphere 8>> move(-1,-6,3))
)
)
,
//ears
smooth 0.2 .difference
(
sphere 6>> move(6,-1,2),
sphere 7>> move(6.5,-2,2.3)
)
,
//eyes
union
(
sphere 3>>move(1.5,-2,2) >>colour [1,1,1] ,
sphere 1>>move(1.5,-3,2.5) >>colour [0,0,0]
)
)
)
License:
Creative Commons - Attribution