Skip to content

Commit

Permalink
raysearchMulti: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zarquon42b committed Oct 23, 2024
1 parent cb0f029 commit a6a3f44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/vcgRaySearch.r
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,18 @@ setRays <- function(coords, dirs) {
#' humface1 <- scalemesh(humface,size=1.1)
#' mesh <- mergeMeshes(humface,humface1) #get normals of landmarks
#' x <- vcgClost(humface.lm, humface)
# offset landmarks along their normals for a negative amount of -5mm
#' # offset landmarks along their normals for a negative amount of -5mm
#' x$vb[1:3,] <- x$vb[1:3,]+x$normals[1:3,]*-5
#'
#' myint <- raysearchMulti(x,mesh)
#' wire3d(mesh,col="white")
#' spheres3d(vert2points(x),radius=0.5,col=3)
#' plotNormals(x,length=55,lwd=2)
#' for (i in 1:length(myintersects$intersects))
#' for (i in 1:length(myint$intersects)) {
#' spheres3d(vert2points(myint$intersects[[i]])[which(as.logical(myint$intersects[[i]]$quality)),]
#' ,col=i)
#' }
#' }
#' @seealso \code{\link{vcgRaySearch}}
#' @export
raysearchMulti <- function(x,mesh, maxtol=1e15,threads=1,offset=1e-3) {
Expand Down
4 changes: 3 additions & 1 deletion man/raysearchMulti.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6a3f44

Please sign in to comment.