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

View source: R/mesh.R

projection.points.2.5DR Documentation

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)

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.

Value

3D points projected onto 2.5D triangluar mesh.

Examples

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)

fdaPDE documentation built on March 7, 2023, 5:28 p.m.