2590_ko-KR
3D 장면에서 (x, y)에 텍스트를 표시 하시겠습니까?안녕하세요 여러분,
3D 방법을 사용하여 그래프 상자에 사용자 정의 범례를 추가하려고합니다.
나는 색깔 상자가 잘 작동하도록했습니다. 지금
각 색상 상자의 상단에 텍스트를 추가해야하며
내 삶은 어떻게 생겼는지. 나는 내가 필요로하는 것을 확신한다.
TRANSLATE 명령을 사용해야하지만 그렇게 생각하지는 않습니다.
ORTHO2D 객체를 만들고 텍스트를 넣고 싶습니다.
특정 X, Y 값.
다음은 몇 가지 샘플 코드입니다.
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> nlegend
style = "">
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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 "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; 색상 : rgb (0, 0, 221);"> 장면
디스플레이
명부
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
표시 목록
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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 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;">
고귀한
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 "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
엘다
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"*
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : teal;">.
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 "; 색상 : 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 "; 색상 : 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 "; 색상 : 녹색;"> / *
이름이 지정된 표시 목록을 만듭니다.
legend_scene 사각형의 정점을 유지합니다.
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 녹색;">
style = "">
모든 z 꼭지점은 0입니다.
이것은 2 차원 장면이기 때문에.
style = ""> 놓다
그만큼
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 녹색;">
style = "">
카운트에 해당하는
각 사각형 바로 위의 색상 * /
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : rgb (0, 0, 221);
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
( 나는
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 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 "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
나는
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> <=
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
고귀한
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 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 : 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: 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);">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;">
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: green;">//
translate doesn't work quite
the way I expected it to...
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;">.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[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;">
Thanks a ton,
PeterRe: Display text at (x,y) in 3d scene?To display text, font is first rendered, then transformed to reflect current projection/perspective. To keep small font sharp(er) -- just reduce post-rendered transform. In your case: just keep Ortho2D size commensurate with Scene Box size, so the text would appear less distorted.
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