version	U12.1.00
uid	terrain.u1-1786351378-0
record	graphics3d__Terrain__state,25
	0,__s
	1,__m
	2,texture_file
	3,base
	4,rows
	5,cols
	6,length
	7,width
	8,height
	9,label
	10,loc
	11,orientation_angles
	12,scalexyz
	13,color
	14,radius
	15,reference
	16,bb_max
	17,bb_min
	18,visible_section
	19,Txyz
	20,Rx
	21,Ry
	22,Rz
	23,Sxyz
	24,render_func
record	graphics3d__Terrain__methods,25
	0,generate
	1,render_details
	2,load
	3,parse_terrain
	4,initially
	5,render
	6,set_render_func
	7,refreshLoc
	8,refreshScale
	9,refreshRot
	10,set_location
	11,set_locationxyz
	12,move
	13,set_orientation
	14,set_orientationxyz
	15,set_reference
	16,set_referencexyz
	17,rotate
	18,show
	19,hide
	20,is_hidden
	21,calc_bounding_box
	22,is_colliding
	23,set_size_to
	24,graphics3d__BasicObject3D
impl	local
link	/usr/obj/ports/unicon-13.3beta1/unicon-0b8f99c2affe981f87639fc2577d2a68d05739ba/uni/3d/basicobject3d.u
global	11
	0,000005,graphics3d__Terrain_generate,1
	1,000005,graphics3d__Terrain_render_details,1
	2,000005,graphics3d__Terrain_load,2
	3,000005,graphics3d__Terrain_parse_terrain,2
	4,000005,graphics3d__Terrain_initially,3
	5,000011,graphics3d__Terrain__state,25
	6,000011,graphics3d__Terrain__methods,25
	7,000001,graphics3d__Terrain__oprec,0
	8,000001,graphics3d__BasicObject3D__oprec,0
	9,000005,graphics3d__Terrain,2
	10,000005,graphics3d__Terraininitialize,0

proc graphics3d__Terrain_generate
	local	0,001000,self
	local	1,000020,i
	local	2,000020,j
	local	3,000000,list
	local	4,000000,graphics3d__Vector3
	local	5,000000,real
	con	0,002000,1,1
	con	1,002000,4,1000
	con	2,004000,1000.0
	declend
	filen	terrain.icn
	line	19
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	0
	line	21
	colm	11
	synt	any
	field	base
	var	3
	pnull
	var	0
	line	21
	colm	27
	synt	any
	field	rows
	line	21
	colm	22
	synt	any
	invoke	1
	line	21
	colm	16
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	line	22
	colm	7
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	0
	pnull
	var	0
	line	22
	colm	25
	synt	any
	field	rows
	push1
	line	22
	colm	18
	synt	any
	toby
	line	22
	colm	14
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	pnull
	var	0
	line	23
	colm	14
	synt	any
	field	base
	var	1
	line	23
	colm	19
	synt	any
	subsc
	var	3
	pnull
	var	0
	line	23
	colm	33
	synt	any
	field	cols
	line	23
	colm	28
	synt	any
	invoke	1
	line	23
	colm	22
	synt	any
	asgn
	unmark
lab L3
	efail
lab L4
	line	22
	colm	7
	synt	endevery
	unmark
