Learn R Programming

tcie (version 0.3)

BettiNumbers: Returns the Betti numbers of a given mesh.

Description

This function returns the Betti numbers b0, b1 and b2, which represents the number of connected components, the number of independent tunnelsand the number of closed regions in space, respectively. The function implementation followsthe algorithms described by Konkle, Moran, Hamann, and Joy in the work Fast Methods for Computing Isosur-face Topology with Betti Numbers.

Usage

BettiNumbers(file_path)

Arguments

file_path

A string: the path to a triangular mesh file in the ply format

Examples

Run this code
# NOT RUN {
BettiNumbers(system.file("extdata", "m3.ply", package = "tcie"))
# }

Run the code above in your browser using DataLab