Skip to contents

Print objects

Usage

# S3 method for fm_segm
print(x, ..., digits = NULL, verbose = TRUE, newline = TRUE)

# S3 method for fm_segm_list
print(x, ..., digits = NULL, verbose = FALSE, newline = TRUE)

# S3 method for fm_mesh_2d
print(x, ..., digits = NULL, verbose = FALSE)

# S3 method for fm_mesh_1d
print(x, ..., digits = NULL, verbose = FALSE)

# S3 method for fm_bbox
print(x, ..., digits = NULL, verbose = TRUE, newline = TRUE)

# S3 method for fm_crs
print(x, ...)

# S3 method for fm_CRS
print(x, ...)

Arguments

x

an object used to select a method.

...

further arguments passed to or from other methods.

digits

a positive integer indicating how many significant digits are to be used for numeric and complex x. The default, NULL, uses getOption("digits").

verbose

logical

newline

logical; if TRUE (default), end the printing with \n

Value

The input object x

Examples

fm_bbox(matrix(1:6, 3, 2))
#> Bounding box: (1,3) x (4,6)
print(fm_bbox(matrix(1:6, 3, 2)), verbose = FALSE)
#> (1,3) x (4,6)

print(fmexample$mesh)
#> fm_mesh_2d object:
#>   Manifold:	R2
#>   V / E / T:	298 / 860 / 563
#>   Euler char.:	1
#>   Constraints:	31 boundary edges (1 group: 1), 56 interior edges (1 group: 1)
#>   Bounding box: (-5.331027, 4.061656) x (-3.998161, 5.415609) x (0,0)
#>   Basis d.o.f.:	298
print(fmexample$boundary_fm)
#> 47 boundary edges (1 group: 1)
#> 27 boundary edges (1 group: 1)

print(fm_mesh_1d(c(1, 2, 3, 5, 7), degree = 2))
#> fm_mesh_1d object:
#>   Manifold:	R1
#>   #{knots}:	5
#>   Interval:	(1, 7)
#>   Boundary:	(neumann, neumann)
#>   B-spline degree:	2
#>   Basis d.o.f.:	4