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
Problem rendering roof difference #4449
Comments
Here is another example. This creates a round roof by stacking multiple scaled roof objects to create a curve. The problem seems to be in roof_for_height() which is used in both examples. This one produces CGAL assertion errors when rendering. Again, the preview is correct and the roof objects seem to be absent from the render result.
|
I reduced the last example down even further to this:
In the render, the intersection has not been applied, and several polygons are missing from the surface. Each time I do "flush caches" and re-render, the missing polygons change. Sometimes it produces assertions on the console, but not always. Here is an example of the assertions:
|
Version 2022.12.07 (Nightly snap)
I'm trying to take an arbitrary 2D shape and subtract the roof() from the linear_extrude() and in this specific example it fails to render. The result is just the linear extrude - nothing is subtracted. No errors are produced in the console, but I do see "WARNING: Warning: mesh is not closed!". The preview displays correctly. Changing $fa or adding a small offset() to one of the objects prevents this from happening and the render result is as expected.
Code (I wasn't able to reduce this any further and still reproduce):
Preview (correct):
Render (incorrect):
When highlighting the roof object, it doesn't seem to be the expected shape. For example here it is z-fighting with the outside of the extrude object. Those polygons simply shouldn't exist in the roof object.
Other observations: changing $fa makes the problem go away, as does adding a small negative offset before applying roof.
The text was updated successfully, but these errors were encountered: