surface_poly_fit.core.MongeJetFitter.fit_at_vertex

MongeJetFitter.fit_at_vertex(self: surface_poly_fit._spf_cgal.MongeJetFitter, vertex_index: int, num_rings: int = 1, fit_basis_type: surface_poly_fit._spf_cgal.MongeJetFitter.FittingBasisType = <FittingBasisType.VERTEX_NORMAL: 1>) object

Fits a polynomial surface to the neigbourhood of vertices of vertex with index vertex_index.

Parameters:
  • vertex_index (int) – Fit polynomial to neighbourhood vertices of this vertex.

  • num_rings (int) – Size the neighbourhood. Vertices within num_rings edge-hops of the vertex_index vertex are used in the polynomial-surface fitting.

  • fit_basis_type (MongeJetFitter.FittingBasisType) – This specifies the method used to calculate the \(z\) direction of the fitting coordinate system. See FittingBasisType Descriptions.

Return type:

numpy.ndarray

Returns:

A (1,) shaped structured array containing fitting results. See Fitting Result Array Field Definitions.