Guesses z coordinates and sorting order to more easily make 3D graphics with pmap_piece.

op_transform(
df,
...,
cfg = pp_cfg(),
envir = NULL,
op_angle = 45,
pt_thickness = 0.01,
as_top = character(0)
)

## Arguments

df A data frame with coordinates and dimensions in inches Ignored Piecepack configuration list or pp_cfg object, a list of pp_cfg objects, or a character vector of pp_cfg objects Environment (or named list) containing configuration list(s). Intended oblique projection angle (used for re-sorting) Thickness of pyramid tip i.e. value to add to the z-value of a pyramid top if it is a (weakly) smaller ranked pyramid (top) placed on top of a larger ranked pyramid (top). Character vector of components whose “side” should be converted to “top” e.g. c("pawn_face").

## Value

A tibble with extra columns added and re-sorted rows

## Details

The heuristics used to generate guesses for z coordinates and sorting order aren't guaranteed to work in every case. In some cases you may get better sorting results by changing the op_angle or the dimensions of pieces.

https://trevorldavis.com/piecepackr/3d-projections.html for more details and examples of oblique projections in piecepackr.
df <- tibble::tibble(piece_side="tile_back",