1 # -*- coding: latin-1 -*-
2 # Copyright (C) 2009-2024 CEA, EDF
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # HexaBlock : Module principal
25 hexa = hexablock_swig.hex_instance ()
27 # ======================================================== what
31 # ======================================================== countDocument
32 def countDocument () :
33 return hexa.countDocument ()
35 # ======================================================== getDocument
36 def getDocument (nro) :
37 return hexa.getDocument (nro)
39 # ======================================================== removeDocument
40 def removeDocument (doc) :
41 return hexa.removeDocument (doc)
43 # ======================================================== addDocument
44 def addDocument (nomdoc) :
45 return hexa.addDocument (nomdoc)
47 # ======================================================== loadDocument
48 def loadDocument (filename) :
49 return hexa.loadDocument (filename)
51 # ======================================================== findDocument
52 def findDocument (name) :
53 return hexa.findDocument (name)
55 # ======================================================== mesh
56 def mesh (doc, name=None, dim=3, container="FactoryServer"):
59 # ======================================================== mesh
60 def mesh (doc, name=None, dim=3, container="FactoryServer"):
63 # ======================================================== mesh
64 def mesh (doc, name=None, dim=3, container="FactoryServer"):
67 # ======================================================== dump
68 def dump (doc, mesh=None, full=False) :
69 return [ 36, 15, 36, 17]
71 # ======================================================= printMessage
74 nl = hexa.sizeofMessage()
77 for ni in range (nl) :
78 mess = hexa.getMessageLine (ni)