Package GEOM_moteur


Variables

tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
int PosX = 0
int PosY = 0
int PosZ = 0
int NbBranches = 7
int HauteurT = 70
int Angle1 = 2
int Angle2 = 1
int HauteurR = 3
int Ep = 10
int DExtExt = 6
 DExtInt = DExtExt-Ep
int DIntExt = 3
int DIntInt = 4
tuple EpRot = DIntExt*math.sin(Angle2)
tuple Pos1C = PosX+DIntExt*math.cos(Angle2)
tuple Pos1S = PosY+DIntExt*math.sin(Angle2)
int PosCour = 4
float PosRot = 0.9
tuple BasicOp = geom.GetIBasicOperations(salome.myStudyId)
tuple OO = BasicOp.MakePointXYZ(0, 0, 0)
tuple P0 = BasicOp.MakePointXYZ(0, 0, 1)
tuple P1 = BasicOp.MakePointXYZ(PosX, PosY, PosZ)
tuple P2 = BasicOp.MakePointXYZ(PosX, PosY, PosZ + Ep)
tuple P3 = BasicOp.MakePointXYZ(PosX, PosY, PosCour)
tuple P4 = BasicOp.MakePointXYZ(PosX, PosY, PosCour + Ep)
tuple P5 = BasicOp.MakePointXYZ(PosX, PosY, PosRot)
tuple P6 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ)
tuple P7 = BasicOp.MakePointXYZ(PosX + DExtExt, Pos1S, PosZ)
tuple P8 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ + HauteurT)
tuple V1 = BasicOp.MakeVectorTwoPnt(OO,P0)
tuple V2 = BasicOp.MakeVectorTwoPnt(P1,P2)
tuple V3 = BasicOp.MakeVectorTwoPnt(P6,P8)
tuple C0 = geompy.MakeCylinder(P1, V1, DIntInt, PosCour + Ep - PosZ)
tuple C01 = geompy.MakeCylinder(P1, V1, DIntExt, PosCour + Ep - PosZ)
tuple Cylindre = geompy.MakeBoolean(C01, C0, 2)
tuple B1 = BasicOp.MakeVectorTwoPnt(P6, P7)
tuple B2 = geompy.MakePrismVecH(B1, V1, HauteurT)
tuple S0 = geompy.MakeRevolution(B2, V3, Angle1)
list CoupeList = []
int Ind = 1
tuple S = geompy.MakeRotation(S0, V2, Ind * Angle1)
int Ind = 1
tuple Coupe1 = geompy.MakeCompound(CoupeList)
tuple C1 = geompy.MakeCylinder(P1, V1, DExtExt, HauteurT)
tuple C2 = geompy.MakeCylinder(P2, V1, DExtInt, HauteurT)
tuple C3 = geompy.MakeBoolean(C1, C2, 2)
tuple C31 = geompy.MakeBoolean(C3, C0, 2)
tuple Couronne1 = geompy.MakeBoolean(C31, Coupe1, 2)
tuple C4 = geompy.MakeCylinder(P3, V1, DExtExt, PosZ + HauteurT - PosCour)
tuple C5 = geompy.MakeCylinder(P4, V1, DExtInt, HauteurT)
tuple Coupe2 = geompy.MakeRotation(Coupe1, V2, Angle2)
tuple C6 = geompy.MakeBoolean(C4, C5, 2)
tuple C61 = geompy.MakeBoolean(C6, C0, 2)
tuple Couronne2 = geompy.MakeBoolean(C61, Coupe2, 2)
tuple C9 = geompy.MakeCylinder(P5, V1, DIntExt, HauteurR)
tuple C10 = geompy.MakeCylinder(P5, V1, DIntExt / 4, 2 * HauteurR)
list Rotor1List = []
tuple Rotor1 = geompy.MakeCompound(Rotor1List)
tuple Id_Rotor1 = geompy.addToStudy(Rotor1, "Rotor1")
tuple D0 = geompy.MakeBox(2 * Pos1C - PosX, -Pos1S + 2 * PosY, PosRot, 2 * Pos1C + EpRot - PosX, Pos1S, PosRot + EpRot / 2)
list Rotor2List = []
int Ind = 1
tuple R = geompy.MakeRotation(D0, V2, Ind * Angle1)
int Ind = 1
tuple Rotor2 = geompy.MakeCompound(Rotor2List)
tuple Id_Rotor2 = geompy.addToStudy(Rotor2, "Rotor2")
tuple Rotor3 = geompy.MakeRotation(Rotor2, V2, Angle2)
tuple Id_Rotor3 = geompy.addToStudy(Rotor3, "Rotor3")
list StatorList = []
tuple Stator = geompy.MakeCompound(StatorList)
tuple Id_Stator = geompy.addToStudy(Stator, "Stator")
tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
int PosX = 0
int PosY = 0
int PosZ = 0
int NbBranches = 7
int HauteurT = 70
int Angle1 = 2
int Angle2 = 1
int HauteurR = 3
int Ep = 10
int DExtExt = 6
 DExtInt = DExtExt-Ep