lab L2
	mark	L5
	line	25
	colm	7
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	0
	pnull
	var	0
	line	25
	colm	26
	synt	any
	field	rows
	push1
	line	25
	colm	19
	synt	any
	toby
	line	25
	colm	14
	synt	any
	asgn
	pop
	mark0
	line	26
	colm	10
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	0
	pnull
	var	0
	line	26
	colm	28
	synt	any
	field	cols
	push1
	line	26
	colm	21
	synt	any
	toby
	line	26
	colm	17
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	pnull
	pnull
	var	0
	line	27
	colm	17
	synt	any
	field	base
	var	1
	line	27
	colm	22
	synt	any
	subsc
	var	2
	line	27
	colm	25
	synt	any
	subsc
	var	4
	pnull
	pnull
	var	5
	var	1
	line	27
	colm	54
	synt	any
	invoke	1
	pnull
	var	0
	line	27
	colm	62
	synt	any
	field	rows
	line	27
	colm	57
	synt	any
	div
	pnull
	var	0
	line	27
	colm	72
	synt	any
	field	length
	line	27
	colm	67
	synt	any
	mult
	pnull
	pnull
	pnull
	int	1
	line	28
	colm	35
	synt	any
	random
	real	2
	line	28
	colm	41
	synt	any
	div
	pnull
	var	0
	line	28
	colm	55
	synt	any
	field	height
	line	28
	colm	49
	synt	any
	mult
	pnull
	pnull
	var	5
	var	2
	line	29
	colm	38
	synt	any
	invoke	1
	pnull
	var	0
	line	29
	colm	46
	synt	any
	field	cols
	line	29
	colm	41
	synt	any
	div
	pnull
	var	0
	line	29
	colm	56
	synt	any
	field	length
	line	29
	colm	51
	synt	any
	mult
	line	27
	colm	49
	synt	any
	invoke	3
	line	27
	colm	28
	synt	any
	asgn
	unmark
lab L8
	efail
lab L9
	line	26
	colm	10
	synt	endevery
	unmark
lab L6
	efail
lab L7
	line	25
	colm	7
	synt	endevery
	unmark
lab L5
	pnull
	line	31
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terrain_render_details
	local	0,001000,self
	local	1,000020,i
	local	2,000020,j
	local	3,000020,meshmod
	local	4,000020,L
	local	5,000020,Ltex
	local	6,000000,WAttrib
	local	7,000000,Fg
	local	8,000000,Texture
	local	9,000000,list
	local	10,000000,put
	local	11,000000,real
	local	12,000000,Texcoord
	local	13,000000,FillPolygon
	local	14,000000,string
	con	0,010000,8,155,145,163,150,155,157,144,145
	con	1,010000,18,155,145,163,150,155,157,144,145,075,164,162,151,141,156,147,154,145,163
	con	2,010000,5,147,162,145,145,156
	con	3,010000,10,164,145,170,155,157,144,145,075,157,156
	con	4,002000,1,1
	con	5,010000,9,155,145,163,150,155,157,144,145,075
	con	6,010000,11,164,145,170,155,157,144,145,075,157,146,146
	declend
	line	34
	colm	11
	synt	any
	mark	L1
	pnull
	var	3
	var	6
	str	0
	line	36
	colm	26
	synt	any
	invoke	1
	line	36
	colm	15
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	var	6
	str	1
	line	37
	colm	14
	synt	any
	invoke	1
	unmark
lab L2
	mark	L3
	var	7
	str	2
	line	38
	colm	9
	synt	any
	invoke	1
	unmark
lab L3
	mark	L4
	line	41
	colm	7
	synt	if
	mark0
	pnull
	pnull
	var	0
	line	41
	colm	15
	synt	any
	field	texture_file
	line	41
	colm	10
	synt	any
	nonnull
	unmark
	mark	L5
	var	6
	str	3
	line	42
	colm	17
	synt	any
	invoke	1
	unmark
lab L5
	var	8
	pnull
	var	0
	line	43
	colm	22
	synt	any
	field	texture_file
	line	43
	colm	17
	synt	any
	invoke	1
	line	41
	colm	7
	synt	endif
	unmark
lab L4
	mark	L6
	var	7
	str	2
	line	47
	colm	9
	synt	any
	invoke	1
	unmark
lab L6
	mark	L7
	line	48
	colm	7
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	4
	pnull
	pnull
	var	0
	line	48
	colm	26
	synt	any
	field	rows
	int	4
	line	48
	colm	31
	synt	any
	minus
	int	4
	line	48
	colm	19
	synt	any
	toby
	line	48
	colm	14
	synt	any
	asgn
	pop
	mark0
	mark	L10
	pnull
	var	4
	var	9
	line	49
	colm	19
	synt	any
	invoke	0
	line	49
	colm	12
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	var	5
	var	9
	line	50
	colm	22
	synt	any
	invoke	0
	line	50
	colm	15
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	line	51
	colm	10
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	4
	pnull
	pnull
	var	0
	line	51
	colm	28
	synt	any
	field	cols
	int	4
	line	51
	colm	33
	synt	any
	minus
	int	4
	line	51
	colm	21
	synt	any
	toby
	line	51
	colm	17
	synt	any
	asgn
	pop
	mark0
	mark	L15
	var	10
	var	4
	pnull
	pnull
	pnull
	pnull
	var	0
	line	52
	colm	23
	synt	any
	field	base
	var	1
	line	52
	colm	28
	synt	any
	subsc
	var	2
	line	52
	colm	31
	synt	any
	subsc
	line	52
	colm	34
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	52
	colm	41
	synt	any
	field	base
	var	1
	line	52
	colm	46
	synt	any
	subsc
	var	2
	line	52
	colm	49
	synt	any
	subsc
	line	52
	colm	52
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	52
	colm	59
	synt	any
	field	base
	var	1
	line	52
	colm	64
	synt	any
	subsc
	var	2
	line	52
	colm	67
	synt	any
	subsc
	line	52
	colm	70
	synt	any
	field	z
	pnull
	pnull
	pnull
	pnull
	var	0
	line	53
	colm	29
	synt	any
	field	base
	var	1
	line	53
	colm	34
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	53
	colm	39
	synt	any
	plus
	line	53
	colm	37
	synt	any
	subsc
	line	53
	colm	42
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	53
	colm	49
	synt	any
	field	base
	var	1
	line	53
	colm	54
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	53
	colm	59
	synt	any
	plus
	line	53
	colm	57
	synt	any
	subsc
	line	53
	colm	62
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	53
	colm	69
	synt	any
	field	base
	var	1
	line	53
	colm	74
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	53
	colm	79
	synt	any
	plus
	line	53
	colm	77
	synt	any
	subsc
	line	53
	colm	82
	synt	any
	field	z
	pnull
	pnull
	pnull
	pnull
	var	0
	line	54
	colm	29
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	54
	colm	36
	synt	any
	plus
	line	54
	colm	34
	synt	any
	subsc
	var	2
	line	54
	colm	39
	synt	any
	subsc
	line	54
	colm	42
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	54
	colm	49
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	54
	colm	56
	synt	any
	plus
	line	54
	colm	54
	synt	any
	subsc
	var	2
	line	54
	colm	59
	synt	any
	subsc
	line	54
	colm	62
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	54
	colm	69
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	54
	colm	76
	synt	any
	plus
	line	54
	colm	74
	synt	any
	subsc
	var	2
	line	54
	colm	79
	synt	any
	subsc
	line	54
	colm	82
	synt	any
	field	z
	pnull
	pnull
	pnull
	pnull
	var	0
	line	56
	colm	29
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	56
	colm	36
	synt	any
	plus
	line	56
	colm	34
	synt	any
	subsc
	var	2
	line	56
	colm	39
	synt	any
	subsc
	line	56
	colm	42
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	56
	colm	49
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	56
	colm	56
	synt	any
	plus
	line	56
	colm	54
	synt	any
	subsc
	var	2
	line	56
	colm	59
	synt	any
	subsc
	line	56
	colm	62
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	56
	colm	69
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	56
	colm	76
	synt	any
	plus
	line	56
	colm	74
	synt	any
	subsc
	var	2
	line	56
	colm	79
	synt	any
	subsc
	line	56
	colm	82
	synt	any
	field	z
	pnull
	pnull
	pnull
	pnull
	var	0
	line	57
	colm	29
	synt	any
	field	base
	var	1
	line	57
	colm	34
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	57
	colm	39
	synt	any
	plus
	line	57
	colm	37
	synt	any
	subsc
	line	57
	colm	42
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	57
	colm	49
	synt	any
	field	base
	var	1
	line	57
	colm	54
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	57
	colm	59
	synt	any
	plus
	line	57
	colm	57
	synt	any
	subsc
	line	57
	colm	62
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	57
	colm	69
	synt	any
	field	base
	var	1
	line	57
	colm	74
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	57
	colm	79
	synt	any
	plus
	line	57
	colm	77
	synt	any
	subsc
	line	57
	colm	82
	synt	any
	field	z
	pnull
	pnull
	pnull
	pnull
	var	0
	line	58
	colm	29
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	58
	colm	36
	synt	any
	plus
	line	58
	colm	34
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	58
	colm	41
	synt	any
	plus
	line	58
	colm	39
	synt	any
	subsc
	line	58
	colm	44
	synt	any
	field	x
	pnull
	pnull
	pnull
	pnull
	var	0
	line	58
	colm	51
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	58
	colm	58
	synt	any
	plus
	line	58
	colm	56
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	58
	colm	63
	synt	any
	plus
	line	58
	colm	61
	synt	any
	subsc
	line	58
	colm	66
	synt	any
	field	y
	pnull
	pnull
	pnull
	pnull
	var	0
	line	58
	colm	73
	synt	any
	field	base
	pnull
	var	1
	int	4
	line	58
	colm	80
	synt	any
	plus
	line	58
	colm	78
	synt	any
	subsc
	pnull
	var	2
	int	4
	line	58
	colm	85
	synt	any
	plus
	line	58
	colm	83
	synt	any
	subsc
	line	58
	colm	88
	synt	any
	field	z
	line	52
	colm	16
	synt	any
	invoke	19
	unmark
lab L15
	var	10
	var	5
	pnull
	pnull
	var	11
	var	1
	line	60
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	60
	colm	35
	synt	any
	field	rows
	line	60
	colm	30
	synt	any
	div
	pnull
	var	0
	line	60
	colm	45
	synt	any
	field	length
	line	60
	colm	40
	synt	any
	mult
	pnull
	pnull
	var	11
	var	2
	line	60
	colm	57
	synt	any
	invoke	1
	pnull
	var	0
	line	60
	colm	65
	synt	any
	field	cols
	line	60
	colm	60
	synt	any
	div
	pnull
	var	0
	line	60
	colm	75
	synt	any
	field	length
	line	60
	colm	70
	synt	any
	mult
	pnull
	pnull
	var	11
	var	1
	line	61
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	61
	colm	35
	synt	any
	field	rows
	line	61
	colm	30
	synt	any
	div
	pnull
	var	0
	line	61
	colm	45
	synt	any
	field	length
	line	61
	colm	40
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	2
	int	4
	line	61
	colm	59
	synt	any
	plus
	line	61
	colm	57
	synt	any
	invoke	1
	pnull
	var	0
	line	61
	colm	67
	synt	any
	field	cols
	line	61
	colm	62
	synt	any
	div
	pnull
	var	0
	line	61
	colm	77
	synt	any
	field	length
	line	61
	colm	72
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	1
	int	4
	line	62
	colm	29
	synt	any
	plus
	line	62
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	62
	colm	37
	synt	any
	field	rows
	line	62
	colm	32
	synt	any
	div
	pnull
	var	0
	line	62
	colm	47
	synt	any
	field	length
	line	62
	colm	42
	synt	any
	mult
	pnull
	pnull
	var	11
	var	2
	line	62
	colm	59
	synt	any
	invoke	1
	pnull
	var	0
	line	62
	colm	67
	synt	any
	field	cols
	line	62
	colm	62
	synt	any
	div
	pnull
	var	0
	line	62
	colm	77
	synt	any
	field	length
	line	62
	colm	72
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	1
	int	4
	line	63
	colm	29
	synt	any
	plus
	line	63
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	63
	colm	37
	synt	any
	field	rows
	line	63
	colm	32
	synt	any
	div
	pnull
	var	0
	line	63
	colm	47
	synt	any
	field	length
	line	63
	colm	42
	synt	any
	mult
	pnull
	pnull
	var	11
	var	2
	line	63
	colm	59
	synt	any
	invoke	1
	pnull
	var	0
	line	63
	colm	67
	synt	any
	field	cols
	line	63
	colm	62
	synt	any
	div
	pnull
	var	0
	line	63
	colm	77
	synt	any
	field	length
	line	63
	colm	72
	synt	any
	mult
	pnull
	pnull
	var	11
	var	1
	line	64
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	64
	colm	35
	synt	any
	field	rows
	line	64
	colm	30
	synt	any
	div
	pnull
	var	0
	line	64
	colm	45
	synt	any
	field	length
	line	64
	colm	40
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	2
	int	4
	line	64
	colm	59
	synt	any
	plus
	line	64
	colm	57
	synt	any
	invoke	1
	pnull
	var	0
	line	64
	colm	67
	synt	any
	field	cols
	line	64
	colm	62
	synt	any
	div
	pnull
	var	0
	line	64
	colm	77
	synt	any
	field	length
	line	64
	colm	72
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	1
	int	4
	line	65
	colm	29
	synt	any
	plus
	line	65
	colm	27
	synt	any
	invoke	1
	pnull
	var	0
	line	65
	colm	37
	synt	any
	field	rows
	line	65
	colm	32
	synt	any
	div
	pnull
	var	0
	line	65
	colm	47
	synt	any
	field	length
	line	65
	colm	42
	synt	any
	mult
	pnull
	pnull
	var	11
	pnull
	var	2
	int	4
	line	65
	colm	61
	synt	any
	plus
	line	65
	colm	59
	synt	any
	invoke	1
	pnull
	var	0
	line	65
	colm	69
	synt	any
	field	cols
	line	65
	colm	64
	synt	any
	div
	pnull
	var	0
	line	65
	colm	79
	synt	any
	field	length
	line	65
	colm	74
	synt	any
	mult
	line	60
	colm	16
	synt	any
	invoke	13
	unmark
