matrix_to_simplicial_complex: Convert 2d function to simplicial complex

View source: R/simulated_data_generation.R

matrix_to_simplicial_complexR Documentation

Convert 2d function to simplicial complex

Description

Using Rvcg, we turn a matrix into a triangular simplicial complex.

Usage

matrix_to_simplicial_complex(matrix, grid_length)

Arguments

matrix

(nx3 matrix) The matrix we want to convert into a simplicial complex

grid_length

(float): The length of the grid for which the shape is defined on.

Value

complex (list) : List of metadata about our mesh; the vertex coordinates, edge positions, and face positions.


lcrawlab/SINATRA documentation built on Sept. 13, 2023, 2 p.m.