Skip to content
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

ERROR: The given mesh is not closed! #5146

Closed
quiet-ranger opened this issue May 19, 2024 · 1 comment
Closed

ERROR: The given mesh is not closed! #5146

quiet-ranger opened this issue May 19, 2024 · 1 comment

Comments

@quiet-ranger
Copy link

Describe the bug
I get this error with a very simple polyhedron with 5 faces only and I am not sure how to fix it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new file with the following contents:
module sample() {
    polyhedron(
        points=[
          [0,0,0],[0,4,0],[4,0,0],[0,0,10],[0,4,10],[4,0,10]
        ],
        faces=[[0,1,2],[3,4,5],[1,4,5,2],[0,1,4,3],[0,3,5,2]
      ]
    );
}

sample();
  1. Save the file
  2. Press F6 to Render
  3. From menu select Design / Check Validity
  4. See error

Expected behavior
A more informative error of what exactly is wrong with the model

Code reproducing the issue
N/A

Screenshots
N/A

Environment and Version info (please complete the following information):

  • OS: Linux Mint 21.3
  • System: PC 64-bit
  • OpenSCAD Version 2021.01 installed via flatpak install openscad

Library & Graphics card information
N/A

Additional context
N/A

@UBaer21
Copy link
Contributor

UBaer21 commented May 19, 2024

try faces=[ [0,2,1],[3,4,5],[2,5,4,1],[0,1,4,3],[0,3,5,2] ]
With F12 you can see faces with wrong normal

more here https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#Mis-ordered_faces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants