Skip to content

Commit

Permalink
vcgImport: keep indices integers. Fixes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
zarquon42b committed Jul 16, 2024
1 parent cb1b8c6 commit a0d4b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/vcgImport.r
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ vcgImport <- function(file, updateNormals = TRUE, readcolor=FALSE, clean = TRUE,

out$vb <- rbind(matrix(tmp$vb,3,length(tmp$vb)/3),1)
if (length(tmp$it))
out$it <- matrix(tmp$it,3,(length(tmp$it)/3))+1
out$it <- matrix(tmp$it,3,(length(tmp$it)/3))+1L
if (length(tmp$normals))
out$normals <- rbind(matrix(tmp$normals,3,length(tmp$normals)/3),1)
if (readcolor) {
Expand Down

0 comments on commit a0d4b7a

Please sign in to comment.