-
Notifications
You must be signed in to change notification settings - Fork 1
/
CListHW2-Sec1.txt
70 lines (65 loc) · 1.47 KB
/
CListHW2-Sec1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
!***********************
! PROBLEM 2: SECTION 1 *
!***********************
/CLEAR, START, NEW
/CWD,'E:\Homework\HW2\Part1'
/EFACET,4
/GFILE,2400
/PLOPTS,DATE,0
/TITLE, HOMERWORK 2 SECT_1
! >>> PARAMETRI SECTION 1 <<<
*SET, MAX_WIDTH, 30
*SET, MIN_WIDTH, 20
*SET, HEIGHT, 40
*SET, NDIV, 16
! >>>> PRE PROCESS<<<<<
/PREP7
ET,1,PLANE82
K,1,0,0,0
K,2,MIN_WIDTH,0,0
K,3,MIN_WIDTH+(MAX_WIDTH-MIN_WIDTH)/2,HEIGHT,0
K,4,-(MAX_WIDTH-MIN_WIDTH)/2,HEIGHT,0
/RGB,INDEX,100,100,100, 0
/RGB,INDEX, 80, 80, 80,13
/RGB,INDEX, 60, 60, 60,14
/RGB,INDEX, 0, 0, 0,15
/REPLOT
/IMAGE, SAVE, KEYPOINT-SEC1, bmp
/RGB,INDEX, 0, 0, 0, 0
/RGB,INDEX, 60, 60, 60,13
/RGB,INDEX, 80, 80, 80,14
/RGB,INDEX,100,100,100,15
FLST,2,4,3
FITEM,2,1
FITEM,2,2
FITEM,2,3
FITEM,2,4
A,P51X
/RGB,INDEX,100,100,100, 0
/RGB,INDEX, 80, 80, 80,13
/RGB,INDEX, 60, 60, 60,14
/RGB,INDEX, 0, 0, 0,15
/REPLOT
/IMAGE, SAVE, AREA-SEC1, bmp
/RGB,INDEX, 0, 0, 0, 0
/RGB,INDEX, 60, 60, 60,13
/RGB,INDEX, 80, 80, 80,14
/RGB,INDEX,100,100,100,15
! >>>>>MESH AND SAVE<<<<<<
LESIZE,ALL,,,NDIV
MSHAPE,0,2D
AMESH,ALL
NUMMRG,ALL
SECWRITE,SECT_1,SECT,,PLANE82
/RGB,INDEX,100,100,100, 0
/RGB,INDEX, 80, 80, 80,13
/RGB,INDEX, 60, 60, 60,14
/RGB,INDEX, 0, 0, 0,15
/REPLOT
/IMAGE, SAVE, MESH-SEC1, bmp
/RGB,INDEX, 0, 0, 0, 0
/RGB,INDEX, 60, 60, 60,13
/RGB,INDEX, 80, 80, 80,14
/RGB,INDEX,100,100,100,15
SAVE
FINI