ptinpoly: Point-in-Polyhedron Test (2D and 3D)

Function pip3d() tests whether a point in 3D space is within, exactly on, or outside an enclosed surface defined by a triangular mesh. Function pip2d() tests whether a point in 2D space is within, exactly on, or outside a polygon. For a reference, see: Liu et al., A new point containment test algorithm based on preprocessing and determining triangles, Computer-Aided Design 42(12):1143-1150.

Getting started

Package details

AuthorJose M. Maisog, Yuan Wang, George Luta, Jianfei Liu
MaintainerJose M. Maisog <>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the ptinpoly package in your browser

Any scripts or data that you put into this service are public.

ptinpoly documentation built on July 2, 2020, 3:12 a.m.