haitian325 发表于 2013-8-7 20:38:02

fish命令请教高手

def slopeRezone
_rezcnt = _rezcnt + 1
oo = rez_exe('gen 0 0 0 20 30 20 30 0')
oo = rez_exe('mod mohr')
_toltab4
oo = rez_exe('gen table 4')
oo = rez_exe('mod null region 1,20')
end

def _toltab4
_ts = table_size(4)
xtable(4,1) = xtable(4,1) - 5.                         ??????
xtable(4,_ts) = xtable(4,_ts) + 5.                   ??????????????
end

def _autorez
command
rez set sep meth=slopeRezone
rez set surf from 1,11 to 31,21 tab 4
rezone
cycle continue
endCommand
end

set geom 0.25
set rez_func _autorez
plot grid
movie on file slope.dcx
movie step on 50
step 4000
请问????处的-5和+5是什么意思?谢谢了

trackbed 发表于 2013-8-8 03:18:09

get the number from the table, and add/subtract 5, then put it back to the table

haitian325 发表于 2013-8-8 14:24:22

谢谢你,这个意思我是知道的,我想问的是在整个程序里面这个为什么要+ —5。它的含义是?
页: [1]
查看完整版本: fish命令请教高手