Description Usage Format Examples

This is sample data that defines a simple cube: eight vertices, and twelve triangles that make up the six faces.

Also included is an example matrix `queries`

of five test points.
The first test point is contained within the cube, the second
through fourth test points lie exactly on the surface of the
cube, and the fifth test point lies outside the cube.

1 2 3 |

`verts`

is an 8 by 3 matrix containing the XYZ coordinates of the vertices of a simple cube.

`faces`

is a 12 by 3 matrix containing the indices of the vertices defining the twelve
triangular faces making up the surface of the cube.

`queries`

is a 5 by 3 matrix containing the XYZ coordinates of five test points to be
tested for containment within the cube.

1 2 3 4 5 6 7 8 9 10 11 | ```
# Load sample data defining a simple cube.
data(verts)
data(faces)
# Also load sample data for five test points.
data(queries)
# Test whether each point in 'queries' is contained in
# the simple cube defined by 'verts' and 'faces'.
# This should return "1 0 0 0 -1".
containment = pip3d(verts,faces,queries);
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.