Error with Delaunay4Points: subscript out of bound

2019-08-10 19:40发布

I have this matrix:

v <- rbind(  c( -5, -5,  16 )  
           , c( -5,  8,   3 )  
           , c(  4, -1,   3 )  
           , c(  4, -5,   7 )  
           , c(  4, -1, -10 )  
           , c(  4, -5, -10 )  
           , c( -5,  8, -10 )  
           , c( -5, -5, -10 ))

And then:

> library(DatabionicSwarm)
Delaunay4Points(v, IsToroid = FALSE)

Error in UniqDelaunay[Uniq2DataInd, Uniq2DataInd] : 
  subscript out of bounds

Is it a bug ? Unfortunately there's no Github repo to fill an issue.

I've compared with another tool and the result should be:

[0,1,0,1,0,0,0,1]
[1,0,1,1,0,0,1,1]
[0,1,0,1,1,1,1,1]
[1,1,1,0,0,1,0,1]
[0,0,1,0,0,1,1,1]
[0,0,1,1,1,0,0,1]
[0,1,1,0,1,0,0,1]
[1,1,1,1,1,1,1,0]

标签: r delaunay
0条回答
登录 后发表回答