.cluster_patch | R Documentation |
Classifies 3D coordinates of mesh vertices into one of two groups representing intersecting surfaces.
.cluster_patch(coords, normals, rad, lambda)
coords |
An Nx3 numeric matrix-like object where each row represents the x, y, and z coordinates of a mesh vertex. |
normals |
An Nx3 numeric matrix-like object where each row represents
the x, y, and z components of a normal vector corresponding to each vertex in
|
rad |
A positive numeric value representing the radius that influences the classification. |
lambda |
A positive numeric value used as a scaling factor in the classification calculation. |
This is a translation of c++ code from the Meshlab Virtual Goniometer plugin developed by the AMAAZE consortium
A numeric vector where each element corresponds to a point in
coords
and indicates the classification of that point into one of two
groups (1 or 2).
## Not run:
coords <- matrix(rnorm(300), ncol = 3)
normals <- matrix(rnorm(300), ncol = 3)
rad <- 1
lambda <- 0.5
classification <- Lithics3D:::.cluster_patch(coords, normals, rad, lambda)
print(classification)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.