discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Export Stl. File module

RP
Ronaldo Persiano
Mon, Jan 2, 2017 8:33 PM

Would you please give us a small piece of code you believe it is executed
upside down?

2017-01-02 18:27 GMT-02:00 Marijan Pollak oberonmp@gmail.com:

Dear Coleague,  So, my logic was correct in case of program execution,
so IMHO it would be more practicall that programmer write same way as
program execute. This way fewer mistakes would be made.
Also Imaga is Variable, not constant. it means "it is there" or "Object
exist"
and signal that there is file to be Imported and all previous work on
generating
Object can be skipped. Time saved is enormous, specially with very complex
objects.
Since program execute oposite then it is written, I concluded I would have
to
write code converter to be able to follow standard logic of programming.
It would  be easier if someone change this so people drawing the Objects
would not have to adjust to way program generates Objects.
Programming is invented so they can help Programmers to write correct code
NOT that programmers should help Computer to do it upside down.
I do not know how such bug was not noted and made right.
that is Microsoft style of Programming and logic. "It is not a Bug, it is
a FEATURE"?

On Sun, Jan 1, 2017 at 7:18 PM, nophead [via OpenSCAD] <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19851&i=0> wrote:

Firstly statements are not executed as such. They build a tree structure
of geometric primitives and boolean operations. The boolean operations can
be done in any order as long as the operands (which are lower branches in
the tree) have been computed first. So yes things on the right are lower
nodes on the tree and must be computed first. And yes, compound statements
like union() that can span many lines will compute all the things lower in
the tree before the union is computed.

Secondly, OpenSCAD has lexical scope, very much the same as C, so a
variable (which are actually named constants) defined in one module cannot
be accessed in a another. But you can define constants at file level scope,
so if you move imaga=1 outside the Cuts module it will be accessible in
osnova. Or you can declare it as a parameter of osnova and pass it each
time you call it.

On 1 January 2017 at 17:25, Marijan Pollak <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=0> wrote:

Hi, I did not know the difference exist. It may be true that it is
parsed top to bottom, but somehow I
found that what is on the bottom of Module is executed first, then line
up and each line is executed right to left.
There is Example:
module Cuts(){

imaga=1      // Last of all , program is notified that file exist and
need not to be drawn again

//Here cut object has to be exported

;

angleMaleCut(cut = yCut1);    // Then male cut is made

angleMaleCut(cut = yCut2);

angleMaleCut(cut = yCut3);

translate ([0,0,0]);                    // It is aligned to center line

osnova();                                  // again clone or duplicate
is imported or drawn

angleFemaleCut(cut = yCut1); // then female cuts are made

angleFemaleCut(cut = yCut2);

angleFemaleCut(cut = yCut3);

translate ([-15,0,0]);                  // It is then moved  15mm on
Xcoordinate

Rotate (0,120,0,);                    // Second, iti s rotated in y
on horizontal plane

osnova();                                  // First, .stl file is
Imported  or drawn

}

//

module osnova()

{//"scadturbine.stl

echo("Object to cut=",objekt, "ima =", imaga);

if(imaga == 0){drawObject();}

else {import(objekt);}

}

in case there is more then one instruction on one line, they are
executed rightmost first

then left neigbour  one by one .

That is consistent with bottom to top execution.

I shall check again by puting some ECHO commands

However, since Imaga =1; is first command If program would work normal
way,

then ECHO would not report Zero in module osnova.

Ups!

.It seems that variables from program were not passed to Module unless
explicitely mentioned in Module

Parameter lists,which means I cannot change value in Module to be
generally available at new state?

Maxbe those multiple instractions were permutable without change of
result?

So how to do it? must put imaga = imaga, in Module parameter list?

Or something else?

Sincerely, Marijan Pollak

On Sun, Jan 1, 2017 at 3:37 PM, nop head <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=1> wrote:

Note this is OpenSCAD. Open SCADA is a different, unrelated, project.

I also wonder why is everything in this programming script upside down

and rightside left.

I don't know what you mean. The Syntax and layout are similar to C and
is parsed top to bottom, left to right.

Was this originally made by Chinese?

No, Austrians.

On 1 January 2017 at 08:07, Marijan Pollak <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=2> wrote:

Hello colagues, I noted there is no way to Export .stl file except by
hand,
while Import is working. IMHO, it should be easy to make new Module
ExportStl() by finding same function in Editor. Since I am New to Open
Scada, can some seasoned SCADA programmer do it?
I also wonder why is everything in this programming script upside down
and
rightside left
as compared to other Programming Languages? Was this originally made by
Chinese?
If I have time I would turn this to normal, as well as make it faster,
this
seems awfully slow
for just few simple Objects added or subtracted one from another.
I really need such parametric 3D drawing program as in 3D Max I cannot
position things precisely by hand. I am inventor whose inventions
would save
the World, so by helping me You would help Yourself also.
What I am trying to do at moment is to find way to cut large objects
symetrically like by Puzzlecut, to be able to 3D print pieces of large
objects on small 3D printer, I.E. 25 x 25 cm
pieces of 100 cm diameter objects. I tried to attach the picture here
but
script hanged up, so this time I would try to do it separately....
Thanks in advance and I wish You all Healthy, Happy anf Prosperous
2017!

--
View this message in context: http://forum.openscad.org/Expo
rt-Stl-File-module-tp19829.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=19834&i=3
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Regards from Croatia, the Homeland of one of greatest inventors from
19th and 20th Centuries, Engineer Nikola Tesla!


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=19834&i=5
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!


