Package SMESH_Nut


Variables

tuple Sketcher_1 = geompy.MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW")
tuple Face_1 = geompy.MakeFace(Sketcher_1, 1)
tuple Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100))
tuple Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100)
tuple Sketcher_2 = geompy.MakeSketcher("Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW", [0,0,0, 1,0,0, 0,1,0])
tuple Face_2 = geompy.MakeFace(Sketcher_2, 1)
tuple Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi)
tuple Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1)
tuple CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"])
string name = "Edge_"
tuple Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [6])
tuple Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 )
tuple Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 )
tuple thePath = os.getenv("DATA_DIR")
string theFileName = "/Shapes/Brep/slots.brep"
tuple theShapeForCut = geompy.ImportBREP(theFileName)
tuple Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
tuple Cut_1_ID = geompy.addToStudy(Cut_1, "Cut_1")
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple shape_mesh = salome.IDToObject( Cut_1_ID )
tuple mesh = smesh.CreateMesh(shape_mesh)
tuple smeshgui = salome.ImportComponentGUI("SMESH")
tuple idmesh = salome.ObjectToID(mesh)
int theAverageLength = 5
tuple hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" )
int theMaxElementArea = 20
tuple hArea20 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
int theMaxElementVolume = 150
tuple hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" )
tuple algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" )
int listHyp = 1
tuple algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
tuple listHyp = algoMef.GetCompatibleHypothesis()
tuple algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
tuple Sketcher_1 = geompy.MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW")
tuple Face_1 = geompy.MakeFace(Sketcher_1, 1)
tuple Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100))
tuple Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100)
tuple Sketcher_2 = geompy.MakeSketcher("Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW", [0,0,0, 1,0,0, 0,1,0])
tuple Face_2 = geompy.MakeFace(Sketcher_2, 1)
tuple Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi)
tuple Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1)
tuple CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"])
string name = "Edge_"
tuple Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [6])
tuple Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 )
tuple Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 )
tuple thePath = os.getenv("DATA_DIR")
string theFileName = "/Shapes/Brep/slots.brep"
tuple theShapeForCut = geompy.ImportBREP(theFileName)
tuple Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
tuple Cut_1_ID = geompy.addToStudy(Cut_1, "Cut_1")
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple shape_mesh = salome.IDToObject( Cut_1_ID )
tuple mesh = smesh.CreateMesh(shape_mesh)
tuple smeshgui = salome.ImportComponentGUI("SMESH")
tuple idmesh = salome.ObjectToID(mesh)
int theAverageLength = 5
tuple hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" )
int theMaxElementArea = 20
tuple hArea20 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
int theMaxElementVolume = 150
tuple hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" )
tuple algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" )
int listHyp = 1
tuple algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
tuple listHyp = algoMef.GetCompatibleHypothesis()
tuple algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )


Variable Documentation

tuple SMESH_Nut.Sketcher_1 = geompy.MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW") [static]
 

tuple SMESH_Nut.Face_1 = geompy.MakeFace(Sketcher_1, 1) [static]
 

tuple SMESH_Nut.Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100)) [static]
 

tuple SMESH_Nut.Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100) [static]
 

tuple SMESH_Nut.Sketcher_2 = geompy.MakeSketcher("Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW", [0,0,0, 1,0,0, 0,1,0]) [static]
 

tuple SMESH_Nut.Face_2 = geompy.MakeFace(Sketcher_2, 1) [static]
 

tuple SMESH_Nut.Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi) [static]
 

tuple SMESH_Nut.Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1) [static]
 

tuple SMESH_Nut.CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"]) [static]
 

string SMESH_Nut.name = "Edge_" [static]
 

tuple SMESH_Nut.Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [6]) [static]
 

tuple SMESH_Nut.Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 ) [static]
 

tuple SMESH_Nut.Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 ) [static]
 

tuple SMESH_Nut.thePath = os.getenv("DATA_DIR") [static]
 

string SMESH_Nut.theFileName = "/Shapes/Brep/slots.brep" [static]
 

