Back to index

salome-smesh  6.5.0
Variables
SMESH_mechanic_netgen Namespace Reference

Variables

 geom = geompy.geom
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 subShellList = geompy.SubShapeAll(mechanic,geompy.ShapeType["SHELL"])
tuple subFaceList = geompy.SubShapeAll(mechanic,geompy.ShapeType["FACE"])
tuple subEdgeList = geompy.SubShapeAll(mechanic,geompy.ShapeType["EDGE"])
tuple mesh = smesh.Mesh(mechanic, "Mesh_mechanic")
 ---------------------------- SMESH --------------------------------------
tuple netgen = mesh.Triangle(smesh.NETGEN)
tuple ret = mesh.Compute()

Variable Documentation

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

Definition at line 41 of file SMESH_mechanic_netgen.py.

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

Definition at line 48 of file SMESH_mechanic_netgen.py.

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

Definition at line 51 of file SMESH_mechanic_netgen.py.

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

Definition at line 82 of file SMESH_mechanic_netgen.py.

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

Definition at line 83 of file SMESH_mechanic_netgen.py.

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

Definition at line 65 of file SMESH_mechanic_netgen.py.

Definition at line 31 of file SMESH_mechanic_netgen.py.

Definition at line 81 of file SMESH_mechanic_netgen.py.

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

Definition at line 85 of file SMESH_mechanic_netgen.py.

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

Definition at line 86 of file SMESH_mechanic_netgen.py.

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

Definition at line 66 of file SMESH_mechanic_netgen.py.

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

Definition at line 93 of file SMESH_mechanic_netgen.py.

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

Definition at line 74 of file SMESH_mechanic_netgen.py.

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

Definition at line 61 of file SMESH_mechanic_netgen.py.

Definition at line 54 of file SMESH_mechanic_netgen.py.

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

Definition at line 92 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.mesh = smesh.Mesh(mechanic, "Mesh_mechanic")

---------------------------- SMESH --------------------------------------

Definition at line 112 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.netgen = mesh.Triangle(smesh.NETGEN)

Definition at line 113 of file SMESH_mechanic_netgen.py.

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

Definition at line 38 of file SMESH_mechanic_netgen.py.

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

Definition at line 39 of file SMESH_mechanic_netgen.py.

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

Definition at line 40 of file SMESH_mechanic_netgen.py.

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

Definition at line 43 of file SMESH_mechanic_netgen.py.

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

Definition at line 46 of file SMESH_mechanic_netgen.py.

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

Definition at line 47 of file SMESH_mechanic_netgen.py.

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

Definition at line 50 of file SMESH_mechanic_netgen.py.

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

Definition at line 78 of file SMESH_mechanic_netgen.py.

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

Definition at line 79 of file SMESH_mechanic_netgen.py.

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

Definition at line 69 of file SMESH_mechanic_netgen.py.

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

Definition at line 73 of file SMESH_mechanic_netgen.py.

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

Definition at line 70 of file SMESH_mechanic_netgen.py.

Definition at line 80 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.ret = mesh.Compute()

Definition at line 123 of file SMESH_mechanic_netgen.py.

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

Definition at line 44 of file SMESH_mechanic_netgen.py.

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

Definition at line 89 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.subEdgeList = geompy.SubShapeAll(mechanic,geompy.ShapeType["EDGE"])

Definition at line 101 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.subFaceList = geompy.SubShapeAll(mechanic,geompy.ShapeType["FACE"])

Definition at line 100 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.subShellList = geompy.SubShapeAll(mechanic,geompy.ShapeType["SHELL"])

Definition at line 99 of file SMESH_mechanic_netgen.py.

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

Definition at line 71 of file SMESH_mechanic_netgen.py.

Definition at line 64 of file SMESH_mechanic_netgen.py.

tuple SMESH_mechanic_netgen.wire1 = geompy.MakeWire( List1 )

Definition at line 60 of file SMESH_mechanic_netgen.py.