mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
PR: dump new init mode
This commit is contained in:
parent
20c126bc22
commit
7f3c1cde92
@ -227,7 +227,7 @@
|
||||
output ="EDGE"
|
||||
dim ="1">
|
||||
<python-wrap>
|
||||
<algo>CompositeSegment_1D=Segment(algo=smesh.COMPOSITE)</algo>
|
||||
<algo>CompositeSegment_1D=Segment(algo=smeshDC.COMPOSITE)</algo>
|
||||
<hypo>LocalLength=LocalLength(SetLength(), ,SetPrecision())</hypo>
|
||||
<hypo>MaxLength=MaxSize(SetLength())</hypo>
|
||||
<hypo>Arithmetic1D=Arithmetic1D(SetStartLength(),SetEndLength(),SetReversedEdges())</hypo>
|
||||
@ -244,7 +244,7 @@
|
||||
output="EDGE"
|
||||
dim="1">
|
||||
<python-wrap>
|
||||
<algo>Python_1D=Segment(algo=smesh.PYTHON)</algo>
|
||||
<algo>Python_1D=Segment(algo=smeshDC.PYTHON)</algo>
|
||||
<hypo>PythonSplit1D=PythonSplit1D(SetNumberOfSegments(),SetPythonLog10RatioFunction())</hypo>
|
||||
</python-wrap>
|
||||
</algorithm>
|
||||
@ -258,7 +258,7 @@
|
||||
output ="TRIA"
|
||||
dim ="2">
|
||||
<python-wrap>
|
||||
<algo>MEFISTO_2D=Triangle(algo=smesh.MEFISTO)</algo>
|
||||
<algo>MEFISTO_2D=Triangle(algo=smeshDC.MEFISTO)</algo>
|
||||
<hypo>LengthFromEdges=LengthFromEdges()</hypo>
|
||||
<hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
|
||||
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
|
||||
@ -274,7 +274,7 @@
|
||||
output ="QUAD"
|
||||
dim ="2">
|
||||
<python-wrap>
|
||||
<algo>Quadrangle_2D=Quadrangle(algo=smesh.QUADRANGLE)</algo>
|
||||
<algo>Quadrangle_2D=Quadrangle(algo=smeshDC.QUADRANGLE)</algo>
|
||||
<hypo>QuadrangleParams=QuadrangleParameters(SetQuadType(),SetTriaVertex())</hypo>
|
||||
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
|
||||
</python-wrap>
|
||||
@ -288,7 +288,7 @@
|
||||
opt-hypos="ViscousLayers"
|
||||
dim ="3">
|
||||
<python-wrap>
|
||||
<algo>Hexa_3D=Hexahedron(algo=smesh.Hexa)</algo>
|
||||
<algo>Hexa_3D=Hexahedron(algo=smeshDC.Hexa)</algo>
|
||||
<hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreFaces())</hypo>
|
||||
</python-wrap>
|
||||
</algorithm>
|
||||
@ -419,7 +419,7 @@
|
||||
output ="QUAD,TRIA"
|
||||
dim ="2">
|
||||
<python-wrap>
|
||||
<algo>RadialQuadrangle_1D2D=Quadrangle(algo=smesh.RADIAL_QUAD)</algo>
|
||||
<algo>RadialQuadrangle_1D2D=Quadrangle(algo=smeshDC.RADIAL_QUAD)</algo>
|
||||
<hypo>NumberOfLayers2D=NumberOfLayers(SetNumberOfLayers())</hypo>
|
||||
</python-wrap>
|
||||
</algorithm>
|
||||
|
@ -831,9 +831,9 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
||||
aScript += helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()\n\t";
|
||||
aScript += helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()\n\t";
|
||||
if ( isPublished )
|
||||
aScript += aSMESHGen + ".SetCurrentStudy(theStudy)";
|
||||
aScript += aSMESHGen + " = smeshDC.smeshInstance(theStudy)";
|
||||
else
|
||||
aScript += aSMESHGen + ".SetCurrentStudy(None)";
|
||||
aScript += aSMESHGen + " = smeshDC.smeshInstance(None)";
|
||||
|
||||
// import python files corresponding to plugins
|
||||
set<string> moduleNameSet;
|
||||
@ -963,7 +963,7 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
||||
TCollection_AsciiString initPart = "import ";
|
||||
if ( isMultiFile )
|
||||
initPart += helper + "salome, ";
|
||||
initPart += aSmeshpy + ", SMESH, SALOMEDS\n";
|
||||
initPart += " smeshDC, SMESH, SALOMEDS\n";
|
||||
if ( importGeom && isMultiFile )
|
||||
{
|
||||
initPart += ("\n## import GEOM dump file ## \n"
|
||||
|
Loading…
Reference in New Issue
Block a user