lab L13
	efail
lab L14
	line	51
	colm	10
	synt	endevery
	unmark
lab L12
	mark	L16
	var	12
	var	5
	line	68
	colm	18
	synt	any
	invoke	1
	unmark
lab L16
	var	13
	var	4
	invoke	-1
	unmark
lab L8
	efail
lab L9
	line	48
	colm	7
	synt	endevery
	unmark
lab L7
	mark	L17
	var	6
	pnull
	str	5
	var	14
	var	3
	line	72
	colm	34
	synt	any
	invoke	1
	line	72
	colm	26
	synt	any
	cat
	line	72
	colm	14
	synt	any
	invoke	1
	unmark
lab L17
	mark	L18
	var	6
	str	6
	line	73
	colm	14
	synt	any
	invoke	1
	unmark
lab L18
	pnull
	line	74
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terrain_load
	local	0,001000,self
	local	1,001000,fname
	local	2,000020,fin
	local	3,000020,s
	local	4,000020,p
	local	5,000000,open
	local	6,000000,stat
	local	7,000000,reads
	local	8,000000,close
	con	0,002000,1,0
	con	1,010000,19,154,157,141,144,151,156,147,040,164,145,162,162,141,151,156,056,056,056,056
	con	2,010000,11,143,141,156,047,164,040,157,160,145,156,040
	con	3,010000,7,116,157,040,163,164,141,164
	con	4,010000,25,145,155,160,164,171,040,164,145,162,162,141,151,156,040,144,141,164,141,040,146,151,154,145,077,041
	con	5,010000,24,104,117,116,105,040,154,157,141,144,151,156,147,040,164,145,162,162,141,151,156,056,056,056,056
	declend
	line	77
	colm	11
	synt	any
	mark	L1
	int	0
	str	1
	line	80
	colm	8
	synt	any
	invoke	1
	unmark
lab L1
	mark	L2
	pnull
	var	2
	mark	L3
	var	5
	var	1
	line	82
	colm	18
	synt	any
	invoke	1
	line	82
	colm	26
	synt	any
	esusp
	goto	L4
lab L3
	int	0
	str	2
	var	1
	line	82
	colm	31
	synt	any
	invoke	2
	pop
	line	82
	colm	56
	synt	any
	pfail
lab L4
	line	82
	colm	11
	synt	any
	asgn
	unmark
lab L2
	mark	L5
	line	84
	colm	7
	synt	if
	mark0
	pnull
	pnull
	var	4
	var	6
	var	2
	line	84
	colm	21
	synt	any
	invoke	1
	line	84
	colm	14
	synt	any
	asgn
	line	84
	colm	10
	synt	any
	null
	unmark
	int	0
	str	3
	line	84
	colm	34
	synt	any
	invoke	1
	pop
	line	84
	colm	48
	synt	any
	pfail
	line	84
	colm	7
	synt	endif
	unmark
lab L5
	mark	L6
	pnull
	var	3
	mark	L7
	var	7
	var	2
	pnull
	var	4
	line	86
	colm	24
	synt	any
	field	size
	line	86
	colm	17
	synt	any
	invoke	2
	line	86
	colm	31
	synt	any
	esusp
	goto	L8
lab L7
	int	0
	str	4
	line	86
	colm	36
	synt	any
	invoke	1
	pop
	line	86
	colm	68
	synt	any
	pfail
lab L8
	line	86
	colm	9
	synt	any
	asgn
	unmark
lab L6
	mark	L9
	var	8
	var	2
	line	88
	colm	12
	synt	any
	invoke	1
	unmark
lab L9
	mark	L10
	pnull
	var	0
	line	90
	colm	11
	synt	any
	field	parse_terrain
	var	3
	line	90
	colm	25
	synt	any
	invoke	1
	unmark
lab L10
	mark	L11
	int	0
	str	5
	line	91
	colm	8
	synt	any
	invoke	1
	unmark
lab L11
	mark	L12
	mark	L13
	pnull
	line	93
	colm	7
	synt	any
	pret
lab L13
	synt	any
	pfail
	unmark
lab L12
	pnull
	line	94
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terrain_parse_terrain
	local	0,001000,self
	local	1,001000,s
	local	2,000020,base2
	local	3,000020,i
	local	4,000020,j
	local	5,000020,offset
	local	6,000040,strmove
	local	7,000000,proc
	local	8,000000,list
	local	9,000000,graphics3d__Vector3
	local	10,000000,real
	local	11,000000,ord
	con	0,010000,4,155,157,166,145
	con	1,002000,1,1
	con	2,002000,3,256
	con	3,002000,3,128
	declend
	line	96
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	6
	var	7
	str	0
	int	1
	line	100
	colm	25
	synt	any
	invoke	2
	line	100
	colm	18
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	pnull
	pnull
	var	0
	line	103
	colm	11
	synt	any
	field	cols
	int	2
	line	103
	colm	16
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	0
	line	104
	colm	11
	synt	any
	field	rows
	int	3
	line	104
	colm	16
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	0
	line	105
	colm	11
	synt	any
	field	base
	var	8
	pnull
	var	0
	line	105
	colm	27
	synt	any
	field	rows
	line	105
	colm	22
	synt	any
	invoke	1
	line	105
	colm	16
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	line	106
	colm	7
	synt	every
	mark0
	pnull
	var	3
	pnull
	int	1
	pnull
	var	0
	line	106
	colm	25
	synt	any
	field	rows
	push1
	line	106
	colm	18
	synt	any
	toby
	line	106
	colm	14
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	pnull
	var	0
	line	107
	colm	14
	synt	any
	field	base
	var	3
	line	107
	colm	19
	synt	any
	subsc
	var	8
	pnull
	var	0
	line	107
	colm	33
	synt	any
	field	cols
	line	107
	colm	28
	synt	any
	invoke	1
	line	107
	colm	22
	synt	any
	asgn
	unmark
lab L8
	efail
lab L9
	line	106
	colm	7
	synt	endevery
	unmark
lab L7
	mark	L10
	line	110
	colm	7
	synt	every
	mark0
	pnull
	var	3
	pnull
	int	1
	pnull
	var	0
	line	110
	colm	26
	synt	any
	field	rows
	push1
	line	110
	colm	19
	synt	any
	toby
	line	110
	colm	14
	synt	any
	asgn
	pop
	mark0
	mark	L13
	pnull
	var	5
	pnull
	pnull
	var	3
	int	1
	line	111
	colm	22
	synt	any
	minus
	int	2
	line	111
	colm	25
	synt	any
	mult
	line	111
	colm	17
	synt	any
	asgn
	unmark
