Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / work / hexablock.py
1 # -*- coding: latin-1 -*-
2 # Copyright (C) 2009-2024  CEA, EDF
3 #
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.
8 #
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.
13 #
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
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # HexaBlock : Module principal
22
23 import hexablock_swig
24
25 hexa = hexablock_swig.hex_instance ()
26
27 # ======================================================== what
28 def what () :
29    hexa.what ()
30
31 # ======================================================== countDocument
32 def countDocument () :
33    return hexa.countDocument ()
34
35 # ======================================================== getDocument
36 def getDocument (nro) :
37    return  hexa.getDocument (nro)
38
39 # ======================================================== removeDocument
40 def removeDocument (doc) :
41    return  hexa.removeDocument (doc)
42
43 # ======================================================== addDocument
44 def addDocument (nomdoc) :
45    return  hexa.addDocument (nomdoc)
46
47 # ======================================================== loadDocument
48 def loadDocument (filename) :
49    return  hexa.loadDocument (filename)
50
51 # ======================================================== findDocument
52 def findDocument (name) :
53    return  hexa.findDocument (name)
54
55 # ======================================================== mesh
56 def mesh (doc, name=None, dim=3, container="FactoryServer"):
57    return  0
58
59 # ======================================================== mesh
60 def mesh (doc, name=None, dim=3, container="FactoryServer"):
61    return  0
62
63 # ======================================================== mesh
64 def mesh (doc, name=None, dim=3, container="FactoryServer"):
65    return  0
66
67 # ======================================================== dump
68 def dump (doc, mesh=None, full=False) :
69    return  [ 36, 15, 36, 17]
70
71 # ======================================================= printMessage
72 def printMessage () :
73
74     nl = hexa.sizeofMessage()
75     if nl == 0 : 
76        return
77     for ni in range (nl) :
78         mess = hexa.getMessageLine (ni)
79         print(mess)
80