The Parametric Pseudo-Manifold (PPS) Library 1.0
|
We provide a simple driver for testing the PPS library. The test code is in the file sampler-pnt
inside directory "bin". The test code generates a PPS from a PNT surface, using the pps::PPS::PPSfromPNT
class, and then samples the surface in a midpoint triangle subdivision manner. The code takes in a parameter which defines the sampling rate (a nonnegative integer number). The larger the sampling rate the larger the number of sample points. The test code output is a triangle mesh whose vertices are the sample points. Both the input and output meshes are stored in OFF files. The command-line to execute the test code is as follows:
sampler-pnt <arg1> <arg2>
where
arg1
is the name of an OFF file describing the input triangle mesh.arg2
is the sampling rate or level-of-detail of the output mesh.For instance,
sampler-pnt ./data/knot 3
generates two files: knot-pnt-pps-3.off
and knot-pnt-3.pps
. The former file contains a triangle mesh whose vertices are defined over the PPS, while the latter file contains a triangle mesh whose vertices are defined over the PNT surface from which the PPS was generated.
You can find some triangle meshes inside directory "data". You can also find code for generating PPS from Loop's subdivision surfaces. This code is inside directory "ppsfromloop" and has been partially documented.