fix: step_export — missing <map>, auto deduction; step_import — NurbsCurve default ctor
CI / Build & Test (push) Failing after 36s
CI / Release Build (push) Failing after 31s

This commit is contained in:
茂之钳
2026-07-24 06:20:13 +00:00
parent 2e5308a35f
commit 38098ad3f9
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -3,6 +3,7 @@
#include "vde/curves/nurbs_surface.h"
#include <sstream>
#include <fstream>
#include <map>
#include <cmath>
namespace vde::brep {
@@ -226,7 +227,8 @@ struct StepWriter {
auto& cp = surf.control_points();
auto& w = surf.weights();
int du = surf.degree_u(), dv = surf.degree_v();
auto& ku = surf.knots_u(), kv = surf.knots_v();
const auto& ku = surf.knots_u();
const auto& kv = surf.knots_v();
// Control points list (row-major)
std::stringstream cpts_ss;
+2 -1
View File
@@ -1232,7 +1232,8 @@ private:
}
const auto& ent = entities_.at(ref);
curves::NurbsCurve nc;
// Default-construct with dummy line (NurbsCurve has no default ctor)
curves::NurbsCurve nc({Point3D(0,0,0), Point3D(1,0,0)}, {0,0,1,1}, {1,1}, 1);
try {
if (ent.type == "LINE")
nc = build_line_curve(ref);