output ="EDGE"
dim ="1">
<python-wrap>
- <algo>CompositeSegment_1D=Segment(algo=smeshDC.COMPOSITE)</algo>
+ <algo>CompositeSegment_1D=Segment(algo=smeshBuilder.COMPOSITE)</algo>
<hypo>LocalLength=LocalLength(SetLength(), ,SetPrecision())</hypo>
<hypo>MaxLength=MaxSize(SetLength())</hypo>
<hypo>Arithmetic1D=Arithmetic1D(SetStartLength(),SetEndLength(),SetReversedEdges())</hypo>
output="EDGE"
dim="1">
<python-wrap>
- <algo>Python_1D=Segment(algo=smeshDC.PYTHON)</algo>
+ <algo>Python_1D=Segment(algo=smeshBuilder.PYTHON)</algo>
<hypo>PythonSplit1D=PythonSplit1D(SetNumberOfSegments(),SetPythonLog10RatioFunction())</hypo>
</python-wrap>
</algorithm>
output ="TRIA"
dim ="2">
<python-wrap>
- <algo>MEFISTO_2D=Triangle(algo=smeshDC.MEFISTO)</algo>
+ <algo>MEFISTO_2D=Triangle(algo=smeshBuilder.MEFISTO)</algo>
<hypo>LengthFromEdges=LengthFromEdges()</hypo>
<hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
output ="QUAD"
dim ="2">
<python-wrap>
- <algo>Quadrangle_2D=Quadrangle(algo=smeshDC.QUADRANGLE)</algo>
+ <algo>Quadrangle_2D=Quadrangle(algo=smeshBuilder.QUADRANGLE)</algo>
<hypo>QuadrangleParams=QuadrangleParameters(SetQuadType(),SetTriaVertex())</hypo>
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
</python-wrap>
opt-hypos="ViscousLayers"
dim ="3">
<python-wrap>
- <algo>Hexa_3D=Hexahedron(algo=smeshDC.Hexa)</algo>
+ <algo>Hexa_3D=Hexahedron(algo=smeshBuilder.Hexa)</algo>
<hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreFaces())</hypo>
</python-wrap>
</algorithm>
output ="QUAD,TRIA"
dim ="2">
<python-wrap>
- <algo>RadialQuadrangle_1D2D=Quadrangle(algo=smeshDC.RADIAL_QUAD)</algo>
+ <algo>RadialQuadrangle_1D2D=Quadrangle(algo=smeshBuilder.RADIAL_QUAD)</algo>
<hypo>NumberOfLayers2D=NumberOfLayers(SetNumberOfLayers())</hypo>
</python-wrap>
</algorithm>
aScript += helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()\n\t";
aScript += helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()\n\t";
if ( isPublished )
- aScript += aSMESHGen + " = smeshDC.smeshInstance(theStudy)";
+ aScript += aSMESHGen + " = smeshBuilder.New(theStudy)";
else
- aScript += aSMESHGen + " = smeshDC.smeshInstance(None)";
+ aScript += aSMESHGen + " = smeshBuilder.New(None)";
// import python files corresponding to plugins
set<string> moduleNameSet;
string moduleName = hyp_creator->second->GetModuleName();
bool newModule = moduleNameSet.insert( moduleName ).second;
if ( newModule )
- aScript += helper + "\n\t" + "import " + (char*) moduleName.c_str();
+ aScript += helper + "\n\t" + "from salome." + (char*) moduleName.c_str() + " import " + (char*) moduleName.c_str() +"Builder";
}
// Dump trace of restored study
TCollection_AsciiString initPart = "import ";
if ( isMultiFile )
initPart += helper + "salome, ";
- initPart += " smeshDC, SMESH, SALOMEDS\n";
+ initPart += " SMESH, SALOMEDS\n";
+ initPart += "from salome.smesh import smeshBuilder\n";
if ( importGeom && isMultiFile )
{
initPart += ("\n## import GEOM dump file ## \n"
# Scripts to be installed.
dist_salomescript_PYTHON = \
+ smesh.py \
batchmode_smesh.py \
batchmode_mefisto.py \
ex00_all.py \
mypkgpythondir = $(salomepythondir)/salome/smesh
mypkgpython_PYTHON = \
- smesh.py \
smeshBuilder.py \
smesh_algorithm.py
import salome
from salome import *
-from salome.geom import geompy
+import geompy
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
#from smeshBuilder import *
# load plugins and add dynamically generated methods to Mesh class,
# the same for for global variables declared by plug-ins
-from smeshBuilder import Mesh, algoCreator
+from salome.smesh.smeshBuilder import Mesh, algoCreator
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#
print "pluginName: ", pluginName