/hello, I don't understand where is the mystake ./
/on my computer this file make an white circle ...
the mystake is in module "affichage"/
/My apologise for my porr english language./
/for your information it's a design for ETX 125 telescope./
DiamOTA =127;
visserie ="Y";//[Y: Présentation visserie fixation, N: pas d'affichage]
VueGenerale ="Y";//[Y: Présentation générale , N: pas d'affichage]
reparation ="Y"; //[Y: Présentation réparation , N: pas d'affichage]
// écartement
dec=1;//[1:5:30]
module tube ()
{
color ("Purple")
translate ([0,DiamOTA/2,0])
cylinder (r=DiamOTA/2, h=DiamOTA2,$fn=60);
// couvercle aliminium du tube
color ("Azure")
translate ([0,DiamOTA/2,1+DiamOTA2])
cylinder (r=DiamOTA/2, h=3,$fn=60);
}
//end of tube ();
module coqueBras ()
{
color ("LightBlue")
minkowski ()
{
$fn=120;
union ()
{
translate ([0,8,75 ])
cube ([50-10,30,70], center=true);
translate ([0,8,105 ])
rotate ([90,0,0])
cylinder (r=DiamOTA/5, h=50,$fn=120,center=true);
}
sphere (5);
}
}
//ContreCoqueBras ();
module ContreCoqueBras ()
{
color ("SkyBlue")
union ()
{
translate ([0,8,75 ])
cube ([50-4,30,75], center=true);
translate ([0,-1,105 ])
rotate ([90,0,0])
cylinder (r=(DiamOTA/5)+3, h=35,$fn=120,center=true);
}
}
module affichage ()
{difference ()
{
coqueBras ();
union ()
{
ContreCoqueBras ();
alesage () ;
tube();
}
}
difference () {
color ("red")
ContreAlesage ();
alesage () ;
}
if (VueGenerale =="Y")
{
translate ([0,DiamOTA,0])
rotate ([0,0,180])
mirror ([1,0,0])
{
difference ()
{
coqueBras ();
union ()
{
ContreCoqueBras ();
alesage () ;
tube();
}
}
difference ()
{
color ("red")
ContreAlesage ();
alesage () ;
}
}
tube ();
}
}
affichage () ;