fm_manifold: Query the mesh manifold type

View source: R/manifold.R

fm_manifoldR Documentation

Query the mesh manifold type

Description

Extract a manifold definition string, or a logical for matching manifold type

Usage

fm_manifold(x, type = NULL)

fm_manifold_type(x)

fm_manifold_dim(x)

Arguments

x

A fm_mesh_1d or fm_mesh_2d object (or other object containing a manifold element)

type

character; if NULL (the default), returns the manifold definition string. If character, returns TRUE if the manifold type of x matches at least one of the character vector elements.

Value

fm_manifold(): Either logical (matching manifold type yes/no), or character (the stored manifold, when is.null(type) is TRUE)

fm_manifold_type(): character or NULL; "M", "R", or "S"

fm_manifold_dim(): integer or NULL

Examples

fm_manifold(fmexample$mesh)
fm_manifold_type(fmexample$mesh)
fm_manifold_dim(fmexample$mesh)

fmesher documentation built on Nov. 2, 2023, 5:35 p.m.