Hi!

I want to create meshes for boards and pieces for games like chess or
Go, using Python. I got this far with the boards behavior:

class chessboard:
    def __init__(self,celEntity):
        self.mesh = celGetMesh(celEntity)
        self.mesh.SetMesh("Cube")

On the last line, this error occurs:

Traceback (most recent call last):
  File "/home/baribal/src/crystal_chess/chessboard.py", line 13, in __init__
    self.mesh.SetMesh("Cube")
  File "/home/baribal/src/CEL_latest/out/linux/debug/bindings/python/blcelc.py",
line 3308, in SetMesh
    def SetMesh(*args): return _blcelc.iPcMesh_SetMesh(*args)
NotImplementedError: Wrong number of arguments for overloaded function
'iPcMesh_SetMesh'.
  Possible C/C++ prototypes are:
    SetMesh(iPcMesh *,char const *,char const *)
    SetMesh(iPcMesh *,iMeshWrapper *,bool)
    SetMesh(iPcMesh *,iMeshWrapper *)

For completeness' sake I also tried SetMesh(self.mesh) as it'd satisfy
the first prototype (kind of "self" though), but the
"NotImplementedError" to me hints at some deeper problem.
So, how *do* I create the first of m x n meshes?

Liebe Grüße,
Sebastian

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to