dot-cluster_patch: Assign patch coordinates to one of two surfaces

.cluster_patchR Documentation

Assign patch coordinates to one of two surfaces

Description

Classifies 3D coordinates of mesh vertices into one of two groups representing intersecting surfaces.

Usage

.cluster_patch(coords, normals, rad, lambda)

Arguments

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 coords.

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.

Details

This is a translation of c++ code from the Meshlab Virtual Goniometer plugin developed by the AMAAZE consortium

Value

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).

Examples

## 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)

cornelmpop/Lithics3D documentation built on Feb. 10, 2024, 11:54 p.m.