Skip to contents

This function update the from and to indexes.

Usage

update_trimesh_index(trimesh_data)

Arguments

trimesh_data

A tibble that contains wireframe data.

Value

A tibble that contains the updated edge information.

Examples

tr_from_to_df <- scurve_model_obj$trimesh_data
update_trimesh_index(trimesh_data = tr_from_to_df)
#> # A tibble: 10 × 8
#>     from    to x_from y_from  x_to  y_to from_count to_count
#>    <int> <int>  <dbl>  <dbl> <dbl> <dbl>      <dbl>    <dbl>
#>  1     2     6  0.442 0.101  0.400 0.173         11       11
#>  2     2     3  0.442 0.101  0.526 0.101         11       12
#>  3     7     8  0.567 0.173  0.651 0.173         14       11
#>  4     1     4  0.818 0.0288 0.776 0.101         12       12
#>  5     4     5  0.776 0.101  0.859 0.101         12       12
#>  6     9    10  0.776 0.245  0.734 0.318         11       12
#>  7    11    12  0.400 0.751  0.442 0.823         11       12
#>  8    13    14  0.109 1.11   0.192 1.11          13       14
#>  9     3     7  0.526 0.101  0.567 0.173         12       14
#> 10     1     5  0.818 0.0288 0.859 0.101         12       12