OpenSCAD too slow to display geometry (under linux)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSCAD too slow to display geometry (under linux)

adrianv
I'm running 2017.11.10 under Ubuntu 18.10 and I created a model that can be
rendered in a few seconds, but cannot be displayed my OpenSCAD on my linux
machine.  CPU utilization remains at 100% and the program is non-responsive.  
If I use the command line I can generate an STL file and load the model into
slic3r and view it without problems---slic3r reports that the model has 9248
facets. OpenSCAD says the CSG tree has 41561 elements.

Is this normal/expected behavior?  Or is this a bug I need to report?  



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD too slow to display geometry (under linux)

tp3
On 23.02.19 17:53, adrianv wrote:
> Is this normal/expected behavior?  Or is this a bug I need to report?

Without additional information and ideally the source of the model,
that is not possible to answer. It's trivial to make models that
behave like you describe without any bugs involved.

One case is described in the FAQ
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_the_preview_so_slow?

ciao,
   Torsten.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD too slow to display geometry (under linux)

adrianv
That's interesting.  So it appears the problem is a quirk of the preview
algorithm.  The page you referenced doesn't give the fix to this problem:  I
wrapped my model in render() and now I can view it without difficulty in
OpenSCAD.  



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org