surface_poly_fit.cli.write_result_array¶
- surface_poly_fit.cli.write_result_array(output_file_name, result_ary, polyhedral_surface=None)[source]¶
Writes polynomial fit results and
polyhedral_surface
vertices, face-lists and vertex-normals to.npz
file. The fields within the written.npz
are:- “surface_poly_fit_results”
The
result_ary
.- “vertices”
The
polyhedral_surface.get_vertices()
.- “faces”
The
polyhedral_surface.get_faces()
.- “vertex_normals”
The
polyhedral_surface.get_vertex_normals()
.
- Parameters:
output_file_name (
str
) – Output file path fornumpy.savez_compressed()
file.result_ary (
numpy.ndarray
) – Polynomial fitting result array (e.g. as returned bysurface_poly_fit.core.MongeJetFitter.fit_all()
).polyhedral_surface (
surface_poly_fit.core.PolyhedralSurface
) – If notNone
, write vertices, faces and vertex-normals the.npz
file.