Collect all instances of all coordinates in one table. This complementary to the sc_path of an object, since the number of coordinates per path gives a structural mapping into this set.

Collect all coordinates in one table, the path_link_vertex table has the information about the original grouping.

sc_coord(x, ...)

# S3 method for class 'list'
sc_coord(x, ...)

# Default S3 method
sc_coord(x, ...)

# S3 method for class 'matrix'
sc_coord(x, ...)

# S3 method for class 'ARC'
sc_coord(x, ...)

# S3 method for class 'PATH'
sc_coord(x, ...)

# S3 method for class 'TRI'
sc_coord(x, ...)

# S3 method for class 'PATH0'
sc_coord(x, ...)

# S3 method for class 'SC0'
sc_coord(x, ...)

# S3 method for class 'SC'
sc_coord(x, ...)

# S3 method for class 'sf'
sc_coord(x, ...)

# S3 method for class 'sfc'
sc_coord(x, ...)

# S3 method for class 'pslg'
sc_coord(x, ...)

# S3 method for class 'sfc_MULTILINESTRING'
sc_coord(x, ...)

# S3 method for class 'sfc_POLYGON'
sc_coord(x, ...)

# S3 method for class 'sfc_LINESTRING'
sc_coord(x, ...)

# S3 method for class 'sfc_MULTIPOINT'
sc_coord(x, ...)

# S3 method for class 'MULTIPOLYGON'
sc_coord(x, ...)

# S3 method for class 'POLYGON'
sc_coord(x, ...)

# S3 method for class 'MULTILINESTRING'
sc_coord(x, ...)

# S3 method for class 'LINESTRING'
sc_coord(x, ...)

# S3 method for class 'MULTIPOINT'
sc_coord(x, ...)

# S3 method for class 'POINT'
sc_coord(x, ...)

# S3 method for class 'Spatial'
sc_coord(x, ...)

# S3 method for class 'Polygons'
sc_coord(x, ...)

# S3 method for class 'Lines'
sc_coord(x, ...)

Arguments

x

input model

...

arguments passed to methods

Value

data frame of all the coordinates in the order they occur

See also

sc_path for the central part of the model, sc_object for the features, and PATH for the full model.

Examples

sc_coord(minimal_mesh)
#> # A tibble: 19 × 2
#>       x_    y_
#>    <dbl> <dbl>
#>  1  0     0   
#>  2  0     1   
#>  3  0.75  1   
#>  4  1     0.8 
#>  5  0.5   0.7 
#>  6  0.8   0.6 
#>  7  0.69  0   
#>  8  0     0   
#>  9  0.2   0.2 
#> 10  0.5   0.2 
#> 11  0.5   0.4 
#> 12  0.3   0.6 
#> 13  0.2   0.4 
#> 14  0.2   0.2 
#> 15  0.69  0   
#> 16  0.8   0.6 
#> 17  1.1   0.63
#> 18  1.23  0.3 
#> 19  0.69  0   
sc_coord(SC(minimal_mesh))
#> # A tibble: 32 × 2
#>       x_    y_
#>    <dbl> <dbl>
#>  1  0      0  
#>  2  0      1  
#>  3  0      1  
#>  4  0.75   1  
#>  5  0.75   1  
#>  6  1      0.8
#>  7  1      0.8
#>  8  0.5    0.7
#>  9  0.5    0.7
#> 10  0.8    0.6
#> # ℹ 22 more rows