case_vpartition: Seperate an STL into several colors / bodies by logical rules

Description Usage Arguments

View source: R/partition_column.R

Description

Seperate an STL into several colors / bodies by logical rules

Usage

1

Arguments

STL

an STL object

...

A series of two-sided formulas. As with dplyr's case_when function, the left-hand-side (LHS) determines which values match this case. The right-hand-side determines which STL the column should be separated into.

formulas can have references to 'top', 'x', 'y', 'z' and 'bot.' 'z' is shorthand for 'top', which refers to the z value of the top surface at any point. 'x' and 'y' refer to the x and y coordinates at any point, and 'bot' refers to the z value of the bottom surface.


beniaminogreen/STLcraft documentation built on June 4, 2020, 7:14 p.m.