Vous êtes sur la page 1sur 9

!

pesce

P=21

cy=10

ma=85

ye=85

n=”Top view”

r=”non ruotare

pen p

DEFINE MATERIAL "m" 2, !MATTE

(100-cy)/100,(100-ma)/100,(100-ye)/100

MATERIAL "m"

mulx a

muly b

pen p

MATERIAL "m"

mulx a

muly b

mulz zzyzx

gosub 1

if r="non ruotare" then yy=6

if r="90" then yy=14

if r="180" then yy=2

if r="270" then yy=3

addy yy !il valore yy sposta in alto le img su PV e PL

rotx -90
if n="Monge" then gosub 1

del 2

if r="non ruotare" then xx=20

if r="90" then xx=15

if r="180" then xx=4

if r="270" then xx=9

add xx,yy,0 !il valore xx sposta a dex la img su PL

rotz 90

roty 90

if n="Monge" then gosub 1

del top

end

1: if r="non ruotare" then rotz 0

if r="90" then rotz 90

if r="180" then rotz 180

if r="270" then rotz 270

k1=0.5 !apertura bocca-------------------------------------------------------------

h=2 !altezza piramide testa

base

Vert 0,0,0 !orario, perchè altezza negativa

Vert 0,3,0

Vert 0,3,2-k1
Vert 0,0,2-k1

Vert -h/2*(2-k1),1.5-3*k1/4,2-k1 !linea colmo

Vert -h/2*(2-k1),1.5+3*k1/4,2-k1

EDGE 1, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0

EDGE 3, 4, -1, -1, 0

EDGE 4, 1, -1, -1, 0

EDGE 1, 5, -1, -1, 0

EDGE 2, 6, -1, -1, 0

EDGE 3, 6, -1, -1, 0

EDGE 4, 5, -1, -1, 0

EDGE 5, 6, -1, -1, 0

PGON 4, 0, -1, 1, 6,-9,-5

PGON 3, 0, -1, 2,7,-6

PGON 4, 0, -1, 3,8,9,-7

PGON 3, 0, -1, 4,5,-8

base

Vert 0,0,2-k1 !orario, perchè altezza negativa

Vert 0,3,2-k1

Vert 0,3,4

Vert 0,0,4

Vert -h/2*((2-k1)+0.2),1.5-3*(k1-0.2)/4,2+k1-0.2 !linea colmo


Vert -h/2*((2-k1)+0.2),1.5+3*(k1-0.2)/4,2+k1-0.2

EDGE 1, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0

EDGE 3, 4, -1, -1, 0

EDGE 4, 1, -1, -1, 0

EDGE 1, 5, -1, -1, 0

EDGE 2, 6, -1, -1, 0

EDGE 3, 6, -1, -1, 0

EDGE 4, 5, -1, -1, 0

EDGE 5, 6, -1, -1, 0

PGON 4, 0, -1, 1, 6,-9,-5

PGON 3, 0, -1, 2,7,-6

PGON 4, 0, -1, 3,8,9,-7

PGON 3, 0, -1, 4,5,-8

x1=5 !lungh. corpo---------------------------------------------------------------------

y1=0.5 !altezza piramidi fianchi

base

Vert 0,0,0 !1

Vert x1,0,0 !2

Vert x1,3,0 !3

Vert 0,3,0 !4

Vert 0,0,4 !5

Vert x1,0,4 !6

Vert x1,3,4 !7
Vert 0,3,4 !8

Vert x1/2,-y1,2 !9

Vert x1/2,3+y1,2 !10

EDGE 1, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0

EDGE 3, 4, -1, -1, 0

EDGE 4, 1, -1, -1, 0

EDGE 5, 6, -1, -1, 0 !5

EDGE 6, 7, -1, -1, 0

EDGE 7, 8, -1, -1, 0

EDGE 8, 5, -1, -1, 0

EDGE 1, 9, -1, -1, 0

EDGE 2, 9, -1, -1, 0 !10

EDGE 6, 9, -1, -1, 0

EDGE 5, 9, -1, -1, 0

EDGE 1, 5, -1, -1, 0

EDGE 6, 2, -1, -1, 0

EDGE 4, 10, -1, -1, 0 !15

EDGE 3, 10, -1, -1, 0

EDGE 7, 10, -1, -1, 0

EDGE 8, 10, -1, -1, 0

