2590_it-IT
Visualizza il testo su (x, y) nella scena 3D?Ciao gente,
Sto cercando di aggiungere una legenda personalizzata a una casella di grafico utilizzando i metodi 3D.
Ho delle scatole colorate che funzionano bene. Adesso io
è necessario aggiungere del testo all'inizio di ciascuna casella colorata e non posso per il
la vita di me capisce come. Sono abbastanza sicuro di aver bisogno di usare il
Comando TRANSLATE ma non funziona come penso che dovrebbe.
Sto creando un oggetto ORTHO2D e voglio inserire del testo
particolari valori X, Y.
Ecco alcuni esempi di codice:
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> nlegend
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 10
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> legend_color
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
{
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 127
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 240
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 25343
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 54527
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 4652983
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 12058438
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 16765952
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 16736768
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 15728640
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 8323072
style = "font-size: 10pt; font-family:" Courier New "; colore: black;">}
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> legend_list
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
{
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 10
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 20
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 30
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 40
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 50
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 60
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 70
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 80
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 90
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 100
style = "font-size: 10pt; font-family:" Courier New "; colore: black;">}
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: rgb (0, 0, 221);"> Scene
Display
Elenco
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> ()
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> // Create
una lista di visualizzazione
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> lxmin
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> lxmax
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 150
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> ldelta
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
lxmax
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> /
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
nlegend
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> l_xsize
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
ldelta
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> *
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;">. 8
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> ly1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> ly2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 4.5
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> / *
Crea un elenco di visualizzazione denominato
legend_scene che contiene i vertici per i quadrati.
style = "font-size: 10pt; font-family:" Courier New "; color: green;">
style = "">
Tutti i vertici z sono zero
poiché questa è una scena bidimensionale.
style = ""> Mettere
il
style = "font-size: 10pt; font-family:" Courier New "; color: green;">
style = "">
conteggio corrispondente al
colore appena sopra ogni quadrato * /
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> per
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
( io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <=
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
nlegend
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> ++,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
LX1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
( io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 1
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> *
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
ldelta
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> +
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
lxmin
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
LX2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LX1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> +
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
l_xsize
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> //
Disegna un quadrato
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
colore ( legend_color [ io ])
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Inizio (
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> poligono
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Vertice ( LX1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LY1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Vertice ( LX1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LY2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Vertice ( LX2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LY2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Vertice ( LX2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LY1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Fine ()
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: black;"> legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
tradurre (
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
LY2
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> per
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
( io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <=
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
nlegend
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
io
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> ++,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
colore (
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> //
nero
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> //
tradurre non funziona abbastanza
il modo in cui mi aspettavo che ...
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
tradurre ( ldelta
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
legend_scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: rgb (0, 0, 221);"> testo
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> (
style = "font-size: 10pt; font-family:" Courier New "; colour: black;"> center
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
linea di base
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;">. 1
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> char
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> (
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> legend_list [ io ]))
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> // Put
la scena in una scatola di visualizzazione,
e creare una nuova finestra.
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: black;"> scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: rgb (0, 0, 221);"> Scene
Scatola
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> (
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 300
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 50
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colore: rgb (0, 0, 221);"> Nuovo
Finestra
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> (
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: purple;"> "Sample
Leggenda"
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
scena )
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: black;"> scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Ortho2d (
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 150
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 10
style = "font-size: 10pt; font-family:" Courier New "; color: black;">)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: black;"> scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Elenco chiamate ( legend_scene )
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: green;"> //
Aggiorna la scena per vedere il
produzione
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; colour: black;"> scene
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Aggiornare
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Grazie mille,
PeterRi: Visualizza il testo in (x, y) nella scena 3D?Per visualizzare il testo, il font viene prima sottoposto a rendering, quindi trasformato per riflettere la proiezione / prospettiva corrente. Per mantenere il font piccolo e nitido (er) - basta ridurre la trasformazione post-render. Nel tuo caso: tieni le dimensioni di Ortho2D proporzionate alle dimensioni della casella di scena, in modo che il testo appaia meno distorto.
style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 16px/20px 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span>
style="LINE-HEIGHT: 16px; FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"
class=Apple-style-span>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">nlegend
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">10
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_color
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> {
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">127
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">240
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">25343
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">54527
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">4652983
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">12058438
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">16765952
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">16736768
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">15728640
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">8323072
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">}
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_list
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> {
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">10
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">20
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">30
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">40
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">50
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">60
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">70
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">80
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">90
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">100
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">}
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">Scene
Display List
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">()
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//Create a
display list
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">lxmin
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">lxmax
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">150
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ldelta
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> lxmax
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">/
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> nlegend
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">l_xsize
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ldelta
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">*
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">.8
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ly1
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ly2
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="BACKGROUND-COLOR: #ffff66">
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
style="BACKGROUND-COLOR: #ffff66" color=#ff3300>8.5
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">/* Creates a
display list named legend_scene that holds vertices for the squares.
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">
class=Apple-converted-space> All the z vertices are zero
since this is a two dimensional scene.
class=Apple-converted-space> Put the
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">
class=Apple-converted-space> count corresponding to the color
just above each square */
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">for
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> (i
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> i
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> nlegend
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> i
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">++,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> lx1
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> (i
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">*
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ldelta
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">+
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> lxmin
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> lx2
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> lx1
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">+
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> l_xsize
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">// Draw one
square
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> color(legend_color[i])
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Begin(
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">polygon
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Vertex(lx1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ly1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Vertex(lx1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ly2
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Vertex(lx2
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ly2
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Vertex(lx2
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ly1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> End()
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> translate(
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ldelta
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">/
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1.5
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> ly2
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> color(
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//
black
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">for
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> (i
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> i
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> nlegend
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> i
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">++,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> translate(ldelta
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> legend_scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">text
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">center
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> baseline
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="BACKGROUND-COLOR: #ffff66">
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
color=#ff3300>5
style="BACKGROUND-COLOR: #ffff66">
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">char
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_list[i]))
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//Put the
scene in a display box, and create a new window.
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">Scene
Box
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">300
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">50
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> )
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">New
Window
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: purple; FONT-SIZE: 10pt">"Sample
Legend"
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> scene
class=Apple-converted-space> )
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Ortho2d(
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">150
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="BACKGROUND-COLOR: #ffff66">
style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
style="BACKGROUND-COLOR: #ffff00" color=#ff3333>
style="BACKGROUND-COLOR: #ffff66">25
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Call
List(legend_scene)
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">// Update the
scene to see the output
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space>
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> Update
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
Re: Display text at (x,y) in 3d scene?Wonderful - works great! Thanks a lot aim. I
tweaked the code a bit and here it is. Which brings up an
additional question: the text is kind of fuzzy - anyone know how to
make it appear any crisper? Thanks - Peter
style="font-size: 10pt; font-family: "Courier New"; color: black;">nlegend
style="">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">10
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_color
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">127
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">240
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">25343
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">54527
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">4652983
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">12058438
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">16765952
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">16736768
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">15728640
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: teal;">8323072
style="font-size: 10pt; font-family: "Courier New"; color: black;">}
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list
style="">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{
style="font-size: 10pt; font-family: "Courier New"; color: teal;">10
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">20
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">30
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">40
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">50
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">60
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">70
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">80
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">90
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">100
style="font-size: 10pt; font-family: "Courier New"; color: black;">}
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Display
List
style="font-size: 10pt; font-family: "Courier New"; color: black;">()
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//Create
a display list
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmin
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmax
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">150
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">ldelta
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmax
style="font-size: 10pt; font-family: "Courier New"; color: navy;">/
style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">l_xsize
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta
style="font-size: 10pt; font-family: "Courier New"; color: navy;">*
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">.8
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">ly1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">ly2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">4.5
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">/*
Creates a display list named
legend_scene that holds vertices for the squares.
style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">
All the z vertices are zero
since this is a two dimensional scene.
style=""> Put
the
style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">
count corresponding to the
color just above each square */
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for
style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
lx1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: navy;">*
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta
style="font-size: 10pt; font-family: "Courier New"; color: navy;">+
style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmin
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
lx2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
lx1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">+
style="font-size: 10pt; font-family: "Courier New"; color: black;">
l_xsize
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Draw one square
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(legend_color[i])
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Begin(
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">polygon
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
End()
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(
style="font-size: 10pt; font-family: "Courier New"; color: navy;">-
style="font-size: 10pt; font-family: "Courier New"; color: black;">ldelta
style="font-size: 10pt; font-family: "Courier New"; color: navy;">/
style="font-size: 10pt; font-family: "Courier New"; color: teal;">1.5
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//
black
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for
style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">1
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(ldelta
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
legend_scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">text
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">center
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
baseline
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">3
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">char
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list[i]))
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//Put
the scene in a display box,
and create a new window.
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Box
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">300
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">50
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">New
Window
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Sample
Legend"
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
scene )
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Ortho2d(
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">150
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">0
style="font-size: 10pt; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: teal;">10
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Call List(legend_scene)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Update the scene to see the
output
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">scene
style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Update
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Re: Display text at (x,y) in 3d scene?Increase text size from 0.1 to 2 or 3.That will do the trick.
Comments
There are no comments yet