-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2020.12.RC2 Truncated console output on CGAL error. #3532
Comments
Oops - tip don't press Enter after typing the title... RC2. Render with CGAL error does not report cache stats or render time.
2019.05
|
Also should it say 'location unknown'? |
It appears the old code flow went through applyOperator(...) which starts with a nullptr CGAL_Nef_polyhedron*, allocates it upon adding the first item, built it up gradually, and then upon encountering an error returned the partially constructed result. The new code instead appears to go through the new applyUnion3D, constructs a priority_queue, and then only constructs a CGAL_Nef_polyhedron to return if it completes the process successfully. Otherwise it returns a nullptr. Then I suppose the stats are then not available if there's no top level geometry. Given that it's a failure to perform the operation, I'm not sure that there's any advantage to returning a partially constructed result as was done previously. |
Those stats are the cache, not the last rendered object. A successful render shows:
Those after the time are the object. |
Also, I have a console scraper, which is not used much, but having consistent output, such as 'Total rendering time...' & 'Rendering finished.' is much easier to parse. |
I'm not a deep C programmer, but I think the old code returned an empty object not a nullptr openscad/src/GeometryEvaluator.cc Lines 155 to 158 in 02da695
I'm not a good Git driver either, so I'm not sure how to reference the commit, here goes this one. |
No description provided.
The text was updated successfully, but these errors were encountered: