Build 3D brick model with rgl

build_bricks(brick_list, background_color = "white", rgl_lit = TRUE,
  outline_bricks = FALSE, trans_alpha = 0.5, view_levels = NULL)

Arguments

brick_list

List output from collect_bricks(). Contains an element Img_lego.

background_color

Default 'white'. Color of the background.

rgl_lit

Default 'TRUE'. Include RGL lighting features in rendering.

outline_bricks

Default 'FALSE'. Include black outlines around brick edges. Set to 'TRUE' and rgl_lit='FALSE' for cartoon-looking bricks.

trans_alpha

Default 0.5. Alpha level for transparent bricks.

view_levels

Numeric array of Levels/z values to display. Leave as 'NULL' to include all.

brick_type

Type of brick to use. Default is 'brick'. Other option is 'plate', which is 1/3 the height of a brick.

Value

3D brick model rendered in the 'rgl' package.

See also

Examples

if (FALSE) { #This is a brick brick <- data.frame( Level="A", X1 = rep(3,4), #The number 3 is the brickrID for 'bright red' X2 = rep(3,4) ) brick %>% bricks_from_table() %>% build_bricks() }