Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex19_sphereINcube

Variables

int ex19_sphereINcube.sphere_rayon = 100
int ex19_sphereINcube.cube_cote = 200
int ex19_sphereINcube.plan_trim = 1000
tuple ex19_sphereINcube.sphere_centre = MakeVertex(0, 0, 0)
tuple ex19_sphereINcube.sphere_pleine = MakeSpherePntR(sphere_centre, sphere_rayon)
int ex19_sphereINcube.boite_cote = 2
tuple ex19_sphereINcube.boite = MakeBox(-boite_cote, -boite_cote, -boite_cote, +boite_cote, +boite_cote, +boite_cote)
list ex19_sphereINcube.blocs = [boite]
tuple ex19_sphereINcube.sphere_troue = MakeCut(sphere_pleine, boite)
tuple ex19_sphereINcube.f1 = MakePlane(sphere_centre, MakeVectorDXDYDZ( 1, 0, 1), plan_trim)
tuple ex19_sphereINcube.f2 = MakePlane(sphere_centre, MakeVectorDXDYDZ(-1, 1, 0), plan_trim)
tuple ex19_sphereINcube.f3 = MakePlane(sphere_centre, MakeVectorDXDYDZ( 1, 1, 0), plan_trim)
tuple ex19_sphereINcube.f4 = MakePlane(sphere_centre, MakeVectorDXDYDZ( 1, 0, -1), plan_trim)
tuple ex19_sphereINcube.sphere_decoupee = MakePartition([sphere_troue], [f1], [], [], ShapeType["SOLID"])
tuple ex19_sphereINcube.sphere_partie = geompy.MakeCompound([sphere_decoupee])
tuple ex19_sphereINcube.sphere_bloc = RemoveExtraEdges(sphere_partie)
float ex19_sphereINcube.pi2 = 3.141592653
tuple ex19_sphereINcube.sphere_dir1 = MakeVectorDXDYDZ(0, 1, 0)
tuple ex19_sphereINcube.sphere_dir2 = MakeVectorDXDYDZ(0, 0, 1)
tuple ex19_sphereINcube.cube_plein = MakeBox(-cube_cote, -cube_cote, -cube_cote, +cube_cote, +cube_cote, +cube_cote)
tuple ex19_sphereINcube.cube_trou = MakeCut(cube_plein, sphere_pleine)
tuple ex19_sphereINcube.cube_decoupe = MakePartition([cube_trou], [f1], [], [], ShapeType["SOLID"])
tuple ex19_sphereINcube.cube_partie = GetBlockNearPoint(cube_decoupe, MakeVertex(-cube_cote, 0, 0))
tuple ex19_sphereINcube.cube_bloc = RemoveExtraEdges(cube_partie)
tuple ex19_sphereINcube.piece_cpd = MakeCompound(blocs)
tuple ex19_sphereINcube.piece = MakeGlueFaces(piece_cpd, 1.e-3)
tuple ex19_sphereINcube.piece_id = addToStudy(piece, "ex19_sphereINcube")
tuple ex19_sphereINcube.groupe = CreateGroup(piece, ShapeType["SOLID"])
string ex19_sphereINcube.groupe_nom = "ex19_sphereINcube_interieur"
tuple ex19_sphereINcube.groupe_sphere = GetShapesOnSphere(piece, ShapeType["SOLID"], sphere_centre, sphere_rayon, GEOM.ST_ONIN)
tuple ex19_sphereINcube.hexa = smesh.Mesh(piece, "ex19_sphereINcube:hexa")
tuple ex19_sphereINcube.algo = hexa.Segment()
tuple ex19_sphereINcube.hexa_groupe = hexa.Group(groupe)