View source: R/removeIntersect.r
removeIntersect | R Documentation |
This functions aims to translate two meshes to remove an intersection. This is done based on signed distance
removeIntersect(
reference,
target,
stepsize = 0.2,
maxit = 100,
tol = 1,
outside = TRUE,
gradthresh = -Inf,
gradn = Inf,
realign = FALSE,
minalign = 5,
alignthresh = 0.5,
visualize = FALSE,
silent = FALSE,
threads = 0,
alpha = 1
)
reference |
matrix or mesh |
target |
mesh of class mesh3d |
stepsize |
regularize the actual displacement |
maxit |
maximum iterations |
tol |
positive number: stop if intersection is less than |
outside |
logical: if TRUE the reference will be placed outside of the target. Inside otherwise |
gradthresh |
numerical: (abs) gradient threshold to determine convergence |
gradn |
integer: number of steps to include in computing gradient |
realign |
logical: if TRUE, |
alignthresh |
threshold which points to consider for realignment. For |
visualize |
logical: if TRUE watch the approximation |
silent |
logical: suppress messages |
threads |
number of threads to use for closest point search (0=auto) |
alpha |
value with |
This is a quite simple attempt to remove an intersection after the alignment of two meshes. This is achieved by translating reference
along the average difference vectors of all vertices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.