竹轩蓝韵 发表于 2014-11-1 17:54:00

请教一下FLAC3D用户手册里的一段代码,没有看懂,希望有人可以帮忙看一下,先谢了

def p_load
load_head=null
pnt=gp_head
loop while pnt#null
    if gp_zpos(pnt)>3.3 then
      if gp_xpos(pnt)<0.90 then
      if gp_ypos(pnt)<1.6 then
          if gp_ypos(pnt)>0.90 then
            mpnt=get_men(2)
            mem(mpnt)=load_head
            mem(mpnt+1)=pnt
            load_head=mpnt
          endif
      endif
      endif
    endif
    pnt=gp_next(pnt)
endloop
end
p_load

echowasd 发表于 2014-11-1 23:42:21

链表,画个图给你解释:

竹轩蓝韵 发表于 2014-11-3 09:21:51

谢谢   学习了····:lol
页: [1]
查看完整版本: 请教一下FLAC3D用户手册里的一段代码,没有看懂,希望有人可以帮忙看一下,先谢了