Package SMESH_mechanic_editor


Variables

tuple p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 )
tuple p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 )
tuple p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 )
tuple arc1 = geompy.MakeArc( p1, p2, p3 )
tuple p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 )
tuple seg1 = geompy.MakeVector( p3, p4 )
tuple p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 )
tuple p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 )
tuple arc2 = geompy.MakeArc( p4, p5, p6 )
tuple p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 )
tuple arc3 = geompy.MakeArc( p6, p7, p1 )
list List1 = []
tuple wire1 = geompy.MakeWire( List1 )
tuple Id_wire1 = geompy.addToStudy( wire1, "wire1" )
int WantPlanarFace = 1
tuple face1 = geompy.MakeFace( wire1, WantPlanarFace )
tuple Id_face1 = geompy.addToStudy( face1, "face1" )
tuple pO = geompy.MakeVertex( 0.0, 0.0, 0.0 )
tuple pz = geompy.MakeVertex( 0.0, 0.0, 100.0 )
tuple vz = geompy.MakeVector( pO, pz )
tuple prism1 = geompy.MakePrismVecH( face1, vz, 100.0 )
tuple Id_prism1 = geompy.addToStudy( prism1, "prism1" )
tuple pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 )
tuple pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 )
float radius = 20.0
float height = 180.0
tuple cyl1 = geompy.MakeCylinder( pc1, vz, radius, height )
tuple cyl2 = geompy.MakeCylinder( pc2, vz, radius, height )
tuple Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" )
tuple Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" )
tuple shape = geompy.MakeBoolean( prism1, cyl1, 2 )
tuple mechanic = geompy.MakeBoolean( shape, cyl2, 3 )
tuple Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )
tuple SubFaceL = geompy.SubShapeAllSorted(mechanic, geompy.ShapeType["FACE"])
list sub_face1 = SubFaceL[0]
tuple name = geompy.SubShapeName( sub_face1, mechanic )
tuple Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name )
list sub_face2 = SubFaceL[4]
tuple name = geompy.SubShapeName( sub_face2, mechanic )
tuple Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )
list sub_face3 = SubFaceL[5]
tuple name = geompy.SubShapeName( sub_face3, mechanic )
tuple Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )
list sub_face4 = SubFaceL[10]
tuple name = geompy.SubShapeName( sub_face4, mechanic )
tuple Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple shape_mesh = salome.IDToObject( Id_mechanic )
tuple mesh = smesh.CreateMesh(shape_mesh)
tuple smeshgui = salome.ImportComponentGUI("SMESH")
tuple idmesh = salome.ObjectToID(mesh)
int numberOfSegment = 10
tuple hypNbSeg = smesh.CreateHypothesis( "NumberOfSegments", "libStdMeshersEngine.so" )
int maxElementArea = 25
tuple hypArea25 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
int maxElementArea = 35
tuple hypArea35 = smesh.CreateHypothesis( "MaxElementArea", "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 algoQuad = smesh.CreateHypothesis( "Quadrangle_2D", "libStdMeshersEngine.so" )
tuple listHyp = algoQuad.GetCompatibleHypothesis()
tuple submesh = mesh.GetSubMesh(sub_face1, "SubMeshFace1")
tuple submesh = mesh.GetSubMesh(sub_face2, "SubMeshFace2")
tuple submesh = mesh.GetSubMesh(sub_face3, "SubMeshFace3")
tuple submesh = mesh.GetSubMesh(sub_face4, "SubMeshFace4")
tuple MeshEditor = mesh.GetMeshEditor()
tuple submesh = mesh.GetSubMesh(sub_face2, "SubMeshFace2")
list FacesTriToQuad = [2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422]
tuple GroupTriToQuad = mesh.CreateGroup(SMESH.FACE,"Group of faces (quad)")
tuple point = SMESH.PointStruct(0, 0, 5)
tuple vector = SMESH.DirStruct(point)
tuple point = SMESH.PointStruct(10, 10, 10)
tuple vector = SMESH.DirStruct(point)
tuple axisXYZ = SMESH.AxisStruct(0, 0, 0, 10, 10, 10)
int angle180 = 180
list FacesSmooth = [864, 933, 941, 950, 1005, 1013]
tuple GroupSmooth = mesh.CreateGroup(SMESH.FACE,"Group of faces (smooth)")
list FacesRotate = [492, 493, 502, 503]
tuple GroupRotate = mesh.CreateGroup(SMESH.FACE,"Group of faces (rotate)")
int angle45 = 45
tuple axisXYZ = SMESH.AxisStruct(-38.3128, -73.3658, -133.321, -13.3402, -13.3265, 6.66632)
tuple submesh = mesh.GetSubMesh(sub_face1, "SubMeshFace1")


Variable Documentation

tuple SMESH_mechanic_editor.p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.arc1 = geompy.MakeArc( p1, p2, p3 ) [static]
 

tuple SMESH_mechanic_editor.p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.seg1 = geompy.MakeVector( p3, p4 ) [static]
 

tuple SMESH_mechanic_editor.p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.arc2 = geompy.MakeArc( p4, p5, p6 ) [static]
 

tuple SMESH_mechanic_editor.p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.arc3 = geompy.MakeArc( p6, p7, p1 ) [static]
 

list SMESH_mechanic_editor.List1 = [] [static]
 

tuple SMESH_mechanic_editor.wire1 = geompy.MakeWire( List1 ) [static]
 

tuple SMESH_mechanic_editor.Id_wire1 = geompy.addToStudy( wire1, "wire1" ) [static]
 

int SMESH_mechanic_editor.WantPlanarFace = 1 [static]
 

tuple SMESH_mechanic_editor.face1 = geompy.MakeFace( wire1, WantPlanarFace ) [static]
 

tuple SMESH_mechanic_editor.Id_face1 = geompy.addToStudy( face1, "face1" ) [static]
 

tuple SMESH_mechanic_editor.pO = geompy.MakeVertex( 0.0, 0.0, 0.0 ) [static]
 

tuple SMESH_mechanic_editor.pz = geompy.MakeVertex( 0.0, 0.0, 100.0 ) [static]
 

tuple SMESH_mechanic_editor.vz = geompy.MakeVector( pO, pz ) [static]
 

tuple SMESH_mechanic_editor.prism1 = geompy.MakePrismVecH( face1, vz, 100.0 ) [static]
 

tuple SMESH_mechanic_editor.Id_prism1 = geompy.addToStudy( prism1, "prism1" ) [static]
 

tuple SMESH_mechanic_editor.pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 ) [static]
 

