projection.points.2.5D | R Documentation |
This function projects any 3D points onto 2.5D triangular mesh.
projection.points.2.5D(mesh, locations)
mesh |
A mesh.2.5D object representing the triangular mesh, created by create.mesh.2.5D. |
locations |
3D points to be projected onto 2.5D triangular mesh. |
3D points projected onto 2.5D triangluar mesh.
library(fdaPDE) ## Upload the hub2.5D the data data(hub2.5D) hub2.5D.nodes = hub2.5D$hub2.5D.nodes hub2.5D.triangles = hub2.5D$hub2.5D.triangles ## Create mesh mesh = create.mesh.2.5D(nodes = hub2.5D.nodes, triangles = hub2.5D.triangles) ## Create 3D points to be projected x <- cos(seq(0,2*pi, length.out = 9)) y <- sin(seq(0,2*pi, length.out = 9)) z <- rep(0.5, 9) locations = cbind(x,y,z) ## Project the points on the mesh loc = projection.points.2.5D(mesh, locations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.