0

我不知道为什么,但是当我在 ipython 上显示一些模型时,查看器崩溃并向我发送一个错误,例如 XgeModule 已关闭。为什么?

这是代码:

def CIRCLE(r):
  dom = INTERVALS(2*PI)(50)
  def circ(p):
    return ([r*COS(p[0]),r*SIN(p[0])])
  return SOLIDIFY(MAP(circ)(dom))

vetro = COLOR([1,1,0,0.7])(CIRCLE(0.4))

Dom1D = INTERVALS(1)(60)
Dom2D = PROD([Dom1D,Dom1D])

profile = BEZIER(S1)([[0,0,0],[0.4,0,0],[0.4,0,0.4]])

rot_domain = PROD([INTERVALS(1)(60),INTERVALS(2*PI)(60)])
mapping = ROTATIONALSURFACE(profile)
closing = COLOR(BLACK)(MAP(mapping)(rot_domain))

fanale = R([2,3])(PI/2)(S([1,2,3])([2.5,2.5,2.5])(STRUCT([T([3])([0.4])vetro),closing])))

DRAW(fanale)

这是 Ubuntu 终端上的错误:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  40 (X_TranslateCoords)
  Resource id in failed request:  0x3c00011
  Serial number of failed request:  606
  Current serial number in output stream:  606
XgeModule::shutdown
4

0 回答 0