Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] In search for the limits of CGAL
- Date: Sun, 23 Aug 2020 18:01:42 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:CPyEgx/GbRaWL/9uRHKM819IXTAuvvDOBiVQ1KB+0OkeIJqq85mqBkHD//Il1AaPAdyFrasd1aGG6OjJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhTexe65+IAi3oAnetcQbj5ZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8JtkqxbrhKvqR9xzYHab46aNuZxc7jHct8GX2dMRNpdWiJDD466coABD/ABPeFdr4Tlu1YOqwaxBROyC+z10T9Dm3/40rch3OQ7EAHNwQstEMgIsHvJttX6Kr0dUfuvwKnG1zrMdOlW2Tbm5YjHbB8hpvSMUqxsccrLyUgvGRnKgUmMqYziJTOU1v4BvHSc7+plTO+ijXMspA5trDa13MgslpXJiZwPylDC7Sh03Ik4K9O8RUN0fdOpDJhdujyUOoZ1X88vXW9ltSUnxrAbpJK2YTYGxYkpyRDRdvCKd5WE7g7/WeqMPzt1hnNodbSijBi89kigz/fzVsiy0FtSqSpFisfDtnYW1xPP8MeIV+Fx/kC72TaAzwzT6+dEIVo1laXBMZIhzKQwm5wOukrABi/7gEr7ga6Mekk55uSl6/7rb7Xkq5OGKYN4lh3yPrwql8CjG+g0LxUCUmuB9eiiyLHu+Vf1TKtLg/EujqXVqozWKd4HqqKjHwNY1Jso5gi7Dze7y9QYgWcILEhYdhKGjonmJUnDLOz+APyimVqjii1ryOrDPrD5Ap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
Hello,
We have no idea how OpenSCAD uses CGAL.
What do you mean with " intersection of complex (3000+ elements) designs:"?
Maybe you can give us some example data sets and we can tell you
how to do
Boolean operations. Note that CGAL Boolean operations work for
volumes
given as triangle meshes, so in case you have spheres they have to
be
discretized by you.
Best regards,
Andreas
I recently posted a message in the OpenSCAD forum about slow performance on rendering.
http://forum.openscad.org/Slow-rendering-performance-and-high-memory-consumption-when-exporting-a-3D-STL-td29888.html
The problem is this: we use machine generated designs that might have up to 7,000 elements. At any time we want to make intersections of this design, effectively dividing it up into 20 to 100 slices of which we must gather properties like volume, centroid and inertia tensors. We use a post processor to add material properties as CGAL (and all other geometric engines) don’t know any material properties.
We thought this could be done by creating meshes (STL) from these intersection/slices in OpenSCAD but found out that OpenSCAD couldn’t do this. It uses memory up to 50+ GB and more and finally the system freezes due to a lack of resources. OpenSCAD community members suggested that this might be caused by the fact that CGAL uses fractional numbers for its (final?) rendering. In the OpenSCAD GUI, it still manages to calculate and render the intersection within a second but fails to do the final rendering prior to exporting the STL. So it seems there are two rendering strategies active at the same time: ‘quick’ and ‘slow but accurate’.
I also defined a benchmark in the above post where an intersection is to be calculated between a cuboid and a stacked series of rings that contain spheres. It turned out that OpenSCAD using the CGAL engine managed to do this in 42 minutes using 5GB of memory while two other packages (FreeCAD and AngelCad based on OpenCascade and CARVE respectively) managed to do this in a few seconds or even less. So there is a factor of 100 performance difference between CGAL and the rest which I consider as huge.
I therefore want to ask the experts for their opinion and guidance:
Your advice is greatly appreciated,
Pete
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
-- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] In search for the limits of CGAL, peter_osc, 08/21/2020
- Re: [cgal-discuss] In search for the limits of CGAL, Andreas Fabri, 08/23/2020
- RE: [cgal-discuss] In search for the limits of CGAL, peter_osc, 08/24/2020
- Re: [cgal-discuss] In search for the limits of CGAL, Sebastien Loriot (GeometryFactory), 08/24/2020
- Re: [cgal-discuss] In search for the limits of CGAL, Andreas Fabri, 08/23/2020
Archive powered by MHonArc 2.6.19+.