fix: add default constructors to NurbsCurve and NurbsSurface
This commit is contained in:
@@ -38,6 +38,7 @@ public:
|
|||||||
* {1, sqrt2/2, 1, sqrt2/2, 1, sqrt2/2, 1}, 3);
|
* {1, sqrt2/2, 1, sqrt2/2, 1, sqrt2/2, 1}, 3);
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
|
NurbsCurve() : degree_(0) {} // degenerate empty curve
|
||||||
NurbsCurve(std::vector<Point3D> control_points, std::vector<double> knots,
|
NurbsCurve(std::vector<Point3D> control_points, std::vector<double> knots,
|
||||||
std::vector<double> weights, int degree);
|
std::vector<double> weights, int degree);
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public:
|
|||||||
* NurbsSurface sphere(grid, u_knots, v_knots, weights, 3, 3);
|
* NurbsSurface sphere(grid, u_knots, v_knots, weights, 3, 3);
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
|
NurbsSurface() : degree_u_(0), degree_v_(0) {} // degenerate empty surface
|
||||||
NurbsSurface(std::vector<std::vector<Point3D>> control_grid,
|
NurbsSurface(std::vector<std::vector<Point3D>> control_grid,
|
||||||
std::vector<double> knots_u, std::vector<double> knots_v,
|
std::vector<double> knots_u, std::vector<double> knots_v,
|
||||||
std::vector<std::vector<double>> weights,
|
std::vector<std::vector<double>> weights,
|
||||||
|
|||||||
Reference in New Issue
Block a user