We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xy <- matrix( c(0, 0, 1, 0, 0.707, 0.707, 0, 1, -0.707, 0.707, -1, 0, -0.707, -0.707, 0, -1, 0.707, -0.707, 2, 0, 1.414, 1.414, 0, 2, -1.414, 1.414, -2, 0, -1.414, -1.414, 0, -2, 1.414, -1.414, 3, 0, 2.121, 2.121, 0, 3, -2.121, 2.121, -3, 0, -2.121, -2.121, 0, -3, 2.121, -2.121, 4, 0, 2.828, 2.828, 0, 4, -2.828, 2.828, -4, 0, -2.828, -2.828, 0, -4, 2.828, -2.828), 33, 2, byrow = TRUE ) igraph::convex.hull(xy) $resverts [1] 31 30 29 28 3 27 26 25 32 $rescoords [,1] [,2] [1,] 0.000 -4.000 [2,] -2.828 -2.828 [3,] -4.000 0.000 [4,] -2.828 2.828 [5,] 0.000 1.000 [6,] 0.000 4.000 [7,] 2.828 2.828 [8,] 4.000 0.000 [9,] 2.828 -2.828
xy <- matrix( c(0, 0, 1, 0, 0.707, 0.707, 0, 1, -0.707, 0.707, -1, 0, -0.707, -0.707, 0, -1, 0.707, -0.707, 2, 0, 1.414, 1.414, 0, 2, -1.414, 1.414, -2, 0, -1.414, -1.414, 0, -2, 1.414, -1.414, 3, 0, 2.121, 2.121, 0, 3, -2.121, 2.121, -3, 0, -2.121, -2.121, 0, -3, 2.121, -2.121, 4, 0, 2.828, 2.828, 0, 4, -2.828, 2.828, -4, 0, -2.828, -2.828, 0, -4, 2.828, -2.828), 33, 2, byrow = TRUE )
igraph::convex.hull(xy) $resverts [1] 31 30 29 28 3 27 26 25 32 $rescoords [,1] [,2] [1,] 0.000 -4.000 [2,] -2.828 -2.828 [3,] -4.000 0.000 [4,] -2.828 2.828 [5,] 0.000 1.000 [6,] 0.000 4.000 [7,] 2.828 2.828 [8,] 4.000 0.000 [9,] 2.828 -2.828
[5, ] 0.000 1.000 is not in the convex hull
tr <- tri.mesh(xy[, 1], xy[, 2]) tripack::convex.hull(tr) $x [1] 4.000 2.828 0.000 -2.828 -4.000 -2.828 0.000 2.828 $y [1] 0.000 2.828 4.000 2.828 0.000 -2.828 -4.000 -2.828 $i [1] 26 27 28 29 30 31 32 33
The text was updated successfully, but these errors were encountered:
Indeed. Thanks for reporting this!
Sorry, something went wrong.
fixed a bug in convex hull calculation, closes #805
c4b53ab
ntamas
No branches or pull requests
[5, ] 0.000 1.000
is not in the convex hull
The text was updated successfully, but these errors were encountered: