-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Basic cone generates bugged geometry #916
Comments
It seems like the problem may be in display and not in the object itself. If I do: sections = [section(c, Plane.XY.offset(height)) for height in [8, 9, 9.5, 9.75]]
calculated_volume = pi * 10**2 * 20 / 3
print(calculated_volume, c.volume, abs(calculated_volume - c.
the volumes are the same and the sections look as follows: Any suggestion on how to isolate this to a build123d vs display problem? |
F3D can open both from pathlib import Path
from build123d import Cone, export_brep
from build123d.vtk_tools import to_vtkpoly_string
cone = Cone(10, 0, 20)
export_brep(cone, "/tmp/cone.brep")
Path("/tmp/cone.vtp").write_text(to_vtkpoly_string(cone)) Triangulation looks ok on both On the build123d/src/build123d/vtk_tools.py Line 116 in e9c6b93
|
Looks like the cone itself is fine but there's something going on when exporting through VTK. with |
Gives:

The text was updated successfully, but these errors were encountered: