//============================================================================== void LRBSpline2D::read(istream& is) //============================================================================== { // @@sbr201301 Currently we are expecting the rational weight to be // included in file format, even for non-rational cases. int dim = -1; object_from_stream(is, dim); coef_times_gamma_.resize(dim); int rat = -1; object_from_stream(is, rat); rational_ = (rat == 1); object_from_stream(is, coef_times_gamma_); object_from_stream(is, gamma_); object_from_stream(is, weight_); object_from_stream(is, kvec_u_); object_from_stream(is, kvec_v_); coef_fixed_ = 0; }
//============================================================================== void LRBSpline2D::read(istream& is) //============================================================================== { // @@sbr201301 Currently we are expecting the rational weight to be // included in file format, even for non-rational cases. int dim = -1; object_from_stream(is, dim); coef_times_gamma_.resize(dim); int rat = -1; object_from_stream(is, rat); rational_ = (rat == 1); object_from_stream(is, coef_times_gamma_); object_from_stream(is, gamma_); // if (gamma_ < 1.0) // { // MESSAGE("DEBUGGING: Changing gamma from " << gamma_ << " to 1.0!"); // coef_times_gamma_ /= gamma_; // gamma_ = 1.0; // } object_from_stream(is, weight_); object_from_stream(is, kvec_u_); object_from_stream(is, kvec_v_); coef_fixed_ = 0; }