vertex normalization for general SC sets
Closed this issue · 2 comments
mdsumner commented
DEL won't work here because the edges got denormalized by copy_down (?)
DEL(copy_down(SC(cont_tas), "ELEVATION"))
[1] "edge_" "object_" "edge_vertex" "z_" "x_" "y_" "vertex_"
dropping untriangulatable objects
Error in RTriangle::pslg(P = as.matrix(x[["vertex"]][c("x_", "y_")]), :
Duplicated vertices in P.
mdsumner commented
as per comment in DEL.SC
## we need a pfft::edge_triangle_map
## https://github.com/hypertidy/silicate/issues/62#issuecomment-372898877
mdsumner commented
This can't really work because the copy down has split the mesh, so really each separate mesh should have DEL applied to individually. What we can now do though (having fixed hypertidy/silicate@ff38499 ) is
copy the elevation after DEL mesh:
(x <- copy_down(DEL(SC(cont_tas)), "ELEVATION"))
dropping untriangulatable objects
class : DEL
type : Primitive
vertices : 771 (3-space)
primitives : 257 (2-space)
crs : +proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
plot3d(x)