surface_poly_fit.cli¶
Fit a Monge polynomial to vertex neighbourhoods (for all vertices of a mesh).
usage: surface_poly_fit [-h] [-l {NONE,CRITICAL,ERROR,WARNING,INFO,DEBUG}]
[-o OUTPUT_FILE] [-p DEGREE_POLY_FIT]
[-m DEGREE_MONGE] [-r NUM_RINGS]
[--poly_fit_basis_type {PCA,VERTEX_NORMAL,RING_NORMAL_MEAN,RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN,RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN_SIGMA}]
[--poly_fit_basis_gaussian_sigma POLY_FIT_BASIS_GAUSSIAN_SIGMA]
mesh_file
Positional Arguments¶
- mesh_file
Mesh file path.
Named Arguments¶
- -l, --log_level
Possible choices: NONE, CRITICAL, ERROR, WARNING, INFO, DEBUG
Amount of logging.
Default: “INFO”
- -o, --output_file
Name of the .npz file containing per-vertex poly-fit info.
- -p, --degree_poly_fit
Degree of polynomial fit to the surface.
Default: 2
- -m, --degree_monge
Degree of monge-polynomial form.
Default: 2
- -r, --num_rings
List of neighbourhood-ring sizes.
Default: “[2, 4, 8]”
- --poly_fit_basis_type
Possible choices: PCA, VERTEX_NORMAL, RING_NORMAL_MEAN, RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN, RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN_SIGMA
How the polynomial fitting basis is determined from the neighbourhood-ring of vertex-coorindates and/or the vertex-normals.
Default: “RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN”
- --poly_fit_basis_gaussian_sigma
The sigma value used when calculating Gaussian weights for RING_NORMAL_GAUSSIAN_WEIGHTED_MEAN_SIGMA polynomial fitting basis.
Default: 2.0