tuple SMESH_mechanic_editor.pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 ) [static]
 

float SMESH_mechanic_editor.radius = 20.0 [static]
 

float SMESH_mechanic_editor.height = 180.0 [static]
 

tuple SMESH_mechanic_editor.cyl1 = geompy.MakeCylinder( pc1, vz, radius, height ) [static]
 

tuple SMESH_mechanic_editor.cyl2 = geompy.MakeCylinder( pc2, vz, radius, height ) [static]
 

tuple SMESH_mechanic_editor.Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" ) [static]
 

tuple SMESH_mechanic_editor.Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" ) [static]
 

tuple SMESH_mechanic_editor.shape = geompy.MakeBoolean( prism1, cyl1, 2 ) [static]
 

tuple SMESH_mechanic_editor.mechanic = geompy.MakeBoolean( shape, cyl2, 3 ) [static]
 

tuple SMESH_mechanic_editor.Id_mechanic = geompy.addToStudy( mechanic, "mechanic" ) [static]
 

tuple SMESH_mechanic_editor.SubFaceL = geompy.SubShapeAllSorted(mechanic, geompy.ShapeType["FACE"]) [static]
 

list SMESH_mechanic_editor.sub_face1 = SubFaceL[0] [static]
 

tuple SMESH_mechanic_editor.name = geompy.SubShapeName( sub_face1, mechanic ) [static]
 

