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

is_manifold() and is_valid discrepancy() #855

Open
CasperH2O opened this issue Jan 10, 2025 · 0 comments
Open

is_manifold() and is_valid discrepancy() #855

CasperH2O opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@CasperH2O
Copy link

As requested by @gumyr on Discord. Version 0.8.0 of b123d

The following code results in is_manifold stating true, while is_valid states false.

import build123d
from build123d import *
from ocp_vscode import *

length_width = 40.0

with BuildPart() as hook_part:
    with BuildLine() as hook:
        line_1 = Polyline([(0,20.0),(20.0,20.0),(20.0,0)])
    with BuildSketch(line_1 ^ 0) as b3:
        Rectangle(length_width,length_width)
    sweep(transition=Transition.ROUND)

show_object(hook_part)

print(f"\n{build123d.__version__}")
print(f"Amount of faces: {len(hook_part.part.faces())}")
print(f"is_valid: {hook_part.part.is_valid()}")
print(f"is_manifold: {hook_part.part.is_manifold}") # Holds water?

Terminal output:

Using port 3939 taken from config file
Jupyter console not installed
+
0.8.0
Amount of faces: 14
is_valid: False
is_manifold: True

image

@gumyr gumyr added the bug Something isn't working label Jan 14, 2025
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Jan 14, 2025
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