Blender  V3.3
obj_import_nurbs.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "BKE_curve.h"
10 
11 #include "BLI_utility_mixins.hh"
12 
13 #include "DNA_curve_types.h"
14 
15 #include "obj_import_objects.hh"
16 
17 namespace blender::io::obj {
18 
23  private:
24  const Geometry &curve_geometry_;
25  const GlobalVertices &global_vertices_;
26 
27  public:
28  CurveFromGeometry(const Geometry &geometry, const GlobalVertices &global_vertices)
29  : curve_geometry_(geometry), global_vertices_(global_vertices)
30  {
31  }
32 
33  Object *create_curve(Main *bmain, const OBJImportParams &import_params);
34 
35  private:
39  void create_nurbs(Curve *curve);
40 };
41 } // namespace blender::io::obj
CurveFromGeometry(const Geometry &geometry, const GlobalVertices &global_vertices)
Object * create_curve(Main *bmain, const OBJImportParams &import_params)
Curve curve
Definition: BKE_main.h:121