Blender V4.3
obj_import_nurbs.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BKE_curve.hh"
12
13#include "BLI_utility_mixins.hh"
14
15#include "DNA_curve_types.h"
16
17#include "obj_import_objects.hh"
18
19namespace blender::io::obj {
20
25 private:
26 const Geometry &curve_geometry_;
27 const GlobalVertices &global_vertices_;
28
29 public:
30 CurveFromGeometry(const Geometry &geometry, const GlobalVertices &global_vertices)
31 : curve_geometry_(geometry), global_vertices_(global_vertices)
32 {
33 }
34
36
37 Object *create_curve_object(Main *bmain, const OBJImportParams &import_params);
38
39 private:
43 void create_nurbs(Curve *curve);
44};
45} // namespace blender::io::obj
CurveFromGeometry(const Geometry &geometry, const GlobalVertices &global_vertices)
Object * create_curve_object(Main *bmain, const OBJImportParams &import_params)