lab L13
	line	112
	colm	10
	synt	every
	mark0
	pnull
	var	4
	pnull
	int	1
	pnull
	var	0
	line	112
	colm	28
	synt	any
	field	cols
	push1
	line	112
	colm	21
	synt	any
	toby
	line	112
	colm	17
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	pnull
	pnull
	var	0
	line	113
	colm	17
	synt	any
	field	base
	var	3
	line	113
	colm	22
	synt	any
	subsc
	var	4
	line	113
	colm	25
	synt	any
	subsc
	var	9
	pnull
	pnull
	var	10
	var	3
	line	113
	colm	54
	synt	any
	invoke	1
	pnull
	var	0
	line	113
	colm	62
	synt	any
	field	rows
	line	113
	colm	57
	synt	any
	div
	pnull
	var	0
	line	113
	colm	72
	synt	any
	field	length
	line	113
	colm	67
	synt	any
	mult
	pnull
	var	10
	var	11
	pnull
	var	1
	pnull
	var	5
	var	4
	line	114
	colm	51
	synt	any
	plus
	line	114
	colm	44
	synt	any
	subsc
	line	114
	colm	42
	synt	any
	invoke	1
	line	114
	colm	38
	synt	any
	invoke	1
	pnull
	var	0
	line	114
	colm	63
	synt	any
	field	height
	line	114
	colm	57
	synt	any
	mult
	pnull
	pnull
	var	10
	var	4
	line	115
	colm	38
	synt	any
	invoke	1
	pnull
	var	0
	line	115
	colm	46
	synt	any
	field	cols
	line	115
	colm	41
	synt	any
	div
	pnull
	var	0
	line	115
	colm	56
	synt	any
	field	length
	line	115
	colm	51
	synt	any
	mult
	line	113
	colm	49
	synt	any
	invoke	3
	line	113
	colm	28
	synt	any
	asgn
	unmark
lab L14
	efail
lab L15
	line	112
	colm	10
	synt	endevery
	unmark
lab L11
	efail
lab L12
	line	110
	colm	7
	synt	endevery
	unmark
lab L10
	pnull
	line	118
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terrain_initially
	local	0,001000,self
	local	1,001000,myname
	local	2,001000,tex
	con	0,002000,2,40
	con	1,004000,300.0
	con	2,004000,0.25
	declend
	line	121
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	0
	line	122
	colm	11
	synt	any
	field	graphics3d__BasicObject3D
	line	122
	colm	37
	synt	any
	field	initially
	var	1
	line	122
	colm	47
	synt	any
	invoke	1
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	0
	line	123
	colm	11
	synt	any
	field	texture_file
	var	2
	line	123
	colm	24
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	0
	line	124
	colm	11
	synt	any
	field	base
	line	124
	colm	18
	synt	any
	keywd	null
	line	124
	colm	16
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	0
	line	125
	colm	11
	synt	any
	field	rows
	pnull
	pnull
	var	0
	line	125
	colm	22
	synt	any
	field	cols
	int	0
	line	125
	colm	27
	synt	any
	asgn
	line	125
	colm	16
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	0
	line	126
	colm	11
	synt	any
	field	length
	real	1
	line	126
	colm	18
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	0
	line	127
	colm	11
	synt	any
	field	width
	real	1
	line	127
	colm	17
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	pnull
	var	0
	line	128
	colm	11
	synt	any
	field	height
	real	2
	line	128
	colm	18
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	mark	L9
	pnull
	line	129
	colm	7
	synt	any
	pret
lab L9
	synt	any
	pfail
	unmark
lab L8
	pnull
	line	130
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terrain
	local	0,001000,myname
	local	1,001000,tex
	local	2,000020,self
	local	3,000020,clone
	local	4,000000,graphics3d__Terrain__oprec
	local	5,000000,graphics3d__Terraininitialize
	local	6,000000,graphics3d__BasicObject3D__oprec
	local	7,000000,graphics3d__BasicObject3Dinitialize
	local	8,000000,graphics3d__Terrain__state
	declend
	filen	__faux.icn
	line	5
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	line	8
	colm	3
	synt	if
	mark0
	pnull
	var	4
	line	8
	colm	6
	synt	any
	null
	unmark
	var	5
	line	8
	colm	68
	synt	any
	invoke	0
	line	8
	colm	3
	synt	endif
	unmark
