[OpenSCAD] When modules are cached?

nop head nop.head at gmail.com
Mon Oct 28 12:04:17 EDT 2019


Projection is very slow because it uses CGAL. I wonder if 2D geometry gets
cached because all the other 2D ops are very fast.

On Mon, 28 Oct 2019 at 15:59, Ronaldo Persiano <rcmpersiano at gmail.com>
wrote:

>
> 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.
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191028/b4597379/attachment.html>


More information about the Discuss mailing list