discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Export Stl. File module

A
adrian
Mon, Jan 9, 2017 5:52 PM

Marijan Pollak wrote

Okay. Basically I can rename module by incapsulating it within other
module. Still it is not same as assigning Object to name, unless
Module is compiled just once which basicaly save Object for reuse.

You're right, it is not the same.  It is a description of the object, with
parameters stating how to modify the object.

Marijan Pollak wrote

Your Shorcut list does not explain things like what is first operand and
which is second, does first is subtracted from second or second
from first.

I'm not sure what shortcut list you are referring to, but the operator
difference() { a0(); a1();... aN(); } is like saying take object a0 and
subtract objects a1, a2 all the way to aN from it.

Good luck on your endeavours.

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

Marijan Pollak wrote > Okay. Basically I can rename module by incapsulating it within other > module. Still it is not same as assigning Object to name, unless > Module is compiled just once which basicaly save Object for reuse. You're right, it is not the same. It is a description of the object, with parameters stating how to modify the object. Marijan Pollak wrote > Your Shorcut list does not explain things like what is first operand and > which is second, does first is subtracted from second or second > from first. I'm not sure what shortcut list you are referring to, but the operator difference() { a0(); a1();... aN(); } is like saying take object a0 and subtract objects a1, a2 all the way to aN from it. Good luck on your endeavours. -- View this message in context: http://forum.openscad.org/Export-Stl-File-module-tp19829p19988.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Mon, Jan 9, 2017 6:15 PM

Still it is not same as assigning Object to name, unless Module is

compiled just once which basicaly save Object for reuse.

Yes the module is only compiled once for each different combination of
parameters, so there is no need to store it in a variable. In my example
there is only one M3 nut in the geometry cache but it gets used four times.

So anything that you think you might want to store in a variable you put in
a module instead. It can be geometry or transformations or a combination of
both.

On 9 January 2017 at 17:52, adrian adrianh.bsc@gmail.com wrote:

Marijan Pollak wrote

Okay. Basically I can rename module by incapsulating it within other
module. Still it is not same as assigning Object to name, unless
Module is compiled just once which basicaly save Object for reuse.

You're right, it is not the same.  It is a description of the object, with
parameters stating how to modify the object.

Marijan Pollak wrote

Your Shorcut list does not explain things like what is first operand and
which is second, does first is subtracted from second or second
from first.

I'm not sure what shortcut list you are referring to, but the operator
difference() { a0(); a1();... aN(); } is like saying take object a0 and
subtract objects a1, a2 all the way to aN from it.

Good luck on your endeavours.

--
View this message in context: http://forum.openscad.org/
Export-Stl-File-module-tp19829p19988.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

>Still it is not same as assigning Object to name, unless Module is compiled just once which basicaly save Object for reuse. Yes the module is only compiled once for each different combination of parameters, so there is no need to store it in a variable. In my example there is only one M3 nut in the geometry cache but it gets used four times. So anything that you think you might want to store in a variable you put in a module instead. It can be geometry or transformations or a combination of both. On 9 January 2017 at 17:52, adrian <adrianh.bsc@gmail.com> wrote: > Marijan Pollak wrote > > Okay. Basically I can rename module by incapsulating it within other > > module. Still it is not same as assigning Object to name, unless > > Module is compiled just once which basicaly save Object for reuse. > > You're right, it is not the same. It is a description of the object, with > parameters stating how to modify the object. > > > Marijan Pollak wrote > > Your Shorcut list does not explain things like what is first operand and > > which is second, does first is subtracted from second or second > > from first. > > I'm not sure what shortcut list you are referring to, but the operator > difference() { a0(); a1();... aN(); } is like saying take object a0 and > subtract objects a1, a2 all the way to aN from it. > > Good luck on your endeavours. > > > > > -- > View this message in context: http://forum.openscad.org/ > Export-Stl-File-module-tp19829p19988.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 >