discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: mistake

D
dpa
Thu, Oct 28, 2021 8:40 AM

there was no definition for ContreAlesage() and alesage(). So I commented
this out.

Then I found that you drive "minkowski()", with $fn=120 which is pretty
much (regarding the extremely expensive algorithm). I got initially (on
macOS) a never ending spinning ball. I reduced it to $fn=20 and then it
(attached) worked like that:
[image: Bildschirmfoto 2021-10-28 um 10.34.27.png]

Am Do., 28. Okt. 2021 um 09:56 Uhr schrieb André Lefranc via Discuss <
discuss@lists.openscad.org>:

---------- Forwarded message ----------
From: "André Lefranc" a.lefranc@laposte.net
To: OpenSCAD general discussion Discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 28 Oct 2021 09:55:48 +0200
Subject: [OpenSCAD] mistake

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+DiamOTA
2])
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 () ;

---------- Forwarded message ----------
From: "André Lefranc via Discuss" discuss@lists.openscad.org
To: OpenSCAD general discussion Discuss@lists.openscad.org
Cc: "André Lefranc" a.lefranc@laposte.net
Bcc:
Date: Thu, 28 Oct 2021 09:55:48 +0200
Subject: [OpenSCAD] mistake


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

there was no definition for ContreAlesage() and alesage(). So I commented this out. Then I found that you drive "minkowski()", with $fn=120 which is pretty much (regarding the extremely expensive algorithm). I got initially (on macOS) a never ending spinning ball. I reduced it to $fn=20 and then it (attached) worked like that: [image: Bildschirmfoto 2021-10-28 um 10.34.27.png] Am Do., 28. Okt. 2021 um 09:56 Uhr schrieb André Lefranc via Discuss < discuss@lists.openscad.org>: > > > > ---------- Forwarded message ---------- > From: "André Lefranc" <a.lefranc@laposte.net> > To: OpenSCAD general discussion <Discuss@lists.openscad.org> > Cc: > Bcc: > Date: Thu, 28 Oct 2021 09:55:48 +0200 > Subject: [OpenSCAD] mistake > > *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=DiamOTA*2,$fn=60); > // couvercle aliminium du tube > color ("Azure") > translate ([0,DiamOTA/2,1+DiamOTA*2]) > 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 () ; > > > > ---------- Forwarded message ---------- > From: "André Lefranc via Discuss" <discuss@lists.openscad.org> > To: OpenSCAD general discussion <Discuss@lists.openscad.org> > Cc: "André Lefranc" <a.lefranc@laposte.net> > Bcc: > Date: Thu, 28 Oct 2021 09:55:48 +0200 > Subject: [OpenSCAD] mistake > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
AL
André Lefranc
Thu, Oct 28, 2021 8:56 AM

Thanks,  $fn=20; is good idea to have a speed vision..

if you get an screen, whithout visserie, vue générale, réparation  (
all= "N")

you can have a better view of mystake...

Le 28/10/2021 à 10:40, dpa a écrit :

there was no definition for ContreAlesage() and alesage(). So I
commented this out.

Then I found that you drive "minkowski()", with $fn=120 which is
pretty much (regarding the extremely expensive algorithm). I got
initially (on macOS) a never ending spinning ball. I reduced it to
$fn=20 and then it (attached) worked like that:
Bildschirmfoto 2021-10-28 um 10.34.27.png

Am Do., 28. Okt. 2021 um 09:56 Uhr schrieb André Lefranc via Discuss
discuss@lists.openscad.org:

 ---------- Forwarded message ----------
 From: "André Lefranc" <a.lefranc@laposte.net>
 To: OpenSCAD general discussion <Discuss@lists.openscad.org>
 Cc:
 Bcc:
 Date: Thu, 28 Oct 2021 09:55:48 +0200
 Subject: [OpenSCAD] mistake

 /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=DiamOTA*2,$fn=60);
 // couvercle aliminium du tube
     color ("Azure")
 translate ([0,DiamOTA/2,1+DiamOTA*2])
 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 () ;




 ---------- Forwarded message ----------
 From: "André Lefranc via Discuss" <discuss@lists.openscad.org>
 To: OpenSCAD general discussion <Discuss@lists.openscad.org>
 Cc: "André Lefranc" <a.lefranc@laposte.net>
 Bcc:
 Date: Thu, 28 Oct 2021 09:55:48 +0200
 Subject: [OpenSCAD] mistake
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Thanks,  $fn=20; is good idea to have a speed vision.. if you get an screen, whithout visserie, vue générale, réparation  ( all= "N") you can have a better view of mystake... Le 28/10/2021 à 10:40, dpa a écrit : > there was no definition for ContreAlesage() and alesage(). So I > commented this out. > > Then I found that you drive "minkowski()", with $fn=120 which is > pretty much (regarding the extremely expensive algorithm). I got > initially (on macOS) a never ending spinning ball. I reduced it to > $fn=20 and then it (attached) worked like that: > Bildschirmfoto 2021-10-28 um 10.34.27.png > > Am Do., 28. Okt. 2021 um 09:56 Uhr schrieb André Lefranc via Discuss > <discuss@lists.openscad.org>: > > > > > ---------- Forwarded message ---------- > From: "André Lefranc" <a.lefranc@laposte.net> > To: OpenSCAD general discussion <Discuss@lists.openscad.org> > Cc: > Bcc: > Date: Thu, 28 Oct 2021 09:55:48 +0200 > Subject: [OpenSCAD] mistake > > /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=DiamOTA*2,$fn=60); > // couvercle aliminium du tube >     color ("Azure") > translate ([0,DiamOTA/2,1+DiamOTA*2]) > 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 () ; > > > > > ---------- Forwarded message ---------- > From: "André Lefranc via Discuss" <discuss@lists.openscad.org> > To: OpenSCAD general discussion <Discuss@lists.openscad.org> > Cc: "André Lefranc" <a.lefranc@laposte.net> > Bcc: > Date: Thu, 28 Oct 2021 09:55:48 +0200 > Subject: [OpenSCAD] mistake > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org