Learn R Programming

fdaPDE (version 1.1-21)

projection.points.2.5D: Project 3D points onto 2D 2.5D triangular mesh

Description

This function projects any 3D points onto 2.5D triangular mesh.

Usage

projection.points.2.5D(mesh, locations)

Value

3D points projected onto 2.5D triangluar mesh.

Arguments

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab