Reads all elements of a given vector from an input stream. NB: this is a global function and a friend of the Vec3D class!
405 unsigned mu, mv, nu, nv;
412 std::vector<double> knotsU;
414 for (
auto& k : knotsU) is >> k;
417 std::vector<double> knotsV;
419 for (
auto& k : knotsV) is >> k;
422 std::vector<std::vector<Vec3D>> controlPoints;
423 controlPoints.resize(nu);
424 for (
auto& cp0 : controlPoints) {
426 for (
auto& cp : cp0) is >> cp;
430 std::vector<std::vector<double>> weights;
432 for (
auto& w0 : weights) {
434 for (
auto& w : w0) is >> w;
437 a.
set(knotsU,knotsV,controlPoints,weights);
442 if (dummy ==
"closedInUV")
448 if (dummy ==
"periodicInUV")
void set(const std::vector< double > &knotsU, const std::vector< double > &knotsV, const std::vector< std::vector< Vec3D >> &controlPoints, const std::vector< std::vector< double >> &weights)
Definition: NurbsSurface.cc:60