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

Default library fails at calculating convex hull #153

Open
fa-bien opened this issue Mar 7, 2019 · 0 comments
Open

Default library fails at calculating convex hull #153

fa-bien opened this issue Mar 7, 2019 · 0 comments

Comments

@fa-bien
Copy link

fa-bien commented Mar 7, 2019

In certain cases the default library does not compute the convex hull of a polyhedron correctly. Here is an MWE where only part of the convex hull is properly displayed:

using Polyhedra
using Makie

points = [[0.707107, -0.5, -0.5], [0.440874, 0.241093, -0.864583], [-0.157346, 0.800639, -0.578118], [-0.637081, 0.757287, 0.143682], [-0.637081, 0.143682, 0.757287], [-0.157346, -0.578118, 0.800639], [0.440874, -0.864583, 0.241093], [1.0, 1.0, 1.0]]

poly1 = polyhedron(vrep(points))
mesh1 = Polyhedra.Mesh(poly1)
scene = Scene()
mesh!(scene, mesh1, color=:white, alpha=0.4, transparency=true)
scatter!(scene, [ Tuple(p) for p in points ])
scatter!(scene, [ Tuple(p) for p in points ],
         marker=['1','2','3','4','5','6','7','8'],
         markersize=.2, marker_offset=Point3f0(0, 0, 30.0))

The incorrect behaviour also happens when visualising with MeshCat; it disappears when using CDDLib.

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

No branches or pull requests

1 participant