int DIntExt = 3
int DIntInt = 4
tuple EpRot = DIntExt*math.sin(Angle2)
tuple Pos1C = PosX+DIntExt*math.cos(Angle2)
tuple Pos1S = PosY+DIntExt*math.sin(Angle2)
int PosCour = 4
float PosRot = 0.9
tuple BasicOp = geom.GetIBasicOperations(salome.myStudyId)
tuple OO = BasicOp.MakePointXYZ(0, 0, 0)
tuple P0 = BasicOp.MakePointXYZ(0, 0, 1)
tuple P1 = BasicOp.MakePointXYZ(PosX, PosY, PosZ)
tuple P2 = BasicOp.MakePointXYZ(PosX, PosY, PosZ + Ep)
tuple P3 = BasicOp.MakePointXYZ(PosX, PosY, PosCour)
tuple P4 = BasicOp.MakePointXYZ(PosX, PosY, PosCour + Ep)
tuple P5 = BasicOp.MakePointXYZ(PosX, PosY, PosRot)
tuple P6 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ)
tuple P7 = BasicOp.MakePointXYZ(PosX + DExtExt, Pos1S, PosZ)
tuple P8 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ + HauteurT)
tuple V1 = BasicOp.MakeVectorTwoPnt(OO,P0)
tuple V2 = BasicOp.MakeVectorTwoPnt(P1,P2)
tuple V3 = BasicOp.MakeVectorTwoPnt(P6,P8)
tuple C0 = geompy.MakeCylinder(P1, V1, DIntInt, PosCour + Ep - PosZ)
tuple C01 = geompy.MakeCylinder(P1, V1, DIntExt, PosCour + Ep - PosZ)
tuple Cylindre = geompy.MakeBoolean(C01, C0, 2)
tuple B1 = BasicOp.MakeVectorTwoPnt(P6, P7)
tuple B2 = geompy.MakePrismVecH(B1, V1, HauteurT)
tuple S0 = geompy.MakeRevolution(B2, V3, Angle1)
list CoupeList = []
int Ind = 1
tuple S = geompy.MakeRotation(S0, V2, Ind * Angle1)
int Ind = 1
tuple Coupe1 = geompy.MakeCompound(CoupeList)
tuple C1 = geompy.MakeCylinder(P1, V1, DExtExt, HauteurT)
tuple C2 = geompy.MakeCylinder(P2, V1, DExtInt, HauteurT)
tuple C3 = geompy.MakeBoolean(C1, C2, 2)
tuple C31 = geompy.MakeBoolean(C3, C0, 2)
tuple Couronne1 = geompy.MakeBoolean(C31, Coupe1, 2)
tuple C4 = geompy.MakeCylinder(P3, V1, DExtExt, PosZ + HauteurT - PosCour)
tuple C5 = geompy.MakeCylinder(P4, V1, DExtInt, HauteurT)
tuple Coupe2 = geompy.MakeRotation(Coupe1, V2, Angle2)
tuple C6 = geompy.MakeBoolean(C4, C5, 2)
tuple C61 = geompy.MakeBoolean(C6, C0, 2)
tuple Couronne2 = geompy.MakeBoolean(C61, Coupe2, 2)
tuple C9 = geompy.MakeCylinder(P5, V1, DIntExt, HauteurR)
tuple C10 = geompy.MakeCylinder(P5, V1, DIntExt / 4, 2 * HauteurR)
list Rotor1List = []
tuple Rotor1 = geompy.MakeCompound(Rotor1List)
tuple Id_Rotor1 = geompy.addToStudy(Rotor1, "Rotor1")
tuple D0 = geompy.MakeBox(2 * Pos1C - PosX, -Pos1S + 2 * PosY, PosRot, 2 * Pos1C + EpRot - PosX, Pos1S, PosRot + EpRot / 2)
list Rotor2List = []
int Ind = 1
tuple R = geompy.MakeRotation(D0, V2, Ind * Angle1)
int Ind = 1
tuple Rotor2 = geompy.MakeCompound(Rotor2List)
tuple Id_Rotor2 = geompy.addToStudy(Rotor2, "Rotor2")
tuple Rotor3 = geompy.MakeRotation(Rotor2, V2, Angle2)
tuple Id_Rotor3 = geompy.addToStudy(Rotor3, "Rotor3")
list StatorList = []
tuple Stator = geompy.MakeCompound(StatorList)
tuple Id_Stator = geompy.addToStudy(Stator, "Stator")


Variable Documentation

tuple GEOM_moteur.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple GEOM_moteur.myBuilder = salome.myStudy.NewBuilder() [static]
 

int GEOM_moteur.PosX = 0 [static]
 

int GEOM_moteur.PosY = 0 [static]
 

int GEOM_moteur.PosZ = 0 [static]
 

int GEOM_moteur.NbBranches = 7 [static]
 

int GEOM_moteur.HauteurT = 70 [static]
 

int GEOM_moteur.Angle1 = 2 [static]
 

int GEOM_moteur.Angle2 = 1 [static]
 

int GEOM_moteur.HauteurR = 3 [static]
 

int GEOM_moteur.Ep = 10 [static]
 

int GEOM_moteur.DExtExt = 6 [static]
 

GEOM_moteur.DExtInt = DExtExt-Ep [static]
 

int GEOM_moteur.DIntExt = 3 [static]
 

int GEOM_moteur.DIntInt = 4 [static]
 

tuple GEOM_moteur.EpRot = DIntExt*math.sin(Angle2) [static]
 

tuple GEOM_moteur.Pos1C = PosX+DIntExt*math.cos(Angle2) [static]
 

tuple GEOM_moteur.Pos1S = PosY+DIntExt*math.sin(Angle2) [static]
 

int GEOM_moteur.PosCour = 4 [static]
 

float GEOM_moteur.PosRot = 0.9 [static]
 

tuple GEOM_moteur.BasicOp = geom.GetIBasicOperations(salome.myStudyId) [static]
 

tuple GEOM_moteur.OO = BasicOp.MakePointXYZ(0, 0, 0) [static]
 

tuple GEOM_moteur.P0 = BasicOp.MakePointXYZ(0, 0, 1) [static]
 

tuple GEOM_moteur.P1 = BasicOp.MakePointXYZ(PosX, PosY, PosZ) [static]
 

tuple GEOM_moteur.P2 = BasicOp.MakePointXYZ(PosX, PosY, PosZ + Ep) [static]
 

tuple GEOM_moteur.P3 = BasicOp.MakePointXYZ(PosX, PosY, PosCour) [static]
 

tuple GEOM_moteur.P4 = BasicOp.MakePointXYZ(PosX, PosY, PosCour + Ep) [static]
 

tuple GEOM_moteur.P5 = BasicOp.MakePointXYZ(PosX, PosY, PosRot) [static]
 

tuple GEOM_moteur.P6 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ) [static]
 

tuple GEOM_moteur.P7 = BasicOp.MakePointXYZ(PosX + DExtExt, Pos1S, PosZ) [static]
 

tuple GEOM_moteur.P8 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ + HauteurT) [static]
 

tuple GEOM_moteur.V1 = BasicOp.MakeVectorTwoPnt(OO,P0) [static]
 

tuple GEOM_moteur.V2 = BasicOp.MakeVectorTwoPnt(P1,P2) [static]
 

tuple GEOM_moteur.V3 = BasicOp.MakeVectorTwoPnt(P6,P8) [static]
 

tuple GEOM_moteur.C0 = geompy.MakeCylinder(P1, V1, DIntInt, PosCour + Ep - PosZ) [static]
 

tuple GEOM_moteur.C01 = geompy.MakeCylinder(P1, V1, DIntExt, PosCour + Ep - PosZ) [static]
 

tuple GEOM_moteur.Cylindre = geompy.MakeBoolean(C01, C0, 2) [static]
 

tuple GEOM_moteur.B1 = BasicOp.MakeVectorTwoPnt(P6, P7) [static]
 

