File: example015.scad

package info (click to toggle)
openscad 2011.12-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,080 kB
  • sloc: cpp: 19,710; python: 990; yacc: 558; sh: 537; ansic: 522; lex: 221; lisp: 147; xml: 36; makefile: 35
file content (28 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

module shape()
{
	difference()
	{
		translate([ -35, -35 ]) intersection()
		{
			union() {
				difference() {
					square(100, true);
					square(50, true);
				}
				translate([ 50, 50 ])
					square(15, true);
			}
			rotate(45) translate([ 0, -15 ]) square([ 100, 30 ]);
		}
	
		rotate(-45) scale([ 0.7, 1.3 ]) circle(5);
	}
	
	import(file = "example009.dxf", layer = "body",
			convexity = 6, scale=2);
}

// linear_extrude(convexity = 10, center = true)
shape();