View this message in context: Re: Export Stl. File module
http://forum.openscad.org/Export-Stl-File-module-tp19829p19851.html
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Would you please give us a small piece of code you believe it is executed upside down? 2017-01-02 18:27 GMT-02:00 Marijan Pollak <oberonmp@gmail.com>: > Dear Coleague, So, my logic was correct in case of program execution, > so IMHO it would be more practicall that programmer write same way as > program execute. This way fewer mistakes would be made. > Also Imaga is Variable, not constant. it means "it is there" or "Object > exist" > and signal that there is file to be Imported and all previous work on > generating > Object can be skipped. Time saved is enormous, specially with very complex > objects. > Since program execute oposite then it is written, I concluded I would have > to > write code converter to be able to follow standard logic of programming. > It would be easier if someone change this so people drawing the Objects > would not have to adjust to way program generates Objects. > Programming is invented so they can help Programmers to write correct code > NOT that programmers should help Computer to do it upside down. > I do not know how such bug was not noted and made right. > that is Microsoft style of Programming and logic. "It is not a Bug, it is > a FEATURE"? > > On Sun, Jan 1, 2017 at 7:18 PM, nophead [via OpenSCAD] <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=19851&i=0>> wrote: > >> Firstly statements are not executed as such. They build a tree structure >> of geometric primitives and boolean operations. The boolean operations can >> be done in any order as long as the operands (which are lower branches in >> the tree) have been computed first. So yes things on the right are lower >> nodes on the tree and must be computed first. And yes, compound statements >> like union() that can span many lines will compute all the things lower in >> the tree before the union is computed. >> >> Secondly, OpenSCAD has lexical scope, very much the same as C, so a >> variable (which are actually named constants) defined in one module cannot >> be accessed in a another. But you can define constants at file level scope, >> so if you move imaga=1 outside the Cuts module it will be accessible in >> osnova. Or you can declare it as a parameter of osnova and pass it each >> time you call it. >> >> On 1 January 2017 at 17:25, Marijan Pollak <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=19834&i=0>> wrote: >> >>> Hi, I did not know the difference exist. It may be true that it is >>> parsed top to bottom, but somehow I >>> found that what is on the bottom of Module is executed first, then line >>> up and each line is executed right to left. >>> There is Example: >>> module Cuts(){ >>> >>> imaga=1 // Last of all , program is notified that file exist and >>> need not to be drawn again >>> >>> >>> //Here cut object has to be exported >>> >>> ; >>> >>> angleMaleCut(cut = yCut1); // Then male cut is made >>> >>> angleMaleCut(cut = yCut2); >>> >>> angleMaleCut(cut = yCut3); >>> >>> translate ([0,0,0]); // It is aligned to center line >>> >>> osnova(); // again clone or duplicate >>> is imported or drawn >>> >>> angleFemaleCut(cut = yCut1); // then female cuts are made >>> >>> angleFemaleCut(cut = yCut2); >>> >>> angleFemaleCut(cut = yCut3); >>> >>> translate ([-15,0,0]); // It is then moved 15mm on >>> Xcoordinate >>> >>> Rotate (0,120,0,); // Second, iti s rotated in y >>> on horizontal plane >>> >>> osnova(); // First, .stl file is >>> Imported or drawn >>> >>> } >>> >>> // >>> >>> module osnova() >>> >>> {//"scadturbine.stl >>> >>> echo("Object to cut=",objekt, "ima =", imaga); >>> >>> if(imaga == 0){drawObject();} >>> >>> else {import(objekt);} >>> >>> } >>> >>> >>> in case there is more then one instruction on one line, they are >>> executed rightmost first >>> >>> then left neigbour one by one . >>> >>> That is consistent with bottom to top execution. >>> >>> I shall check again by puting some ECHO commands >>> >>> However, since Imaga =1; is first command If program would work normal >>> way, >>> >>> then ECHO would not report Zero in module osnova. >>> >>> Ups! >>> >>> .It seems that variables from program were not passed to Module unless >>> explicitely mentioned in Module >>> >>> Parameter lists,which means I cannot change value in Module to be >>> generally available at new state? >>> >>> Maxbe those multiple instractions were permutable without change of >>> result? >>> >>> So how to do it? must put imaga = imaga, in Module parameter list? >>> >>> Or something else? >>> >>> >>> >>> Sincerely, Marijan Pollak >>> >>> On Sun, Jan 1, 2017 at 3:37 PM, nop head <[hidden email] >>> <http:///user/SendEmail.jtp?type=node&node=19834&i=1>> wrote: >>> >>>> Note this is OpenSCAD. Open SCADA is a different, unrelated, project. >>>> >>>> >I also wonder why is everything in this programming script upside down >>>> and rightside left. >>>> >>>> I don't know what you mean. The Syntax and layout are similar to C and >>>> is parsed top to bottom, left to right. >>>> >>>> >Was this originally made by Chinese? >>>> >>>> No, Austrians. >>>> >>>> On 1 January 2017 at 08:07, Marijan Pollak <[hidden email] >>>> <http:///user/SendEmail.jtp?type=node&node=19834&i=2>> wrote: >>>> >>>>> Hello colagues, I noted there is no way to Export .stl file except by >>>>> hand, >>>>> while Import is working. IMHO, it should be easy to make new Module >>>>> ExportStl() by finding same function in Editor. Since I am New to Open >>>>> Scada, can some seasoned SCADA programmer do it? >>>>> I also wonder why is everything in this programming script upside down >>>>> and >>>>> rightside left >>>>> as compared to other Programming Languages? Was this originally made by >>>>> Chinese? >>>>> If I have time I would turn this to normal, as well as make it faster, >>>>> this >>>>> seems awfully slow >>>>> for just few simple Objects added or subtracted one from another. >>>>> I really need such parametric 3D drawing program as in 3D Max I cannot >>>>> position things precisely by hand. I am inventor whose inventions >>>>> would save >>>>> the World, so by helping me You would help Yourself also. >>>>> What I am trying to do at moment is to find way to cut large objects >>>>> symetrically like by Puzzlecut, to be able to 3D print pieces of large >>>>> objects on small 3D printer, I.E. 25 x 25 cm >>>>> pieces of 100 cm diameter objects. I tried to attach the picture here >>>>> but >>>>> script hanged up, so this time I would try to do it separately.... >>>>> Thanks in advance and I wish You all Healthy, Happy anf Prosperous >>>>> 2017! >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: http://forum.openscad.org/Expo >>>>> rt-Stl-File-module-tp19829.html >>>>> Sent from the OpenSCAD mailing list archive at Nabble.com. >>>>> >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=3> >>>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>>> >>>> >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=4> >>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>> >>>> >>> >>> >>> -- >>> Regards from Croatia, the Homeland of one of greatest inventors from >>> 19th and 20th Centuries, Engineer Nikola Tesla! >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=5> >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=6> >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> http://forum.openscad.org/Export-Stl-File-module-tp19829p19834.html >> To unsubscribe from Export Stl. File module, click here. >> NAML >> <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > -- > Regards from Croatia, the Homeland of one of greatest inventors from 19th > and 20th Centuries, Engineer Nikola Tesla! > > ------------------------------ > View this message in context: Re: Export Stl. File module > <http://forum.openscad.org/Export-Stl-File-module-tp19829p19851.html> > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
NH
nop head
Mon, Jan 2, 2017 8:37 PM

There is a large community of OpenSCAD users that have been using it for
many years and nobody but you thinks it is upside down.

There are no variables in OpenSCAD, just named constants, because it is a
language to describe an object and a description does not change over time.

On 2 January 2017 at 20:27, Marijan Pollak oberonmp@gmail.com wrote:

Dear Coleague,  So, my logic was correct in case of program execution,
so IMHO it would be more practicall that programmer write same way as
program execute. This way fewer mistakes would be made.
Also Imaga is Variable, not constant. it means "it is there" or "Object
exist"
and signal that there is file to be Imported and all previous work on
generating
Object can be skipped. Time saved is enormous, specially with very complex
objects.
Since program execute oposite then it is written, I concluded I would have
to
write code converter to be able to follow standard logic of programming.
It would  be easier if someone change this so people drawing the Objects
would not have to adjust to way program generates Objects.
Programming is invented so they can help Programmers to write correct code
NOT that programmers should help Computer to do it upside down.
I do not know how such bug was not noted and made right.
that is Microsoft style of Programming and logic. "It is not a Bug, it is
a FEATURE"?

On Sun, Jan 1, 2017 at 7:18 PM, nophead [via OpenSCAD] <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19851&i=0> wrote:

Firstly statements are not executed as such. They build a tree structure
of geometric primitives and boolean operations. The boolean operations can
be done in any order as long as the operands (which are lower branches in
the tree) have been computed first. So yes things on the right are lower
nodes on the tree and must be computed first. And yes, compound statements
like union() that can span many lines will compute all the things lower in
the tree before the union is computed.

Secondly, OpenSCAD has lexical scope, very much the same as C, so a
variable (which are actually named constants) defined in one module cannot
be accessed in a another. But you can define constants at file level scope,
so if you move imaga=1 outside the Cuts module it will be accessible in
osnova. Or you can declare it as a parameter of osnova and pass it each
time you call it.

On 1 January 2017 at 17:25, Marijan Pollak <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=0> wrote:

Hi, I did not know the difference exist. It may be true that it is
parsed top to bottom, but somehow I
found that what is on the bottom of Module is executed first, then line
up and each line is executed right to left.
There is Example:
module Cuts(){

imaga=1      // Last of all , program is notified that file exist and
need not to be drawn again

//Here cut object has to be exported

;

angleMaleCut(cut = yCut1);    // Then male cut is made

angleMaleCut(cut = yCut2);

angleMaleCut(cut = yCut3);

translate ([0,0,0]);                    // It is aligned to center line

osnova();                                  // again clone or duplicate
is imported or drawn

angleFemaleCut(cut = yCut1); // then female cuts are made

angleFemaleCut(cut = yCut2);

angleFemaleCut(cut = yCut3);

translate ([-15,0,0]);                  // It is then moved  15mm on
Xcoordinate

Rotate (0,120,0,);                    // Second, iti s rotated in y
on horizontal plane

osnova();                                  // First, .stl file is
Imported  or drawn

}

//

module osnova()

{//"scadturbine.stl

echo("Object to cut=",objekt, "ima =", imaga);

if(imaga == 0){drawObject();}

else {import(objekt);}

}

in case there is more then one instruction on one line, they are
executed rightmost first

then left neigbour  one by one .

That is consistent with bottom to top execution.

I shall check again by puting some ECHO commands

However, since Imaga =1; is first command If program would work normal
way,

then ECHO would not report Zero in module osnova.

Ups!

.It seems that variables from program were not passed to Module unless
explicitely mentioned in Module

Parameter lists,which means I cannot change value in Module to be
generally available at new state?

Maxbe those multiple instractions were permutable without change of
result?

So how to do it? must put imaga = imaga, in Module parameter list?

Or something else?

Sincerely, Marijan Pollak

On Sun, Jan 1, 2017 at 3:37 PM, nop head <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=1> wrote:

Note this is OpenSCAD. Open SCADA is a different, unrelated, project.

I also wonder why is everything in this programming script upside down

and rightside left.

I don't know what you mean. The Syntax and layout are similar to C and
is parsed top to bottom, left to right.

Was this originally made by Chinese?

No, Austrians.

On 1 January 2017 at 08:07, Marijan Pollak <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19834&i=2> wrote:

Hello colagues, I noted there is no way to Export .stl file except by
hand,
while Import is working. IMHO, it should be easy to make new Module
ExportStl() by finding same function in Editor. Since I am New to Open
Scada, can some seasoned SCADA programmer do it?
I also wonder why is everything in this programming script upside down
and
rightside left
as compared to other Programming Languages? Was this originally made by
Chinese?
If I have time I would turn this to normal, as well as make it faster,
this
seems awfully slow
for just few simple Objects added or subtracted one from another.
I really need such parametric 3D drawing program as in 3D Max I cannot
position things precisely by hand. I am inventor whose inventions
would save
the World, so by helping me You would help Yourself also.
What I am trying to do at moment is to find way to cut large objects
symetrically like by Puzzlecut, to be able to 3D print pieces of large
objects on small 3D printer, I.E. 25 x 25 cm
pieces of 100 cm diameter objects. I tried to attach the picture here
but
script hanged up, so this time I would try to do it separately....
Thanks in advance and I wish You all Healthy, Happy anf Prosperous
2017!

--
View this message in context: http://forum.openscad.org/Expo
rt-Stl-File-module-tp19829.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=19834&i=3
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Regards from Croatia, the Homeland of one of greatest inventors from
19th and 20th Centuries, Engineer Nikola Tesla!


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=19834&i=5
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!


View this message in context: Re: Export Stl. File module
http://forum.openscad.org/Export-Stl-File-module-tp19829p19851.html
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

There is a large community of OpenSCAD users that have been using it for many years and nobody but you thinks it is upside down. There are no variables in OpenSCAD, just named constants, because it is a language to describe an object and a description does not change over time. On 2 January 2017 at 20:27, Marijan Pollak <oberonmp@gmail.com> wrote: > Dear Coleague, So, my logic was correct in case of program execution, > so IMHO it would be more practicall that programmer write same way as > program execute. This way fewer mistakes would be made. > Also Imaga is Variable, not constant. it means "it is there" or "Object > exist" > and signal that there is file to be Imported and all previous work on > generating > Object can be skipped. Time saved is enormous, specially with very complex > objects. > Since program execute oposite then it is written, I concluded I would have > to > write code converter to be able to follow standard logic of programming. > It would be easier if someone change this so people drawing the Objects > would not have to adjust to way program generates Objects. > Programming is invented so they can help Programmers to write correct code > NOT that programmers should help Computer to do it upside down. > I do not know how such bug was not noted and made right. > that is Microsoft style of Programming and logic. "It is not a Bug, it is > a FEATURE"? > > On Sun, Jan 1, 2017 at 7:18 PM, nophead [via OpenSCAD] <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=19851&i=0>> wrote: > >> Firstly statements are not executed as such. They build a tree structure >> of geometric primitives and boolean operations. The boolean operations can >> be done in any order as long as the operands (which are lower branches in >> the tree) have been computed first. So yes things on the right are lower >> nodes on the tree and must be computed first. And yes, compound statements >> like union() that can span many lines will compute all the things lower in >> the tree before the union is computed. >> >> Secondly, OpenSCAD has lexical scope, very much the same as C, so a >> variable (which are actually named constants) defined in one module cannot >> be accessed in a another. But you can define constants at file level scope, >> so if you move imaga=1 outside the Cuts module it will be accessible in >> osnova. Or you can declare it as a parameter of osnova and pass it each >> time you call it. >> >> On 1 January 2017 at 17:25, Marijan Pollak <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=19834&i=0>> wrote: >> >>> Hi, I did not know the difference exist. It may be true that it is >>> parsed top to bottom, but somehow I >>> found that what is on the bottom of Module is executed first, then line >>> up and each line is executed right to left. >>> There is Example: >>> module Cuts(){ >>> >>> imaga=1 // Last of all , program is notified that file exist and >>> need not to be drawn again >>> >>> >>> //Here cut object has to be exported >>> >>> ; >>> >>> angleMaleCut(cut = yCut1); // Then male cut is made >>> >>> angleMaleCut(cut = yCut2); >>> >>> angleMaleCut(cut = yCut3); >>> >>> translate ([0,0,0]); // It is aligned to center line >>> >>> osnova(); // again clone or duplicate >>> is imported or drawn >>> >>> angleFemaleCut(cut = yCut1); // then female cuts are made >>> >>> angleFemaleCut(cut = yCut2); >>> >>> angleFemaleCut(cut = yCut3); >>> >>> translate ([-15,0,0]); // It is then moved 15mm on >>> Xcoordinate >>> >>> Rotate (0,120,0,); // Second, iti s rotated in y >>> on horizontal plane >>> >>> osnova(); // First, .stl file is >>> Imported or drawn >>> >>> } >>> >>> // >>> >>> module osnova() >>> >>> {//"scadturbine.stl >>> >>> echo("Object to cut=",objekt, "ima =", imaga); >>> >>> if(imaga == 0){drawObject();} >>> >>> else {import(objekt);} >>> >>> } >>> >>> >>> in case there is more then one instruction on one line, they are >>> executed rightmost first >>> >>> then left neigbour one by one . >>> >>> That is consistent with bottom to top execution. >>> >>> I shall check again by puting some ECHO commands >>> >>> However, since Imaga =1; is first command If program would work normal >>> way, >>> >>> then ECHO would not report Zero in module osnova. >>> >>> Ups! >>> >>> .It seems that variables from program were not passed to Module unless >>> explicitely mentioned in Module >>> >>> Parameter lists,which means I cannot change value in Module to be >>> generally available at new state? >>> >>> Maxbe those multiple instractions were permutable without change of >>> result? >>> >>> So how to do it? must put imaga = imaga, in Module parameter list? >>> >>> Or something else? >>> >>> >>> >>> Sincerely, Marijan Pollak >>> >>> On Sun, Jan 1, 2017 at 3:37 PM, nop head <[hidden email] >>> <http:///user/SendEmail.jtp?type=node&node=19834&i=1>> wrote: >>> >>>> Note this is OpenSCAD. Open SCADA is a different, unrelated, project. >>>> >>>> >I also wonder why is everything in this programming script upside down >>>> and rightside left. >>>> >>>> I don't know what you mean. The Syntax and layout are similar to C and >>>> is parsed top to bottom, left to right. >>>> >>>> >Was this originally made by Chinese? >>>> >>>> No, Austrians. >>>> >>>> On 1 January 2017 at 08:07, Marijan Pollak <[hidden email] >>>> <http:///user/SendEmail.jtp?type=node&node=19834&i=2>> wrote: >>>> >>>>> Hello colagues, I noted there is no way to Export .stl file except by >>>>> hand, >>>>> while Import is working. IMHO, it should be easy to make new Module >>>>> ExportStl() by finding same function in Editor. Since I am New to Open >>>>> Scada, can some seasoned SCADA programmer do it? >>>>> I also wonder why is everything in this programming script upside down >>>>> and >>>>> rightside left >>>>> as compared to other Programming Languages? Was this originally made by >>>>> Chinese? >>>>> If I have time I would turn this to normal, as well as make it faster, >>>>> this >>>>> seems awfully slow >>>>> for just few simple Objects added or subtracted one from another. >>>>> I really need such parametric 3D drawing program as in 3D Max I cannot >>>>> position things precisely by hand. I am inventor whose inventions >>>>> would save >>>>> the World, so by helping me You would help Yourself also. >>>>> What I am trying to do at moment is to find way to cut large objects >>>>> symetrically like by Puzzlecut, to be able to 3D print pieces of large >>>>> objects on small 3D printer, I.E. 25 x 25 cm >>>>> pieces of 100 cm diameter objects. I tried to attach the picture here >>>>> but >>>>> script hanged up, so this time I would try to do it separately.... >>>>> Thanks in advance and I wish You all Healthy, Happy anf Prosperous >>>>> 2017! >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: http://forum.openscad.org/Expo >>>>> rt-Stl-File-module-tp19829.html >>>>> Sent from the OpenSCAD mailing list archive at Nabble.com. >>>>> >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=3> >>>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>>> >>>> >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=4> >>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>> >>>> >>> >>> >>> -- >>> Regards from Croatia, the Homeland of one of greatest inventors from >>> 19th and 20th Centuries, Engineer Nikola Tesla! >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=5> >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=19834&i=6> >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> http://forum.openscad.org/Export-Stl-File-module-tp19829p19834.html >> To unsubscribe from Export Stl. File module, click here. >> NAML >> <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > -- > Regards from Croatia, the Homeland of one of greatest inventors from 19th > and 20th Centuries, Engineer Nikola Tesla! > > ------------------------------ > View this message in context: Re: Export Stl. File module > <http://forum.openscad.org/Export-Stl-File-module-tp19829p19851.html> > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
MP
Marijan Pollak
Mon, Jan 2, 2017 8:53 PM

Why then no one has written proper Puzzlecut module/Library?
If I would do it I would se two overlaping cylinders with cut line trough
their intersection.
As I am new to Open SCAD  I am forced to use what exist, regardless of
correctness
or (for me) ilogical way program has to be written.
It is logical that program execute in same order it is written, whch is
usually "Top Down"
or "Waterfall" program development, not "Bottom up".
But then, I am Proffesional Programmer, from time when Bugs in Programs
were not
fashionable. Nowadays people seems to think that it is impossible to make
Program
or Application without Bugs :-((

On Mon, Jan 2, 2017 at 3:34 PM, Ronaldo [via OpenSCAD] <
ml-node+s1091067n19845h1@n5.nabble.com> wrote:

Marijan Pollak wrote
Ok, Module can see Global Variable but it cannot change itts value.
However if there is local  variable with same name, i.e kerf in the
Puzzlecut then I must write  kerf=kerf in module parameter list,
and I find some modules have kerf=0 as parameter which is
confusing me, as it seems not used in that module MaleCut,
but someplace else, outside of Puzzlecut.Lib

PuzzleCut uses a valid scope rule that I would not recommend. Look at this
code:

global = 10;

printGlobal();
printGlobal(global=0);

module printGlobal() {
print(global);
}

module print(a){
echo(a);
}

The console output will be:

ECHO: 10
ECHO: 0

The module printGlobal() has no parameters and just print() the variable
global; but when the module is called with global=0 as it was a parameter,
a new "local" variable global is instantiated in the new scope. So,
print(global) will echo this new value.

In PuzzleCut, kerf is global but is sometimes overridden in some function
or module calls.

It is a valid construct in OpenSCAD but it is safer and clearer to define
as parameter instead.


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Export-Stl-File-module-tp19829p19845.html
To unsubscribe from Export Stl. File module, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!

--
View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19854.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Why then no one has written proper Puzzlecut module/Library? If I would do it I would se two overlaping cylinders with cut line trough their intersection. As I am new to Open SCAD I am forced to use what exist, regardless of correctness or (for me) ilogical way program has to be written. It is logical that program execute in same order it is written, whch is usually "Top Down" or "Waterfall" program development, not "Bottom up". But then, I am Proffesional Programmer, from time when Bugs in Programs were not fashionable. Nowadays people seems to think that it is impossible to make Program or Application without Bugs :-(( On Mon, Jan 2, 2017 at 3:34 PM, Ronaldo [via OpenSCAD] < ml-node+s1091067n19845h1@n5.nabble.com> wrote: > Marijan Pollak wrote > Ok, Module can see Global Variable but it cannot change itts value. > However if there is local variable with same name, i.e kerf in the > Puzzlecut then I must write kerf=kerf in module parameter list, > and I find some modules have kerf=0 as parameter which is > confusing me, as it seems not used in that module MaleCut, > but someplace else, outside of Puzzlecut.Lib > > PuzzleCut uses a valid scope rule that I would not recommend. Look at this > code: > > global = 10; > > printGlobal(); > printGlobal(global=0); > > module printGlobal() { > print(global); > } > > module print(a){ > echo(a); > } > > The console output will be: > > ECHO: 10 > ECHO: 0 > > The module printGlobal() has no parameters and just print() the variable > global; but when the module is called with global=0 as it was a parameter, > a new "local" variable global is instantiated in the new scope. So, > print(global) will echo this new value. > > In PuzzleCut, kerf is global but is sometimes overridden in some function > or module calls. > > It is a valid construct in OpenSCAD but it is safer and clearer to define > as parameter instead. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Export-Stl-File-module-tp19829p19845.html > To unsubscribe from Export Stl. File module, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Regards from Croatia, the Homeland of one of greatest inventors from 19th and 20th Centuries, Engineer Nikola Tesla! -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19854.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Mon, Jan 2, 2017 9:09 PM

There are many professional programmers here with exceptional skills.

Perhaps OpenSCAD is not suitable for you.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19855.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

There are many professional programmers here with exceptional skills. Perhaps OpenSCAD is not suitable for you. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19855.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Mon, Jan 2, 2017 9:13 PM

"Top Down", "Waterfall" and "Bottom up" are types of program development
methodologies, nothing to do with program execution order.

OpenSCAD programs don't execute. They are descriptions that get compiled
into geometry.

I don't know anything about Puzzlecut but it should be easy to define a
jigsaw type shape and then intersect with an STL file to get a tile of it.
That can be done with the position defined by the command line to get each
piece, one at a time.

On 2 January 2017 at 20:53, Marijan Pollak oberonmp@gmail.com wrote:

Why then no one has written proper Puzzlecut module/Library?
If I would do it I would se two overlaping cylinders with cut line trough
their intersection.
As I am new to Open SCAD  I am forced to use what exist, regardless of
correctness
or (for me) ilogical way program has to be written.
It is logical that program execute in same order it is written, whch is
usually "Top Down"
or "Waterfall" program development, not "Bottom up".
But then, I am Proffesional Programmer, from time when Bugs in Programs
were not
fashionable. Nowadays people seems to think that it is impossible to make
Program
or Application without Bugs :-((

On Mon, Jan 2, 2017 at 3:34 PM, Ronaldo [via OpenSCAD] <[hidden email]
http:///user/SendEmail.jtp?type=node&node=19854&i=0> wrote:

Marijan Pollak wrote
Ok, Module can see Global Variable but it cannot change itts value.
However if there is local  variable with same name, i.e kerf in the
Puzzlecut then I must write  kerf=kerf in module parameter list,
and I find some modules have kerf=0 as parameter which is
confusing me, as it seems not used in that module MaleCut,
but someplace else, outside of Puzzlecut.Lib

PuzzleCut uses a valid scope rule that I would not recommend. Look at
this code:

global = 10;

printGlobal();
printGlobal(global=0);

module printGlobal() {
print(global);
}

module print(a){
echo(a);
}

The console output will be:

ECHO: 10
ECHO: 0

The module printGlobal() has no parameters and just print() the variable
global; but when the module is called with global=0 as it was a parameter,
a new "local" variable global is instantiated in the new scope. So,
print(global) will echo this new value.

In PuzzleCut, kerf is global but is sometimes overridden in some function
or module calls.

It is a valid construct in OpenSCAD but it is safer and clearer to define
as parameter instead.


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Export-Stl-File-module-tp19829p19845.html
To unsubscribe from Export Stl. File module, click here.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!


View this message in context: Re: Export Stl. File module
http://forum.openscad.org/Export-Stl-File-module-tp19829p19854.html
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

"Top Down", "Waterfall" and "Bottom up" are types of program development methodologies, nothing to do with program execution order. OpenSCAD programs don't execute. They are descriptions that get compiled into geometry. I don't know anything about Puzzlecut but it should be easy to define a jigsaw type shape and then intersect with an STL file to get a tile of it. That can be done with the position defined by the command line to get each piece, one at a time. On 2 January 2017 at 20:53, Marijan Pollak <oberonmp@gmail.com> wrote: > Why then no one has written proper Puzzlecut module/Library? > If I would do it I would se two overlaping cylinders with cut line trough > their intersection. > As I am new to Open SCAD I am forced to use what exist, regardless of > correctness > or (for me) ilogical way program has to be written. > It is logical that program execute in same order it is written, whch is > usually "Top Down" > or "Waterfall" program development, not "Bottom up". > But then, I am Proffesional Programmer, from time when Bugs in Programs > were not > fashionable. Nowadays people seems to think that it is impossible to make > Program > or Application without Bugs :-(( > > On Mon, Jan 2, 2017 at 3:34 PM, Ronaldo [via OpenSCAD] <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=19854&i=0>> wrote: > >> Marijan Pollak wrote >> Ok, Module can see Global Variable but it cannot change itts value. >> However if there is local variable with same name, i.e kerf in the >> Puzzlecut then I must write kerf=kerf in module parameter list, >> and I find some modules have kerf=0 as parameter which is >> confusing me, as it seems not used in that module MaleCut, >> but someplace else, outside of Puzzlecut.Lib >> >> PuzzleCut uses a valid scope rule that I would not recommend. Look at >> this code: >> >> global = 10; >> >> printGlobal(); >> printGlobal(global=0); >> >> module printGlobal() { >> print(global); >> } >> >> module print(a){ >> echo(a); >> } >> >> The console output will be: >> >> ECHO: 10 >> ECHO: 0 >> >> The module printGlobal() has no parameters and just print() the variable >> global; but when the module is called with global=0 as it was a parameter, >> a new "local" variable global is instantiated in the new scope. So, >> print(global) will echo this new value. >> >> In PuzzleCut, kerf is global but is sometimes overridden in some function >> or module calls. >> >> It is a valid construct in OpenSCAD but it is safer and clearer to define >> as parameter instead. >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> http://forum.openscad.org/Export-Stl-File-module-tp19829p19845.html >> To unsubscribe from Export Stl. File module, click here. >> NAML >> <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > -- > Regards from Croatia, the Homeland of one of greatest inventors from 19th > and 20th Centuries, Engineer Nikola Tesla! > > ------------------------------ > View this message in context: Re: Export Stl. File module > <http://forum.openscad.org/Export-Stl-File-module-tp19829p19854.html> > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
TP
Torsten Paul
Mon, Jan 2, 2017 9:18 PM

On 01/02/2017 09:53 PM, Marijan Pollak wrote:

But then, I am Proffesional Programmer, from time when
Bugs in Programs were not fashionable. Nowadays people
seems to think that it is impossible to make Program
or Application without Bugs :-((

There may be quite some bugs in OpenSCAD and the
design may not be perfect (I think it was conceived
as a tool to get things done, not invented and designed
as perfect programming language).

Still what you describe is not a bug, not even close.
You fail to see that there are other ways to describe
things that are not necessarily a bug just because
they are different.

Consider "normal" pocket calculators and compare to
those that use RPN notation. Both are doing the job
correctly, but using different notations.

Trying to bend OpenSCAD to a thinking that does not
fit it's design will only end in tears. Some time
ago, Alan called that "iterative programmers disease"
which is probably pointing to the root of that
discussion which does come up every now and then.

All that being said, there's a lot of things on the
wishlist to make OpenSCAD more powerful and more
flexible. This will happen eventually, I hope.
Considering the limited dev power, it might need
quite a while though.

ciao,
Torsten.

On 01/02/2017 09:53 PM, Marijan Pollak wrote: > But then, I am Proffesional Programmer, from time when > Bugs in Programs were not fashionable. Nowadays people > seems to think that it is impossible to make Program > or Application without Bugs :-(( > There may be quite some bugs in OpenSCAD and the design may not be perfect (I think it was conceived as a tool to get things done, not invented and designed as perfect programming language). Still what you describe is not a bug, not even close. You fail to see that there are other ways to describe things that are not necessarily a bug just because they are different. Consider "normal" pocket calculators and compare to those that use RPN notation. Both are doing the job correctly, but using different notations. Trying to bend OpenSCAD to a thinking that does not fit it's design will only end in tears. Some time ago, Alan called that "iterative programmers disease" which is probably pointing to the root of that discussion which does come up every now and then. All that being said, there's a lot of things on the wishlist to make OpenSCAD more powerful and more flexible. This will happen eventually, I hope. Considering the limited dev power, it might need quite a while though. ciao, Torsten.
MP
Marijan Pollak
Mon, Jan 2, 2017 9:21 PM

Thank for Advice, but multitude of Manuals can be problem by itself, unless
they are equally good
so it is same whichever I read. But IMHO such things  (equally good)
usually do not exist.
Yes, I usually search for similar examples, to not duplicate efforts
needlessly.
However my turbine is IMHO first that is not merely pushed by Wind, so it
surely has no predecesor.
I consider myself lucky to have find Open SCAD, but so far I have found
just simple examples.
But as a newbie, I has to start simple, too. However I use 3D MAX nearly
from its beginning, so many
things about handling of primitives and joining them or subtracting one
from another I know how to do.
Intersection should not be a problem as I understand concept.
I just do not understand why every Bug is not clean out, but people must
devise "Workarounds".
Likewise I am horrified by multitude of parenthesis used. It seems to me
that original writers forgot
that computers and their programs were meant to help people in their work,
and it is not job of the
Programmer to help Compiler to work properly, but job of compiler to help
Programmer........
In the end, I think it is not Compiler at all but Interpreter. Difference
is in speed.
When writting compiler I would make Editor to compile all changes in
programs instantly.
People work so slowly that in time one instruction is added,, whole program
could be compiled, unless
it has million lines of code, but in case of incremental compiling, even
this can take few seconds
at first and few microseconds later.
Anyway, thank You for Your kind answers and oportunity to correspond to
inteligent people.

On Mon, Jan 2, 2017 at 3:34 PM, Parkinbot [via OpenSCAD] <
ml-node+s1091067n19846h32@n5.nabble.com> wrote:

a) You will find a lot of information about how to program with OpenSCAD
in the net. A good starting point is https://www.thingiverse.com/
jumpstart/openscad

b) Doing a web search like "programming openscad" will further present you
a large list of programming guides and courses that go deeper into
different aspects of OpenSCAD.

c) In Thingiverse finally you will find tens of thousands of code examples
for designs done with OpenSCAD. So, if you are interested how to express
some turbine design, search there for "tubine" and have a look at designs
which are similar and offer .scad files for download.


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Export-Stl-File-module-tp19829p19846.html
To unsubscribe from Export Stl. File module, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!

--
View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19858.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Thank for Advice, but multitude of Manuals can be problem by itself, unless they are equally good so it is same whichever I read. But IMHO such things (equally good) usually do not exist. Yes, I usually search for similar examples, to not duplicate efforts needlessly. However my turbine is IMHO first that is not merely pushed by Wind, so it surely has no predecesor. I consider myself lucky to have find Open SCAD, but so far I have found just simple examples. But as a newbie, I has to start simple, too. However I use 3D MAX nearly from its beginning, so many things about handling of primitives and joining them or subtracting one from another I know how to do. Intersection should not be a problem as I understand concept. I just do not understand why every Bug is not clean out, but people must devise "Workarounds". Likewise I am horrified by multitude of parenthesis used. It seems to me that original writers forgot that computers and their programs were meant to help people in their work, and it is not job of the Programmer to help Compiler to work properly, but job of compiler to help Programmer........ In the end, I think it is not Compiler at all but Interpreter. Difference is in speed. When writting compiler I would make Editor to compile all changes in programs instantly. People work so slowly that in time one instruction is added,, whole program could be compiled, unless it has million lines of code, but in case of incremental compiling, even this can take few seconds at first and few microseconds later. Anyway, thank You for Your kind answers and oportunity to correspond to inteligent people. On Mon, Jan 2, 2017 at 3:34 PM, Parkinbot [via OpenSCAD] < ml-node+s1091067n19846h32@n5.nabble.com> wrote: > a) You will find a lot of information about how to program with OpenSCAD > in the net. A good starting point is https://www.thingiverse.com/ > jumpstart/openscad > > b) Doing a web search like "programming openscad" will further present you > a large list of programming guides and courses that go deeper into > different aspects of OpenSCAD. > > c) In Thingiverse finally you will find tens of thousands of code examples > for designs done with OpenSCAD. So, if you are interested how to express > some turbine design, search there for "tubine" and have a look at designs > which are similar and offer .scad files for download. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Export-Stl-File-module-tp19829p19846.html > To unsubscribe from Export Stl. File module, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Regards from Croatia, the Homeland of one of greatest inventors from 19th and 20th Centuries, Engineer Nikola Tesla! -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19858.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MS
Mark Schafer
Mon, Jan 2, 2017 9:24 PM

I'm reluctant to suggest this but if you have a flat shape you want to
extrude then consider drawing the shape in inkscape and using the export
to openscad extension. here: http://www.thingiverse.com/thing:1065500

However this will only give you an extruded 2D cutout. Its possible you
want some kind of curved 3 dimensional shape.

I'm reluctant to suggest this but if you have a flat shape you want to extrude then consider drawing the shape in inkscape and using the export to openscad extension. here: http://www.thingiverse.com/thing:1065500 However this will only give you an extruded 2D cutout. Its possible you want some kind of curved 3 dimensional shape.
MP
Marijan Pollak
Mon, Jan 2, 2017 9:39 PM

Dear Sir, 1st. I ment to construct whole 3D object using Points.
Next my question was that once I "Extrude" 2D draving.I do not
know if I can then add to it 3D primitives, or I have to save it as .stl
file
and then import into program that would treat it as any other 3D
object, as I saw somewhere comment that someone should not do
Extrude and use 3D objects, or cannot Extrude 3D object, which is
logical.
I also asked if Points are pairs of coordinates or each is one in line.
ThankYou for clarifying that 2D cannot be constructed in SCAD as
ther are no 2D primitives..............

On Mon, Jan 2, 2017 at 3:46 PM, Ronaldo [via OpenSCAD] <
ml-node+s1091067n19848h94@n5.nabble.com> wrote:

Marijan Pollak wrote
I suppose I can generate whole turbine by generating 1/ 3 of points and
making Extrude,
then rotating object 120 degtees and repeating or just cutting that out
with Puzzlecut and
joining 3 pieces after they are printed on 3D printer..... Can I draw on
surface of cylinder
and then Extrude2D to get one joined object, or this has to be made
separate object first?
So, I must experiment.... Is there a way to build 3D object that way?

I am not sure what  you meant by that.

Same, there would be many points anyhow, so many lines in .txt file.
How do I signal to program that next line is continuation of points?
I also suppose that last point should be first?

Any used or included text file must be written following the OpenSCAD
language.
Hence all end-of-line characters are ignored.

or I can draw  using primitives like line or circle?

There is no line or circle primitives in OpenSCAD, only volumetric
primitives.

I would like to use
Rotate Extrude and also make
Welds. I suppose once I extrude this form to 3D I have to save object
created, after which I can
Join or subtract some primitives like from any other Objects imported?

As said before, you may define a solid with a module and use it many times
as needed. You don't have to "save it". Refer to the nophead's code
example.


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Export-Stl-File-module-tp19829p19848.html
To unsubscribe from Export Stl. File module, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
Regards from Croatia, the Homeland of one of greatest inventors from 19th
and 20th Centuries, Engineer Nikola Tesla!

--
View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19860.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Dear Sir, 1st. I ment to construct whole 3D object using Points. Next my question was that once I "Extrude" 2D draving.I do not know if I can then add to it 3D primitives, or I have to save it as .stl file and then import into program that would treat it as any other 3D object, as I saw somewhere comment that someone should not do Extrude and use 3D objects, or cannot Extrude 3D object, which is logical. I also asked if Points are pairs of coordinates or each is one in line. ThankYou for clarifying that 2D cannot be constructed in SCAD as ther are no 2D primitives.............. On Mon, Jan 2, 2017 at 3:46 PM, Ronaldo [via OpenSCAD] < ml-node+s1091067n19848h94@n5.nabble.com> wrote: > Marijan Pollak wrote > I suppose I can generate whole turbine by generating 1/ 3 of points and > making Extrude, > then rotating object 120 degtees and repeating or just cutting that out > with Puzzlecut and > joining 3 pieces after they are printed on 3D printer..... Can I draw on > surface of cylinder > and then Extrude2D to get one joined object, or this has to be made > separate object first? > So, I must experiment.... Is there a way to build 3D object that way? > > I am not sure what you meant by that. > > Same, there would be many points anyhow, so many lines in .txt file. > How do I signal to program that next line is continuation of points? > I also suppose that last point should be first? > > Any used or included text file must be written following the OpenSCAD > language. > Hence all end-of-line characters are ignored. > > or I can draw using primitives like line or circle? > > There is no line or circle primitives in OpenSCAD, only volumetric > primitives. > > I would like to use > Rotate Extrude and also make > Welds. I suppose once I extrude this form to 3D I have to save object > created, after which I can > Join or subtract some primitives like from any other Objects imported? > > As said before, you may define a solid with a module and use it many times > as needed. You don't have to "save it". Refer to the nophead's code > example. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Export-Stl-File-module-tp19829p19848.html > To unsubscribe from Export Stl. File module, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=19829&code=b2Jlcm9ubXBAZ21haWwuY29tfDE5ODI5fC00Mzg5MzYyNzk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Regards from Croatia, the Homeland of one of greatest inventors from 19th and 20th Centuries, Engineer Nikola Tesla! -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19860.html Sent from the OpenSCAD mailing list archive at Nabble.com.
R
Ronaldo
Mon, Jan 2, 2017 10:27 PM

Marijan Pollak wrote

Dear Sir, 1st. I ment to construct whole 3D object using Points.
Next my question was that once I "Extrude" 2D draving.I do not
know if I can then add to it 3D primitives, or I have to save it as .stl
file
and then import into program that would treat it as any other 3D
object, as I saw somewhere comment that someone should not do
Extrude and use 3D objects, or cannot Extrude 3D object, which is
logical.
I also asked if Points are pairs of coordinates or each is one in line.
ThankYou for clarifying that 2D cannot be constructed in SCAD as
ther are no 2D primitives..............

There is 2D primitives in OpenSCAD. I am sorry to have given a wrong answer
before. Circle, square, polygon and text are the only 2D primitives. There
is no 1D primitives though. 2D primitives may be operated (boolean,
minkowski or hull) to get more general 2D shapes.

If you linear_extrude or rotate_extrude a 2D shape you get a 3D model that
can be operated with other 3D models. You don't need to save an stl file and
import it to do it. You cannot mix a 2D shape and a 3D model in any boolean
or minkowski or hull operators. There is no extrusion operator for 3D
models. You cannot render a mix of 2D and 3D models.

To build 2D polygons you use 2D points (two coordinates). Polyhedron()
requires 3D points.

OpenSCAD CheatSheet and the Manual are invaluable sources.

--
View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19863.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Marijan Pollak wrote > Dear Sir, 1st. I ment to construct whole 3D object using Points. > Next my question was that once I "Extrude" 2D draving.I do not > know if I can then add to it 3D primitives, or I have to save it as .stl > file > and then import into program that would treat it as any other 3D > object, as I saw somewhere comment that someone should not do > Extrude and use 3D objects, or cannot Extrude 3D object, which is > logical. > I also asked if Points are pairs of coordinates or each is one in line. > ThankYou for clarifying that 2D cannot be constructed in SCAD as > ther are no 2D primitives.............. There is 2D primitives in OpenSCAD. I am sorry to have given a wrong answer before. Circle, square, polygon and text are the only 2D primitives. There is no 1D primitives though. 2D primitives may be operated (boolean, minkowski or hull) to get more general 2D shapes. If you linear_extrude or rotate_extrude a 2D shape you get a 3D model that can be operated with other 3D models. You don't need to save an stl file and import it to do it. You cannot mix a 2D shape and a 3D model in any boolean or minkowski or hull operators. There is no extrusion operator for 3D models. You cannot render a mix of 2D and 3D models. To build 2D polygons you use 2D points (two coordinates). Polyhedron() requires 3D points. OpenSCAD CheatSheet and the Manual are invaluable sources. -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19863.html Sent from the OpenSCAD mailing list archive at Nabble.com.