tuple GEOM_moteur.B2 = geompy.MakePrismVecH(B1, V1, HauteurT) [static]
 

tuple GEOM_moteur.S0 = geompy.MakeRevolution(B2, V3, Angle1) [static]
 

list GEOM_moteur.CoupeList = [] [static]
 

int GEOM_moteur.Ind = 1 [static]
 

tuple GEOM_moteur.S = geompy.MakeRotation(S0, V2, Ind * Angle1) [static]
 

int GEOM_moteur.Ind = 1 [static]
 

tuple GEOM_moteur.Coupe1 = geompy.MakeCompound(CoupeList) [static]
 

tuple GEOM_moteur.C1 = geompy.MakeCylinder(P1, V1, DExtExt, HauteurT) [static]
 

tuple GEOM_moteur.C2 = geompy.MakeCylinder(P2, V1, DExtInt, HauteurT) [static]
 

tuple GEOM_moteur.C3 = geompy.MakeBoolean(C1, C2, 2) [static]
 

tuple GEOM_moteur.C31 = geompy.MakeBoolean(C3, C0, 2) [static]
 

tuple GEOM_moteur.Couronne1 = geompy.MakeBoolean(C31, Coupe1, 2) [static]
 

tuple GEOM_moteur.C4 = geompy.MakeCylinder(P3, V1, DExtExt, PosZ + HauteurT - PosCour) [static]
 

tuple GEOM_moteur.C5 = geompy.MakeCylinder(P4, V1, DExtInt, HauteurT) [static]
 

tuple GEOM_moteur.Coupe2 = geompy.MakeRotation(Coupe1, V2, Angle2) [static]
 

tuple GEOM_moteur.C6 = geompy.MakeBoolean(C4, C5, 2) [static]
 

tuple GEOM_moteur.C61 = geompy.MakeBoolean(C6, C0, 2) [static]
 

tuple GEOM_moteur.Couronne2 = geompy.MakeBoolean(C61, Coupe2, 2) [static]
 

tuple GEOM_moteur.C9 = geompy.MakeCylinder(P5, V1, DIntExt, HauteurR) [static]
 

tuple GEOM_moteur.C10 = geompy.MakeCylinder(P5, V1, DIntExt / 4, 2 * HauteurR) [static]
 

list GEOM_moteur.Rotor1List = [] [static]
 

tuple GEOM_moteur.Rotor1 = geompy.MakeCompound(Rotor1List) [static]
 

tuple GEOM_moteur.Id_Rotor1 = geompy.addToStudy(Rotor1, "Rotor1") [static]
 

tuple GEOM_moteur.D0 = geompy.MakeBox(2 * Pos1C - PosX, -Pos1S + 2 * PosY, PosRot, 2 * Pos1C + EpRot - PosX, Pos1S, PosRot + EpRot / 2) [static]
 

list GEOM_moteur.Rotor2List = [] [static]
 

int GEOM_moteur.Ind = 1 [static]
 

tuple GEOM_moteur.R = geompy.MakeRotation(D0, V2, Ind * Angle1) [static]
 

int GEOM_moteur.Ind = 1 [static]
 

tuple GEOM_moteur.Rotor2 = geompy.MakeCompound(Rotor2List) [static]
 

tuple GEOM_moteur.Id_Rotor2 = geompy.addToStudy(Rotor2, "Rotor2") [static]
 

tuple GEOM_moteur.Rotor3 = geompy.MakeRotation(Rotor2, V2, Angle2) [static]
 

tuple GEOM_moteur.Id_Rotor3 = geompy.addToStudy(Rotor3, "Rotor3") [static]
 

list GEOM_moteur.StatorList = [] [static]
 

tuple GEOM_moteur.Stator = geompy.MakeCompound(StatorList) [static]
 

tuple GEOM_moteur.Id_Stator = geompy.addToStudy(Stator, "Stator") [static]
 

tuple GEOM_moteur.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple GEOM_moteur.myBuilder = salome.myStudy.NewBuilder() [static]
 

int GEOM_moteur.PosX = 0 [static]
 

int GEOM_moteur.PosY = 0 [static]
 

int GEOM_moteur.PosZ = 0 [static]
 

int GEOM_moteur.NbBranches = 7 [static]
 

int GEOM_moteur.HauteurT = 70 [static]