73{
76 data["type"] = MeshNodeEditor::MeshNodeType::Curve;
77 int i = 0;
78
79 for (ImVec2 point : curve)
80 {
82 tmp2["x"] = point.x;
83 tmp2["y"] = point.y;
84 tmp2["index"] = i++;
86 }
87
88 data["curve"] = tmp;
89 data[
"curveSize"] = curve.
size();
90 data["maxPoints"] = maxPoints;
91 data["axis"] = axis;
92 return data;
93}
size_type size() const noexcept
returns the number of elements
void push_back(basic_json &&val)
add an object to an array
a class to store JSON values