Back to index

salome-smesh  6.5.0
Namespaces | Variables
SMESH_mechanic.py File Reference

Go to the source code of this file.

Namespaces

namespace  SMESH_mechanic

Variables

tuple SMESH_mechanic.p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 )
tuple SMESH_mechanic.p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 )
tuple SMESH_mechanic.p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 )
tuple SMESH_mechanic.arc1 = geompy.MakeArc( p1, p2, p3 )
tuple SMESH_mechanic.p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 )
tuple SMESH_mechanic.seg1 = geompy.MakeVector( p3, p4 )
tuple SMESH_mechanic.p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 )
tuple SMESH_mechanic.p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 )
tuple SMESH_mechanic.arc2 = geompy.MakeArc( p4, p5, p6 )
tuple SMESH_mechanic.p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 )
tuple SMESH_mechanic.arc3 = geompy.MakeArc( p6, p7, p1 )
list SMESH_mechanic.List1 = []
tuple SMESH_mechanic.wire1 = geompy.MakeWire( List1 )
tuple SMESH_mechanic.Id_wire1 = geompy.addToStudy( wire1, "wire1" )
int SMESH_mechanic.WantPlanarFace = 1
tuple SMESH_mechanic.face1 = geompy.MakeFace( wire1, WantPlanarFace )
tuple SMESH_mechanic.Id_face1 = geompy.addToStudy( face1, "face1" )
tuple SMESH_mechanic.pO = geompy.MakeVertex( 0.0, 0.0, 0.0 )
tuple SMESH_mechanic.pz = geompy.MakeVertex( 0.0, 0.0, 100.0 )
tuple SMESH_mechanic.vz = geompy.MakeVector( pO, pz )
tuple SMESH_mechanic.prism1 = geompy.MakePrismVecH( face1, vz, 100.0 )
tuple SMESH_mechanic.Id_prism1 = geompy.addToStudy( prism1, "prism1" )
tuple SMESH_mechanic.pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 )
tuple SMESH_mechanic.pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 )
float SMESH_mechanic.radius = 20.0
float SMESH_mechanic.height = 180.0
tuple SMESH_mechanic.cyl1 = geompy.MakeCylinder( pc1, vz, radius, height )
tuple SMESH_mechanic.cyl2 = geompy.MakeCylinder( pc2, vz, radius, height )
tuple SMESH_mechanic.Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" )
tuple SMESH_mechanic.Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" )
tuple SMESH_mechanic.shape = geompy.MakeBoolean( prism1, cyl1, 2 )
tuple SMESH_mechanic.mechanic = geompy.MakeBoolean( shape, cyl2, 3 )
tuple SMESH_mechanic.Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )
tuple SMESH_mechanic.SubFaceL = geompy.SubShapeAllSorted(mechanic, geompy.ShapeType["FACE"])
list SMESH_mechanic.sub_face1 = SubFaceL[0]
tuple SMESH_mechanic.name = geompy.SubShapeName( sub_face1, mechanic )
tuple SMESH_mechanic.Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name )
list SMESH_mechanic.sub_face2 = SubFaceL[4]
tuple SMESH_mechanic.Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )
list SMESH_mechanic.sub_face3 = SubFaceL[5]
tuple SMESH_mechanic.Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )
list SMESH_mechanic.sub_face4 = SubFaceL[10]
tuple SMESH_mechanic.Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )
tuple SMESH_mechanic.shape_mesh = salome.IDToObject( Id_mechanic )
tuple SMESH_mechanic.mesh = smesh.Mesh(shape_mesh, "Mesh_mechanic")
int SMESH_mechanic.numberOfSegment = 10
tuple SMESH_mechanic.algo = mesh.Segment()
tuple SMESH_mechanic.hypNbSeg = algo.NumberOfSegments(numberOfSegment)
int SMESH_mechanic.maxElementArea = 25
tuple SMESH_mechanic.hypArea25 = algo.MaxElementArea(maxElementArea)