Package ex19_sphereINcube


Variables

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


Variable Documentation

int ex19_sphereINcube.sphere_rayon = 100 [static]
 

int ex19_sphereINcube.cube_cote = 200 [static]
 

int ex19_sphereINcube.plan_trim = 1000 [static]
 

tuple ex19_sphereINcube.sphere_centre = MakeVertex(0, 0, 0) [static]
 

tuple ex19_sphereINcube.sphere_pleine = MakeSpherePntR(sphere_centre, sphere_rayon) [static]
 

int ex19_sphereINcube.boite_cote = 2 [static]
 

tuple ex19_sphereINcube.boite = MakeBox(-boite_cote, -boite_cote, -boite_cote, +boite_cote, +boite_cote, +boite_cote) [static]
 

list ex19_sphereINcube.blocs = [boite] [static]
 

tuple ex19_sphereINcube.sphere_troue = MakeCut(sphere_pleine, boite) [static]
 

list ex19_sphereINcube.sphere_outils = [] [static]
 

tuple ex19_sphereINcube.sphere_decoupee = MakePartition([sphere_troue], sphere_outils, [], [], ShapeType["SOLID"]) [static]
 

tuple ex19_sphereINcube.sphere_partie = GetBlockNearPoint(sphere_decoupee, MakeVertex(-sphere_rayon, 0, 0)) [static]
 

tuple ex19_sphereINcube.sphere_bloc = RemoveExtraEdges(sphere_partie) [static]
 

float ex19_sphereINcube.pi2 = 3.141592653 [static]
 

tuple ex19_sphereINcube.sphere_dir1 = MakeVectorDXDYDZ(0, 1, 0) [static]
 

tuple ex19_sphereINcube.sphere_dir2 = MakeVectorDXDYDZ(0, 0, 1) [static]
 

tuple ex19_sphereINcube.cube_plein = MakeBox(-cube_cote, -cube_cote, -cube_cote, +cube_cote, +cube_cote, +cube_cote) [static]
 

tuple ex19_sphereINcube.cube_trou = MakeCut(cube_plein, sphere_pleine) [static]
 

tuple ex19_sphereINcube.cube_decoupe = MakePartition([cube_trou], sphere_outils, [], [], ShapeType["SOLID"]) [static]
 

tuple ex19_sphereINcube.cube_partie = GetBlockNearPoint(cube_decoupe, MakeVertex(-cube_cote, 0, 0)) [static]
 

tuple ex19_sphereINcube.cube_bloc = RemoveExtraEdges(cube_partie) [static]
 

tuple ex19_sphereINcube.piece_cpd = MakeCompound(blocs) [static]
 

tuple ex19_sphereINcube.piece = MakeGlueFaces(piece_cpd, 1.e-3) [static]
 

tuple ex19_sphereINcube.piece_id = addToStudy(piece, "ex19_sphereINcube") [static]
 

tuple ex19_sphereINcube.groupe = CreateGroup(piece, ShapeType["SOLID"]) [static]
 

string ex19_sphereINcube.groupe_nom = "ex19_sphereINcube_interieur" [static]
 

tuple ex19_sphereINcube.groupe_sphere = GetShapesOnSphere(piece, ShapeType["SOLID"], sphere_centre, sphere_rayon, GEOM.ST_ONIN) [static]
 

tuple ex19_sphereINcube.hexa = smesh.Mesh(piece, "ex19_sphereINcube:hexa") [static]
 

tuple ex19_sphereINcube.algo = hexa.Segment() [static]
 

tuple ex19_sphereINcube.hexa_groupe = hexa.Group(groupe) [static]