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"], [5]) |
| 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") |
| tuple | theFileName = os.path.join( thePath,"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 | shape_mesh = salome.IDToObject( Cut_1_ID ) |
| tuple | mesh = smesh.Mesh(shape_mesh, "Nut") |
| int | theAverageLength = 5 |
| tuple | algoReg1D = mesh.Segment() |
| tuple | hAvLength = algoReg1D.LocalLength(theAverageLength) |
| int | theMaxElementArea = 20 |
| tuple | algoMef = mesh.Triangle(smesh.MEFISTO) |
| tuple | hArea = algoMef.MaxElementArea( theMaxElementArea ) |
| int | theMaxElementVolume = 150 |
| tuple | algoNg = mesh.Tetrahedron(smesh.NETGEN) |
| tuple | hVolume = algoNg.MaxElementVolume( theMaxElementVolume ) |
| tuple SMESH_Nut.algoMef = mesh.Triangle(smesh.MEFISTO) |
Definition at line 120 of file SMESH_Nut.py.
| tuple SMESH_Nut.algoNg = mesh.Tetrahedron(smesh.NETGEN) |
Definition at line 129 of file SMESH_Nut.py.
| tuple SMESH_Nut.algoReg1D = mesh.Segment() |
Definition at line 111 of file SMESH_Nut.py.
| tuple SMESH_Nut.Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 ) |
Definition at line 82 of file SMESH_Nut.py.
| tuple SMESH_Nut.Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 ) |
Definition at line 84 of file SMESH_Nut.py.
| tuple SMESH_Nut.Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1) |
Definition at line 66 of file SMESH_Nut.py.
| tuple SMESH_Nut.CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"]) |
Definition at line 70 of file SMESH_Nut.py.
| tuple SMESH_Nut.Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2) |
Definition at line 96 of file SMESH_Nut.py.
| tuple SMESH_Nut.Cut_1_ID = geompy.addToStudy(Cut_1, "Cut_1") |
Definition at line 97 of file SMESH_Nut.py.
| tuple SMESH_Nut.Face_1 = geompy.MakeFace(Sketcher_1, 1) |
Definition at line 39 of file SMESH_Nut.py.
| tuple SMESH_Nut.Face_2 = geompy.MakeFace(Sketcher_2, 1) |
Definition at line 56 of file SMESH_Nut.py.
| tuple SMESH_Nut.Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [5]) |
Definition at line 77 of file SMESH_Nut.py.
| tuple SMESH_Nut.hArea = algoMef.MaxElementArea( theMaxElementArea ) |
Definition at line 121 of file SMESH_Nut.py.
| tuple SMESH_Nut.hAvLength = algoReg1D.LocalLength(theAverageLength) |
Definition at line 112 of file SMESH_Nut.py.
| tuple SMESH_Nut.hVolume = algoNg.MaxElementVolume( theMaxElementVolume ) |
Definition at line 130 of file SMESH_Nut.py.
| tuple SMESH_Nut.Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100)) |
Definition at line 44 of file SMESH_Nut.py.
| tuple SMESH_Nut.mesh = smesh.Mesh(shape_mesh, "Nut") |
Definition at line 106 of file SMESH_Nut.py.
| string SMESH_Nut.name = "Edge_" |
Definition at line 72 of file SMESH_Nut.py.
| tuple SMESH_Nut.Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100) |
Definition at line 49 of file SMESH_Nut.py.
| tuple SMESH_Nut.Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi) |
Definition at line 61 of file SMESH_Nut.py.
| tuple SMESH_Nut.shape_mesh = salome.IDToObject( Cut_1_ID ) |
Definition at line 104 of file SMESH_Nut.py.
| 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") |
Definition at line 37 of file SMESH_Nut.py.
| 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]) |
Definition at line 54 of file SMESH_Nut.py.
Definition at line 110 of file SMESH_Nut.py.
| tuple SMESH_Nut.theFileName = os.path.join( thePath,"Shapes","Brep","slots.brep") |
Definition at line 90 of file SMESH_Nut.py.
Referenced by SMESHGUI_MeshPatternDlg.autoExtension(), SMESHGUI_FilterLibraryDlg.autoExtension(), SMESHGUI_CreatePatternDlg.autoExtension(), SMESH_Gen_i.CreateMeshesFromMED(), SMESH_Gen_i.CreateMeshesFromSTL(), SMESH_Gen_i.CreateMeshesFromUNV(), SMESH_Mesh_i.ImportMEDFile(), SMESH_Mesh_i.ImportSTLFile(), SMESH_Mesh_i.ImportUNVFile(), Driver_Mesh.SetFile(), and Driver_Document.SetFile().
Definition at line 119 of file SMESH_Nut.py.
Definition at line 128 of file SMESH_Nut.py.
| tuple SMESH_Nut.thePath = os.getenv("DATA_DIR") |
Definition at line 89 of file SMESH_Nut.py.
| tuple SMESH_Nut.theShapeForCut = geompy.ImportBREP(theFileName) |
Definition at line 91 of file SMESH_Nut.py.