Skip to content

Surfaces missing when rendered with SolidModels, depending on MeshSized #57

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

Open
yfangad opened this issue May 22, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@yfangad
Copy link

yfangad commented May 22, 2025

Some of the surfaces created using SolidModels.extrude_z!() are missing when rendered with SolidModels. Whether this problem occurs or not seems to depend on what MeshSized is used.
After modifying the following code in render! solidmodel/render.jl, changing remove_object=true to remove_object=false , the problem goes away and all the surfaces can be obtained.

        if isa(kernel(sm), OpenCascade)
            # Only OpenCascade supports boolean union.
            sm[h_name] = union_geom!(sm[h_name, 2], sm[h_name, 2], remove_object=true)
        end
@yfangad yfangad added the bug Something isn't working label May 22, 2025
@gpeairs
Copy link
Member

gpeairs commented May 28, 2025

Possibly related: in experimenting with this I've found that overlapping or adjoining extrusions are problematic in general, especially but not necessarily with MeshSized. Taking the union before extrusion helps but usually only without MeshSized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants