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 list
sc_coord(x, ...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# S3 method for 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.

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
#> # … with 22 more rows