Given a `PATH`` model decompose to 1-dimensional primitives (or 0-dimensional).

sc_segment(x, ...)

# S3 method for default
sc_segment(x, ...)

# S3 method for PATH
sc_segment(x, ...)

Arguments

x

input object

...

arguments passed to methods

Value

data frame of the segments, each occurence of an edge and its order

Examples

sc_segment(SC(minimal_mesh))
#> # A tibble: 16 × 6
#>    object_ edge_  native_ .vx0   .vx1   segment_
#>    <chr>   <chr>  <lgl>   <chr>  <chr>  <chr>   
#>  1 SYMsbh  d8oXdL TRUE    AhD4Qf jLSt4z sjPwnG  
#>  2 SYMsbh  1LvC0q TRUE    jLSt4z QMg4Qq qfwETs  
#>  3 SYMsbh  danMHG TRUE    QMg4Qq TBHIKs HPNyc2  
#>  4 SYMsbh  4xTAvZ FALSE   9QmpOa TBHIKs ifyUuJ  
#>  5 SYMsbh  gv5kaQ TRUE    9QmpOa te3c1B 6rdQHi  
#>  6 SYMsbh  tZfshY FALSE   wpx4IR te3c1B Hx4Gf5  
#>  7 SYMsbh  D6vBe0 FALSE   AhD4Qf wpx4IR 43EpTO  
#>  8 SYMsbh  EvdEkG TRUE    sCsx68 wqcybI LhUW0U  
#>  9 SYMsbh  iqVvgV TRUE    wqcybI 1aPYe9 bw1p11  
#> 10 SYMsbh  vgrzJq FALSE   gaykKJ 1aPYe9 rDB4KV  
#> 11 SYMsbh  H608yb FALSE   OmRmce gaykKJ KNQsgh  
#> 12 SYMsbh  zYaUVm FALSE   sCsx68 OmRmce VhElH5  
#> 13 pg8AFO  tZfshY TRUE    wpx4IR te3c1B EuXqte  
#> 14 pg8AFO  FClFCq TRUE    te3c1B 3WskxI 7OACth  
#> 15 pg8AFO  wUCh6o TRUE    3WskxI zlSHCD 5Ku97j  
#> 16 pg8AFO  RA8hrw FALSE   wpx4IR zlSHCD veaZiR