Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constrained triangulation on XYZ (needs z-capture-copy) #117

Open
mdsumner opened this issue Mar 31, 2020 · 2 comments
Open

constrained triangulation on XYZ (needs z-capture-copy) #117

mdsumner opened this issue Mar 31, 2020 · 2 comments

Comments

@mdsumner
Copy link
Member

mdsumner commented Mar 31, 2020

FINALLY, this is the resolution to what @MilesMcBain was trying - I think.

Also, #56

The solution is mapped out in DEL0.PATH0 in the block for degenerate paths (points, multipoints). The vertices are made distinct in XYZ, triangulation of edges is done in XY with Z handed to RTriangle via $PA.

Apologies for the noise @MilesMcBain , pretty sure I can achieve this now. :)

@mdsumner mdsumner mentioned this issue Mar 31, 2020
@mdsumner
Copy link
Member Author

also #43

@mdsumner
Copy link
Member Author

mdsumner commented Apr 1, 2020

Working in 89f1a5

rr <- raster::raster(volcano, xmn  = 0, xmx = ncol(volcano), ymn = 0, ymx = nrow(volcano))
p <- PATH0(raster::rasterToContour(rr))
p$vertex$z_ <- raster::extract(rr, p$vertex[1:2], method = "bilinear")

dl <- DEL0(p, max_area = .5)
dl$object$color_ <- colourvalues::color_values(as.numeric(dl$object$level))

plot3d(dl, color = "grey")
plot3d(p, add = TRUE, lwd = 6, line_antialias = TRUE)
auto_3d()

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant