[OpenSCAD] When modules are cached?

Ronaldo Persiano rcmpersiano at gmail.com
Mon Oct 28 11:58:28 EDT 2019


> I think it is geometry that is cached with key from the module parameters
> of the primitive that creates it. Are you sure they are all the same? and
> the $ variables?
>

There is no $ variables and not even parameters in the operator module. It
returns just a simple 2D rectangle so the remaining code should be fast.


> If the module has a lot of code that takes time to calculate, like a
> sweep, then that will be executed each time I think. It is only the
> geometry that isn't repeated.
>

It is not my case. It involves linear_extrude and projection though.

>   Is this F5 or F6?
>

F5

> What happens if you wrap it with a render?
>

No benefit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191028/070a8571/attachment.html>


More information about the Discuss mailing list