tuple SMESH_mechanic_editor.Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name ) [static]
 

list SMESH_mechanic_editor.sub_face2 = SubFaceL[4] [static]
 

tuple SMESH_mechanic_editor.name = geompy.SubShapeName( sub_face2, mechanic ) [static]
 

tuple SMESH_mechanic_editor.Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name ) [static]
 

list SMESH_mechanic_editor.sub_face3 = SubFaceL[5] [static]
 

tuple SMESH_mechanic_editor.name = geompy.SubShapeName( sub_face3, mechanic ) [static]
 

tuple SMESH_mechanic_editor.Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name ) [static]
 

list SMESH_mechanic_editor.sub_face4 = SubFaceL[10] [static]
 

tuple SMESH_mechanic_editor.name = geompy.SubShapeName( sub_face4, mechanic ) [static]
 

tuple SMESH_mechanic_editor.Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name ) [static]
 

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

tuple SMESH_mechanic_editor.shape_mesh = salome.IDToObject( Id_mechanic ) [static]
 

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

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

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

int SMESH_mechanic_editor.numberOfSegment = 10 [static]
 

tuple SMESH_mechanic_editor.hypNbSeg = smesh.CreateHypothesis( "NumberOfSegments", "libStdMeshersEngine.so" ) [static]
 

int SMESH_mechanic_editor.maxElementArea = 25 [static]
 

tuple SMESH_mechanic_editor.hypArea25 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

int SMESH_mechanic_editor.maxElementArea = 35 [static]
 

tuple SMESH_mechanic_editor.hypArea35 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

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

int SMESH_mechanic_editor.listHyp = 1 [static]
 

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

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

tuple SMESH_mechanic_editor.algoQuad = smesh.CreateHypothesis( "Quadrangle_2D", "libStdMeshersEngine.so" ) [static]
 

tuple SMESH_mechanic_editor.listHyp = algoQuad.GetCompatibleHypothesis() [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face1, "SubMeshFace1") [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face2, "SubMeshFace2") [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face3, "SubMeshFace3") [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face4, "SubMeshFace4") [static]
 

tuple SMESH_mechanic_editor.MeshEditor = mesh.GetMeshEditor() [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face2, "SubMeshFace2") [static]
 

list SMESH_mechanic_editor.FacesTriToQuad = [2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422] [static]
 

tuple SMESH_mechanic_editor.GroupTriToQuad = mesh.CreateGroup(SMESH.FACE,"Group of faces (quad)") [static]
 

tuple SMESH_mechanic_editor.point = SMESH.PointStruct(0, 0, 5) [static]
 

tuple SMESH_mechanic_editor.vector = SMESH.DirStruct(point) [static]
 

tuple SMESH_mechanic_editor.point = SMESH.PointStruct(10, 10, 10) [static]
 

tuple SMESH_mechanic_editor.vector = SMESH.DirStruct(point) [static]
 

tuple SMESH_mechanic_editor.axisXYZ = SMESH.AxisStruct(0, 0, 0, 10, 10, 10) [static]
 

int SMESH_mechanic_editor.angle180 = 180 [static]
 

list SMESH_mechanic_editor.FacesSmooth = [864, 933, 941, 950, 1005, 1013] [static]
 

tuple SMESH_mechanic_editor.GroupSmooth = mesh.CreateGroup(SMESH.FACE,"Group of faces (smooth)") [static]
 

list SMESH_mechanic_editor.FacesRotate = [492, 493, 502, 503] [static]
 

tuple SMESH_mechanic_editor.GroupRotate = mesh.CreateGroup(SMESH.FACE,"Group of faces (rotate)") [static]
 

int SMESH_mechanic_editor.angle45 = 45 [static]
 

tuple SMESH_mechanic_editor.axisXYZ = SMESH.AxisStruct(-38.3128, -73.3658, -133.321, -13.3402, -13.3265, 6.66632) [static]
 

tuple SMESH_mechanic_editor.submesh = mesh.GetSubMesh(sub_face1, "SubMeshFace1") [static]