Back to index

salome-smesh  6.5.0
Variables
SMESH_mechanic Namespace Reference

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 Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )
list sub_face3 = SubFaceL[5]
tuple Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )
list sub_face4 = SubFaceL[10]
tuple Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )
tuple shape_mesh = salome.IDToObject( Id_mechanic )
tuple mesh = smesh.Mesh(shape_mesh, "Mesh_mechanic")
int numberOfSegment = 10
tuple algo = mesh.Segment()
tuple hypNbSeg = algo.NumberOfSegments(numberOfSegment)
int maxElementArea = 25
tuple hypArea25 = algo.MaxElementArea(maxElementArea)

Variable Documentation

tuple SMESH_mechanic.algo = mesh.Segment()

Definition at line 135 of file SMESH_mechanic.py.

tuple SMESH_mechanic.arc1 = geompy.MakeArc( p1, p2, p3 )

Definition at line 42 of file SMESH_mechanic.py.

tuple SMESH_mechanic.arc2 = geompy.MakeArc( p4, p5, p6 )

Definition at line 49 of file SMESH_mechanic.py.

tuple SMESH_mechanic.arc3 = geompy.MakeArc( p6, p7, p1 )

Definition at line 52 of file SMESH_mechanic.py.

tuple SMESH_mechanic.cyl1 = geompy.MakeCylinder( pc1, vz, radius, height )

Definition at line 83 of file SMESH_mechanic.py.

tuple SMESH_mechanic.cyl2 = geompy.MakeCylinder( pc2, vz, radius, height )

Definition at line 84 of file SMESH_mechanic.py.

tuple SMESH_mechanic.face1 = geompy.MakeFace( wire1, WantPlanarFace )

Definition at line 66 of file SMESH_mechanic.py.

float SMESH_mechanic.height = 180.0

Definition at line 82 of file SMESH_mechanic.py.

tuple SMESH_mechanic.hypArea25 = algo.MaxElementArea(maxElementArea)

Definition at line 147 of file SMESH_mechanic.py.

tuple SMESH_mechanic.hypNbSeg = algo.NumberOfSegments(numberOfSegment)

Definition at line 136 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" )

Definition at line 86 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" )

Definition at line 87 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_face1 = geompy.addToStudy( face1, "face1" )

Definition at line 67 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )

Definition at line 94 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_prism1 = geompy.addToStudy( prism1, "prism1" )

Definition at line 75 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name )

Definition at line 103 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )

Definition at line 109 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )

Definition at line 115 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )

Definition at line 121 of file SMESH_mechanic.py.

tuple SMESH_mechanic.Id_wire1 = geompy.addToStudy( wire1, "wire1" )

Definition at line 62 of file SMESH_mechanic.py.

Definition at line 55 of file SMESH_mechanic.py.

Definition at line 144 of file SMESH_mechanic.py.

tuple SMESH_mechanic.mechanic = geompy.MakeBoolean( shape, cyl2, 3 )

Definition at line 93 of file SMESH_mechanic.py.

tuple SMESH_mechanic.mesh = smesh.Mesh(shape_mesh, "Mesh_mechanic")

Definition at line 129 of file SMESH_mechanic.py.

tuple SMESH_mechanic.name = geompy.SubShapeName( sub_face1, mechanic )

Definition at line 101 of file SMESH_mechanic.py.

Definition at line 133 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 )

Definition at line 39 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 )

Definition at line 40 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 )

Definition at line 41 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 )

Definition at line 44 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 )

Definition at line 47 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 )

Definition at line 48 of file SMESH_mechanic.py.

tuple SMESH_mechanic.p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 )

Definition at line 51 of file SMESH_mechanic.py.

tuple SMESH_mechanic.pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 )

Definition at line 78 of file SMESH_mechanic.py.

tuple SMESH_mechanic.pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 )

Definition at line 79 of file SMESH_mechanic.py.

tuple SMESH_mechanic.pO = geompy.MakeVertex( 0.0, 0.0, 0.0 )

Definition at line 70 of file SMESH_mechanic.py.

tuple SMESH_mechanic.prism1 = geompy.MakePrismVecH( face1, vz, 100.0 )

Definition at line 74 of file SMESH_mechanic.py.

tuple SMESH_mechanic.pz = geompy.MakeVertex( 0.0, 0.0, 100.0 )

Definition at line 71 of file SMESH_mechanic.py.

float SMESH_mechanic.radius = 20.0

Definition at line 81 of file SMESH_mechanic.py.

tuple SMESH_mechanic.seg1 = geompy.MakeVector( p3, p4 )

Definition at line 45 of file SMESH_mechanic.py.

tuple SMESH_mechanic.shape = geompy.MakeBoolean( prism1, cyl1, 2 )

Definition at line 90 of file SMESH_mechanic.py.

tuple SMESH_mechanic.shape_mesh = salome.IDToObject( Id_mechanic )

Definition at line 127 of file SMESH_mechanic.py.

Definition at line 100 of file SMESH_mechanic.py.

Definition at line 106 of file SMESH_mechanic.py.

Definition at line 112 of file SMESH_mechanic.py.

Definition at line 118 of file SMESH_mechanic.py.

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

Definition at line 97 of file SMESH_mechanic.py.

tuple SMESH_mechanic.vz = geompy.MakeVector( pO, pz )

Definition at line 72 of file SMESH_mechanic.py.

Definition at line 65 of file SMESH_mechanic.py.

tuple SMESH_mechanic.wire1 = geompy.MakeWire( List1 )

Definition at line 61 of file SMESH_mechanic.py.