bff_place_image: Place an image interactively on the flattened mesh and see it...

Description Usage Arguments Value

View source: R/vis.R

Description

Place an image interactively on the flattened mesh and see it mapped to the original 3D mesh.

Usage

1
2
3
4
5
6
7
8
9
bff_place_image(
  x,
  expression = NULL,
  filename = NULL,
  tile = TRUE,
  bg = "white",
  alpha_flatten = FALSE,
  ...
)

Arguments

x

A bff_flattened object

expression

An R expression that generates an image.

filename

Alternative to expression: provide the file name of a png image directly

tile

If the image does not cover the whole flattened mesh, should it be tiled (e.g repeated) so that it fills the whole mesh? Also not implemented yet

bg

Background colour for if tile = FALSE.

alpha_flatten

Should the alpha channel be flattened? By default, parts of the mesh with completely transparent colours will be invisible. Flattening removes the alpha channel by layering the image over the bg colour

...

Further arguments passed to the graphic device is expression is not NULL

Value

A bff_textured object containing the original mesh with updated textcoords, its flattened version, and the image for texture mapping


rdinnager/rbff documentation built on Jan. 21, 2022, 2:08 p.m.