tuple SMESH_Nut.theShapeForCut = geompy.ImportBREP(theFileName) [static]
 

tuple SMESH_Nut.Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2) [static]
 

tuple SMESH_Nut.Cut_1_ID = geompy.addToStudy(Cut_1, "Cut_1") [static]
 

tuple SMESH_Nut.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") [static]
 

tuple SMESH_Nut.shape_mesh = salome.IDToObject( Cut_1_ID ) [static]
 

tuple SMESH_Nut.mesh = smesh.CreateMesh(shape_mesh) [static]
 

tuple SMESH_Nut.smeshgui = salome.ImportComponentGUI("SMESH") [static]
 

tuple SMESH_Nut.idmesh = salome.ObjectToID(mesh) [static]
 

int SMESH_Nut.theAverageLength = 5 [static]
 

tuple SMESH_Nut.hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.theMaxElementArea = 20 [static]
 

tuple SMESH_Nut.hArea20 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.theMaxElementVolume = 150 [static]
 

tuple SMESH_Nut.hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" ) [static]
 

tuple SMESH_Nut.algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.listHyp = 1 [static]
 

tuple SMESH_Nut.algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" ) [static]
 

tuple SMESH_Nut.listHyp = algoMef.GetCompatibleHypothesis() [static]
 

tuple SMESH_Nut.algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" ) [static]
 

tuple SMESH_Nut.Sketcher_1 = geompy.MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW") [static]
 

tuple SMESH_Nut.Face_1 = geompy.MakeFace(Sketcher_1, 1) [static]
 

tuple SMESH_Nut.Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100)) [static]
 

tuple SMESH_Nut.Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100) [static]
 

tuple SMESH_Nut.Sketcher_2 = geompy.MakeSketcher("Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW", [0,0,0, 1,0,0, 0,1,0]) [static]
 

tuple SMESH_Nut.Face_2 = geompy.MakeFace(Sketcher_2, 1) [static]
 

tuple SMESH_Nut.Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi) [static]
 

tuple SMESH_Nut.Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1) [static]
 

tuple SMESH_Nut.CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"]) [static]
 

string SMESH_Nut.name = "Edge_" [static]
 

tuple SMESH_Nut.Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [6]) [static]
 

tuple SMESH_Nut.Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 ) [static]
 

tuple SMESH_Nut.Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 ) [static]
 

tuple SMESH_Nut.thePath = os.getenv("DATA_DIR") [static]
 

string SMESH_Nut.theFileName = "/Shapes/Brep/slots.brep" [static]
 

tuple SMESH_Nut.theShapeForCut = geompy.ImportBREP(theFileName) [static]
 

tuple SMESH_Nut.Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2) [static]
 

tuple SMESH_Nut.Cut_1_ID = geompy.addToStudy(Cut_1, "Cut_1") [static]
 

tuple SMESH_Nut.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") [static]
 

tuple SMESH_Nut.shape_mesh = salome.IDToObject( Cut_1_ID ) [static]
 

tuple SMESH_Nut.mesh = smesh.CreateMesh(shape_mesh) [static]
 

tuple SMESH_Nut.smeshgui = salome.ImportComponentGUI("SMESH") [static]
 

tuple SMESH_Nut.idmesh = salome.ObjectToID(mesh) [static]
 

int SMESH_Nut.theAverageLength = 5 [static]
 

tuple SMESH_Nut.hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.theMaxElementArea = 20 [static]
 

tuple SMESH_Nut.hArea20 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.theMaxElementVolume = 150 [static]
 

tuple SMESH_Nut.hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" ) [static]
 

tuple SMESH_Nut.algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" ) [static]
 

int SMESH_Nut.listHyp = 1 [static]
 

tuple SMESH_Nut.algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" ) [static]
 

tuple SMESH_Nut.listHyp = algoMef.GetCompatibleHypothesis() [static]
 

tuple SMESH_Nut.algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" ) [static]