fm_manifold {fmesher}R 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_get(x)

## Default S3 method:
fm_manifold_get(x)

## S3 method for class 'character'
fm_manifold_get(x)

## S3 method for class 'fm_lattice_2d'
fm_manifold_get(x)

## S3 method for class 'fm_lattice_Nd'
fm_manifold_get(x)

fm_manifold_type(x)

fm_manifold_dim(x)

Arguments

x

An object with manifold information, or a character string

type

character; if NULL (the default), returns the manifold definition string by calling fm_manifold_get(x). 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_get(): character or NULL

fm_manifold_type(): character or NULL; "M" (curved manifold), "R" (flat space), "S" (generalised spherical space), "T" (general tensor product space), or "G" (metric graph)

fm_manifold_dim(): integer or NULL

Functions

Examples

fm_manifold_get(fmexample$mesh)
fm_manifold(fmexample$mesh)
fm_manifold(fmexample$mesh, "R2")
fm_manifold_type(fmexample$mesh)
fm_manifold_dim(fmexample$mesh)

[Package fmesher version 0.5.0 Index]