discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Export Stl. File module

MP
Marijan Pollak
Sun, Jan 1, 2017 8:07 AM

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/Export-Stl-File-module-tp19829.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

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/Export-Stl-File-module-tp19829.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Jan 1, 2017 1:09 PM

On 01/01/2017 09:07 AM, Marijan Pollak 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?

The following thread has some discussion about this topic
http://forum.openscad.org/export-function-td15428.html

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.

This would be very welcome, at this point it would mean
either making CGAL (http://www.cgal.org/) faster for CSG
operations or find/implement a different library to do
CSG.

ciao,
Torsten.

On 01/01/2017 09:07 AM, Marijan Pollak 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? > The following thread has some discussion about this topic http://forum.openscad.org/export-function-td15428.html > 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. > This would be very welcome, at this point it would mean either making CGAL (http://www.cgal.org/) faster for CSG operations or find/implement a different library to do CSG. ciao, Torsten.
NH
nop head
Sun, Jan 1, 2017 2:37 PM

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 oberonmp@gmail.com 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/
Export-Stl-File-module-tp19829.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

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 <oberonmp@gmail.com> 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/ > Export-Stl-File-module-tp19829.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
MP
Marijan Pollak
Sun, Jan 1, 2017 3:58 PM

Hello Thorsten, unfortunately those people write about Security risk which
I do not understand.
1st. Import and export are possible only from same folder where SCADA
programs are.
2nd. If I cannot read in unknown files, how can program know what to
delete/rewrite?
3rd. Is simple confirmation from user not possible in case of new file
writting?
4th. User may have to delete some files by hand if not required.
I suceeded to open file in Alphanumeric field, therefore it should be
possible to compose file name
by program, export it and then import it again and when cut export to
different file.
​As You can see I need to cut my turbine in at least 6 ways, however with
just 4 parts I
can repeat this group 3 times and compose large turbine of 50 cm diameter.
I would however like  to cut center as circle, as large as can be printed
on 18 x 18cm x 25cm
workspace of 3D printer. However all pieces have to be securely hooked one
to another.
Likewise, it would be usefull if I can construct the Knife  and then reuse
it as many times as required.
Present system of cutting requires 2 separate cuts on two clones of same
object, why it cannot be
done in 1 cut and then separate pieces into two objects, since one side of
cut is always removed, therefore computer is able to detect  which is Male
and which is Female side.
Alternative would be to attach each side of Cut  to part it belong to and
remove just "Kerf" distance
which then cannot be negative, of course.
It would be great help to be able to  determine cut lines and then situate
hooks at the middle as two
pairs of T  profiled connectors  or one pair of joined cylinders then such
twinned cylinders can be used to extract difference that was cut out. with
exact fit it would be as if it was made from one piece, right?
Same way central circle can be cut out and Difference taken out of clone.
However at least 3 holes must be made on separation circle, where it would
be fixed by screws.
Any advice would be most welcome. This 2D drawing was made by program, can
it be repeated in
SCADA and then extruded? I would neeed many sizes  of turbines with same
wall thickness of Air
Chambers. but it would alsi be usefull that botom would not be flat. I can
therefore first form bottom
by following paralel linesand pulling half circle between, and then extrude
same lines up.
But after this I have to cut it all up.........
I promise You huge donation when my turbines start to sell, or one WPS of
2.5 KW that You can use or sell to someone for few 1000€'s.
Is it a deal?
Sincerely, Marijan Pollak

On Sun, Jan 1, 2017 at 2:10 PM, tp3 [via OpenSCAD] <
ml-node+s1091067n19830h36@n5.nabble.com> wrote:

On 01/01/2017 09:07 AM, Marijan Pollak 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?

The following thread has some discussion about this topic
http://forum.openscad.org/export-function-td15428.html

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.

This would be very welcome, at this point it would mean
either making CGAL (http://www.cgal.org/) faster for CSG
operations or find/implement a different library to do
CSG.

ciao,
Torsten.


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


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Export-Stl-File-module-tp19829p19830.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!

TlocrtRasjeckan02.jpg (1019K) http://forum.openscad.org/attachment/19832/0/TlocrtRasjeckan02.jpg

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

Hello Thorsten, unfortunately those people write about Security risk which I do not understand. 1st. Import and export are possible only from same folder where SCADA programs are. 2nd. If I cannot read in unknown files, how can program know what to delete/rewrite? 3rd. Is simple confirmation from user not possible in case of new file writting? 4th. User may have to delete some files by hand if not required. I suceeded to open file in Alphanumeric field, therefore it should be possible to compose file name by program, export it and then import it again and when cut export to different file. ​As You can see I need to cut my turbine in at least 6 ways, however with just 4 parts I can repeat this group 3 times and compose large turbine of 50 cm diameter. I would however like to cut center as circle, as large as can be printed on 18 x 18cm x 25cm workspace of 3D printer. However all pieces have to be securely hooked one to another. Likewise, it would be usefull if I can construct the Knife and then reuse it as many times as required. Present system of cutting requires 2 separate cuts on two clones of same object, why it cannot be done in 1 cut and then separate pieces into two objects, since one side of cut is always removed, therefore computer is able to detect which is Male and which is Female side. Alternative would be to attach each side of Cut to part it belong to and remove just "Kerf" distance which then cannot be negative, of course. It would be great help to be able to determine cut lines and then situate hooks at the middle as two pairs of T profiled connectors or one pair of joined cylinders then such twinned cylinders can be used to extract difference that was cut out. with exact fit it would be as if it was made from one piece, right? Same way central circle can be cut out and Difference taken out of clone. However at least 3 holes must be made on separation circle, where it would be fixed by screws. Any advice would be most welcome. This 2D drawing was made by program, can it be repeated in SCADA and then extruded? I would neeed many sizes of turbines with same wall thickness of Air Chambers. but it would alsi be usefull that botom would not be flat. I can therefore first form bottom by following paralel linesand pulling half circle between, and then extrude same lines up. But after this I have to cut it all up......... I promise You huge donation when my turbines start to sell, or one WPS of 2.5 KW that You can use or sell to someone for few 1000€'s. Is it a deal? Sincerely, Marijan Pollak On Sun, Jan 1, 2017 at 2:10 PM, tp3 [via OpenSCAD] < ml-node+s1091067n19830h36@n5.nabble.com> wrote: > On 01/01/2017 09:07 AM, Marijan Pollak 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? > > > The following thread has some discussion about this topic > http://forum.openscad.org/export-function-td15428.html > > > 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. > > > This would be very welcome, at this point it would mean > either making CGAL (http://www.cgal.org/) faster for CSG > operations or find/implement a different library to do > CSG. > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=19830&i=0> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Torsten > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Export-Stl-File-module-tp19829p19830.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! TlocrtRasjeckan02.jpg (1019K) <http://forum.openscad.org/attachment/19832/0/TlocrtRasjeckan02.jpg> -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19832.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MP
Marijan Pollak
Sun, Jan 1, 2017 5:25 PM

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 nop.head@gmail.com 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 oberonmp@gmail.com 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
Discuss@lists.openscad.org
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!

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 <nop.head@gmail.com> 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 <oberonmp@gmail.com> 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 >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > 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!
NH
nop head
Sun, Jan 1, 2017 6:16 PM

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 oberonmp@gmail.com 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 nop.head@gmail.com 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 oberonmp@gmail.com 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
Discuss@lists.openscad.org
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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <oberonmp@gmail.com> 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 <nop.head@gmail.com> 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 <oberonmp@gmail.com> 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 >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
TP
Torsten Paul
Sun, Jan 1, 2017 8:15 PM

On 01/01/2017 04:58 PM, Marijan Pollak wrote:

Hello Thorsten, unfortunately those people write about Security
risk which I do not understand.

I don't see the security part as the main topic for the
export feature. Direct export does not fit into the whole
model of how OpenSCAD works, it generates a data structure
that describes a 2D or 3D model, it's not a program having
a runtime.

The basic idea to handle multi part models is to add this
information to the data structure and have the export
function pick that up to export all parts in one step.
Details are still to be defined.

Until this is done, there's a reasonable workaround
described in the FAQ
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Export

ciao,
Torsten.

On 01/01/2017 04:58 PM, Marijan Pollak wrote: > Hello Thorsten, unfortunately those people write about Security > risk which I do not understand. > I don't see the security part as the main topic for the export feature. Direct export does not fit into the whole model of how OpenSCAD works, it generates a data structure that describes a 2D or 3D model, it's not a program having a runtime. The basic idea to handle multi part models is to add this information to the data structure and have the export function pick that up to export all parts in one step. Details are still to be defined. Until this is done, there's a reasonable workaround described in the FAQ https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Export ciao, Torsten.
RP
Ronaldo Persiano
Sun, Jan 1, 2017 9:50 PM

Pollak,

Except in cases of heavy and complex models, you should not be concerned
about avoiding to rebuild a "clone" in OpenSCAD. The system keeps computed
models and values in cache so its reuse doesn't require reevaluations.

About your turbine design code: in principle, you have two alternatives;
one is to compute the profiles through an OpenSCAD code generating points
and passing them to a polygon() or polyhedron(); or change the code of your
external profile generator in order to produce its output as a text file of
the form:

points = [ [...], [...], ...];

This text file is then made part of your OpenSCAD code with:

use <profile_points.txt>

at its beginning.

Ronaldo

Pollak, Except in cases of heavy and complex models, you should not be concerned about avoiding to rebuild a "clone" in OpenSCAD. The system keeps computed models and values in cache so its reuse doesn't require reevaluations. About your turbine design code: in principle, you have two alternatives; one is to compute the profiles through an OpenSCAD code generating points and passing them to a polygon() or polyhedron(); or change the code of your external profile generator in order to produce its output as a text file of the form: points = [ [...], [...], ...]; This text file is then made part of your OpenSCAD code with: use <profile_points.txt> at its beginning. Ronaldo
MP
Marijan Pollak
Mon, Jan 2, 2017 10:33 AM

Thanks for clarification. So how can I signal from module what it has done?
I tried to access imaga that is defined in main program in Module but until
I put it as parameter, it was not recognized.
Are Functions different?
Unfortunately what someone  made as three way Puzlecut do not work.
I guess I have to export File after first cut and Import it before next.
Undfortunately Export is not there for some obscure reason.
I would have to find source of Editor and clone that function to export
.stl file
and make new Module Export ("filename.stl"), or can You do it for all of us
that
need such thing?
So far  I find Compiler unpredictable and not explaining errors, which
mostly
happen someplace in the Library. I also do not know where to put ";" at end
of
command or module call and where it is forbidden. I decided to put it
everywhere
but sometimes it cause errors?
Perhaps some more time and I would catch rules, I start by doing sipmple
things,
like creating plate and cutting it,  and when I would have that Module
ready, I can
build up on that plate something more complicated, cut this and so on.
Unfortunately I am half blind and did not do much programming, mostly I was
using
GFA32 Basic, which is not OO Language, but then Open SCAD is not either.
I would need to have access to STL file parameters as well as come
rudimentary
CFD program and then I would be able to make it do all calculations in
paralel and
export results as file that can then be corelated to Stl File parameters
and Cfd
parameters to find out which parameters produce better result.
Than thing can be "Evolved" to best possible solution or parameters. It is
possible
to Cross bred several existing solutions and get something entirely new.
Regards, Marijan Pollak

On Sun, Jan 1, 2017 at 7:16 PM, nop head nop.head@gmail.com 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 oberonmp@gmail.com 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 nop.head@gmail.com 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 oberonmp@gmail.com 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
Discuss@lists.openscad.org
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
Discuss@lists.openscad.org
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!

Thanks for clarification. So how can I signal from module what it has done? I tried to access imaga that is defined in main program in Module but until I put it as parameter, it was not recognized. Are Functions different? Unfortunately what someone made as three way Puzlecut do not work. I guess I have to export File after first cut and Import it before next. Undfortunately Export is not there for some obscure reason. I would have to find source of Editor and clone that function to export .stl file and make new Module Export ("filename.stl"), or can You do it for all of us that need such thing? So far I find Compiler unpredictable and not explaining errors, which mostly happen someplace in the Library. I also do not know where to put ";" at end of command or module call and where it is forbidden. I decided to put it everywhere but sometimes it cause errors? Perhaps some more time and I would catch rules, I start by doing sipmple things, like creating plate and cutting it, and when I would have that Module ready, I can build up on that plate something more complicated, cut this and so on. Unfortunately I am half blind and did not do much programming, mostly I was using GFA32 Basic, which is not OO Language, but then Open SCAD is not either. I would need to have access to STL file parameters as well as come rudimentary CFD program and then I would be able to make it do all calculations in paralel and export results as file that can then be corelated to Stl File parameters and Cfd parameters to find out which parameters produce better result. Than thing can be "Evolved" to best possible solution or parameters. It is possible to Cross bred several existing solutions and get something entirely new. Regards, Marijan Pollak On Sun, Jan 1, 2017 at 7:16 PM, nop head <nop.head@gmail.com> 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 <oberonmp@gmail.com> 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 <nop.head@gmail.com> 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 <oberonmp@gmail.com> 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 >>>> Discuss@lists.openscad.org >>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>> >>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> 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 >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > 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!
MP
Marijan Pollak
Mon, Jan 2, 2017 11:05 AM

I have never seen anything like this, therefore I do not understand.
Is it that You are adding this to Editor as Plugin of sort so .stl Button
would do it when pressed, instead of writting out just one file?
That we call "going hand to pocket around backside"......
So it stay this way untill I change it? Maybe I can do it, just I did not
find way to cut things precisely to some 12 parts, and if they would
stay together in one file then it is not problem to do it even just using
the button, problem is, once I cut thing in two, I can export part that
need no further cutting and remove it, and cut remainder again.
I do not know if SCAD treat result of cutting as one or two objects,
and how can I select one piece I want to export. If I would be able to
do it programatically, then there is no need to do it complicated way.
Where is that Editor source code? I think making Module should not
take more than half an hour, I just have to ape what that button click
do, after its module or function  receive file name to Export.
Or someone sit on it? That assuming It is same as any other Module
in Open Scad.....

On Sun, Jan 1, 2017 at 9:15 PM, Torsten Paul Torsten.Paul@gmx.de wrote:

On 01/01/2017 04:58 PM, Marijan Pollak wrote:

Hello Thorsten, unfortunately those people write about Security
risk which I do not understand.

I don't see the security part as the main topic for the
export feature. Direct export does not fit into the whole
model of how OpenSCAD works, it generates a data structure
that describes a 2D or 3D model, it's not a program having
a runtime.

The basic idea to handle multi part models is to add this
information to the data structure and have the export
function pick that up to export all parts in one step.
Details are still to be defined.

Until this is done, there's a reasonable workaround
described in the FAQ
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Export

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
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!

I have never seen anything like this, therefore I do not understand. Is it that You are adding this to Editor as Plugin of sort so .stl Button would do it when pressed, instead of writting out just one file? That we call "going hand to pocket around backside"...... So it stay this way untill I change it? Maybe I can do it, just I did not find way to cut things precisely to some 12 parts, and if they would stay together in one file then it is not problem to do it even just using the button, problem is, once I cut thing in two, I can export part that need no further cutting and remove it, and cut remainder again. I do not know if SCAD treat result of cutting as one or two objects, and how can I select one piece I want to export. If I would be able to do it programatically, then there is no need to do it complicated way. Where is that Editor source code? I think making Module should not take more than half an hour, I just have to ape what that button click do, after its module or function receive file name to Export. Or someone sit on it? That assuming It is same as any other Module in Open Scad..... On Sun, Jan 1, 2017 at 9:15 PM, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 01/01/2017 04:58 PM, Marijan Pollak wrote: > > Hello Thorsten, unfortunately those people write about Security > > risk which I do not understand. > > > I don't see the security part as the main topic for the > export feature. Direct export does not fit into the whole > model of how OpenSCAD works, it generates a data structure > that describes a 2D or 3D model, it's not a program having > a runtime. > > The basic idea to handle multi part models is to add this > information to the data structure and have the export > function pick that up to export all parts in one step. > Details are still to be defined. > > Until this is done, there's a reasonable workaround > described in the FAQ > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Export > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > 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!