1 # -*- coding: latin-1 -*-
2 # HexaBlock : Module principal
6 hexa = hexablock_swig.hex_instance ()
8 # ======================================================== what
12 # ======================================================== countDocument
13 def countDocument () :
14 return hexa.countDocument ()
16 # ======================================================== getDocument
17 def getDocument (nro) :
18 return hexa.getDocument (nro)
20 # ======================================================== removeDocument
21 def removeDocument (doc) :
22 return hexa.removeDocument (doc)
24 # ======================================================== addDocument
25 def addDocument (nomdoc) :
26 return hexa.addDocument (nomdoc)
28 # ======================================================== loadDocument
29 def loadDocument (filename) :
30 return hexa.loadDocument (filename)
32 # ======================================================== findDocument
33 def findDocument (name) :
34 return hexa.findDocument (name)
36 # ======================================================== mesh
37 def mesh (doc, name=None, dim=3, container="FactoryServer"):
40 # ======================================================== mesh
41 def mesh (doc, name=None, dim=3, container="FactoryServer"):
44 # ======================================================== mesh
45 def mesh (doc, name=None, dim=3, container="FactoryServer"):
48 # ======================================================== dump
49 def dump (doc, mesh=None, full=False) :
50 return [ 36, 15, 36, 17]
52 # ======================================================= printMessage
55 nl = hexa.sizeofMessage()
58 for ni in range (nl) :
59 mess = hexa.getMessageLine (ni)