fix: add default constructors to NurbsCurve and NurbsSurface
CI / Build & Test (push) Failing after 38s
CI / Release Build (push) Failing after 41s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled

This commit is contained in:
茂之钳
2026-07-24 14:26:47 +00:00
parent ebce6abdd6
commit 00ea90b522
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ public:
* {1, sqrt2/2, 1, sqrt2/2, 1, sqrt2/2, 1}, 3);
* @endcode
*/
NurbsCurve() : degree_(0) {} // degenerate empty curve
NurbsCurve(std::vector<Point3D> control_points, std::vector<double> knots,
std::vector<double> weights, int degree);
+1
View File
@@ -35,6 +35,7 @@ public:
* NurbsSurface sphere(grid, u_knots, v_knots, weights, 3, 3);
* @endcode
*/
NurbsSurface() : degree_u_(0), degree_v_(0) {} // degenerate empty surface
NurbsSurface(std::vector<std::vector<Point3D>> control_grid,
std::vector<double> knots_u, std::vector<double> knots_v,
std::vector<std::vector<double>> weights,