EDGE 4, 8, -1, -1, 0

EDGE 3, 7, -1, -1, 0 !20


PGON 4, 0, -1, -4,-3,-2,-1

PGON 4, 0, -1, 5,6,7,8

PGON 3, 0, -1, 9,-12,-13

PGON 3, 0, -1, 10,-9,1

PGON 3, 0, -1, 11,-10,-14

PGON 3, 0, -1, 12,-11,-5

PGON 3, 0, -1, 17,-18,-7

PGON 3, 0, -1, 16,-17,-20

PGON 3, 0, -1, 15,-16,3

PGON 3, 0, -1, 18,-15,19

f=45 !angolo coda-----------------------------------------------------

x2=4/cos(f) !lungh coda.

base

Vert x1,0,0 !1

Vert x1,3,0 !2

Vert x1,3,4 !3

Vert x1,0,4 !4

Vert x1+x2*cos(f),x2*sin(f)-0.75,1 !5

Vert x1+x2*cos(f),x2*sin(f)+0.75,1 !6

Vert x1+x2*cos(f),x2*sin(f)+0.75,3 !7

Vert x1+x2*cos(f),x2*sin(f)-0.75,3!8

EDGE 1, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0

EDGE 3, 4, -1, -1, 0

EDGE 4, 1, -1, -1, 0


EDGE 5, 6, -1, -1, 0 !5

EDGE 6, 7, -1, -1, 0

EDGE 7, 8, -1, -1, 0

EDGE 8, 5, -1, -1, 0

EDGE 1, 5, -1, -1, 0

EDGE 4, 8, -1, -1, 0 !10

EDGE 3, 7, -1, -1, 0

EDGE 2, 6, -1, -1, 0

PGON 4, 0, -1, 9,-8,-10,4

PGON 4, 0, -1,10,-7,-11,3

PGON 4, 0, -1,11,-6,-12,2

PGON 4, 0, -1,12,-5,-9,1

hp=2 !semialtezza pinna caudale-----------------------------------------------------

lp=3 !lungh pinna caudale

x2=4/cos(f) !lungh coda.

base

Vert x1+x2*cos(f),x2*sin(f)-0.75,1 !1

Vert x1+x2*cos(f),x2*sin(f)+0.75,1 !2

Vert x1+x2*cos(f),x2*sin(f)+0.75,3 !3

Vert x1+x2*cos(f),x2*sin(f)-0.75,3 !4

Vert x1+x2*cos(f)+lp/2,x2*sin(f)-0.375,2 !5

Vert x1+x2*cos(f)+lp/2,x2*sin(f)+0.375,2 !6

Vert x1+x2*cos(f)+lp,x2*sin(f),2-hp !7

Vert x1+x2*cos(f)+lp,x2*sin(f),2+hp !8
EDGE 1, 7, -1, -1, 0

EDGE 7, 5, -1, -1, 0

EDGE 5, 8, -1, -1, 0

EDGE 8, 4, -1, -1, 0

EDGE 4, 1, -1, -1, 0 !5

EDGE 3, 8, -1, -1, 0

EDGE 8, 6, -1, -1, 0

EDGE 6, 7, -1, -1, 0

EDGE 7, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0 !10

EDGE 5, 6, -1, -1, 0

EDGE 1, 2, -1, -1, 0

EDGE 3, 4, -1, -1, 0

PGON 5, 0, -1, 1,2,3,4,5

PGON 5, 0, -1, 6,7,8,9,10

PGON 3, 0, -1,-4,-6,13

PGON 3, 0, -1,-9,-1,12

PGON 3, 0, -1,11,-7,-3

PGON 3, 0, -1,-8,-11,-2

hd=2 !altezza pinna dorsale-----------------------------------------------------

base

Vert 1,0.5,4 !1

Vert x1-1,1.5,4 !2
Vert 1,2.5,4 !3

Vert x1-1,1.5,4+hd !4

EDGE 1, 2, -1, -1, 0

EDGE 2, 3, -1, -1, 0

EDGE 3, 1, -1, -1, 0

EDGE 1, 4, -1, -1, 0

EDGE 2, 4, -1, -1, 0 !5

EDGE 3, 4, -1, -1, 0

PGON 3, 0, -1,5,-4,1

PGON 3, 0, -1,4,-6,3

PGON 3, 0, -1,6,-5,2

del 1

return

Vous aimerez peut-être aussi