lab L4
	mark	L5
	line	9
	colm	3
	synt	if
	mark0
	pnull
	var	6
	line	9
	colm	6
	synt	any
	null
	unmark
	var	7
	line	9
	colm	80
	synt	any
	invoke	0
	line	9
	colm	3
	synt	endif
	unmark
lab L5
	pnull
	pnull
	var	4
	line	10
	colm	29
	synt	any
	field	graphics3d__BasicObject3D
	var	6
	line	10
	colm	56
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L6
	pnull
	var	2
	var	8
	line	12
	colm	38
	synt	any
	keywd	null
	var	4
	line	12
	colm	37
	synt	any
	invoke	2
	line	12
	colm	8
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	pnull
	var	2
	line	13
	colm	7
	synt	any
	field	__s
	var	2
	line	13
	colm	12
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	mark	L9
	pnull
	pnull
	var	2
	line	14
	colm	7
	synt	any
	field	__m
	line	14
	colm	11
	synt	any
	field	initially
	var	2
	var	0
	var	1
	line	14
	colm	21
	synt	any
	invoke	3
	line	14
	colm	39
	synt	any
	esusp
	goto	L10
lab L9
	line	14
	colm	41
	synt	any
	pfail
lab L10
	unmark
lab L8
	mark	L11
	mark	L12
	var	2
	line	15
	colm	3
	synt	any
	pret
lab L12
	synt	any
	pfail
	unmark
lab L11
	pnull
	line	16
	colm	1
	synt	any
	pfail
	end
proc graphics3d__Terraininitialize
	local	0,000000,graphics3d__Terrain__oprec
	local	1,000000,graphics3d__Terrain__methods
	local	2,000000,graphics3d__Terrain_generate
	local	3,000000,graphics3d__Terrain_render_details
	local	4,000000,graphics3d__Terrain_load
	local	5,000000,graphics3d__Terrain_parse_terrain
	local	6,000000,graphics3d__Terrain_initially
	local	7,000000,graphics3d__BasicObject3D_render
	local	8,000000,graphics3d__BasicObject3D_set_render_func
	local	9,000000,graphics3d__BasicObject3D_refreshLoc
	local	10,000000,graphics3d__BasicObject3D_refreshScale
	local	11,000000,graphics3d__BasicObject3D_refreshRot
	local	12,000000,graphics3d__BasicObject3D_set_location
	local	13,000000,graphics3d__BasicObject3D_set_locationxyz
	local	14,000000,graphics3d__BasicObject3D_move
	local	15,000000,graphics3d__BasicObject3D_set_orientation
	local	16,000000,graphics3d__BasicObject3D_set_orientationxyz
	local	17,000000,graphics3d__BasicObject3D_set_reference
	local	18,000000,graphics3d__BasicObject3D_set_referencexyz
	local	19,000000,graphics3d__BasicObject3D_rotate
	local	20,000000,graphics3d__BasicObject3D_show
	local	21,000000,graphics3d__BasicObject3D_hide
	local	22,000000,graphics3d__BasicObject3D_is_hidden
	local	23,000000,graphics3d__BasicObject3D_calc_bounding_box
	local	24,000000,graphics3d__BasicObject3D_is_colliding
	local	25,000000,graphics3d__BasicObject3D_set_size_to
	declend
	line	18
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	0
	var	1
	var	2
	var	3
	var	4
	var	5
	var	6
	var	7
	var	8
	var	9
	var	10
	var	11
	var	12
	var	13
	var	14
	var	15
	var	16
	var	17
	var	18
	var	19
	var	20
	var	21
	var	22
	var	23
	var	24
	var	25
	line	19
	colm	69
	synt	any
	invoke	24
	line	19
	colm	38
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	line	20
	colm	1
	synt	any
	pfail
	end
