Blender  V3.3
obj_export_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 "BLI_utility_mixins.hh"
10 
11 #include "DNA_curve_types.h"
12 
13 namespace blender::io::obj {
14 
22  private:
23  const Object *export_object_eval_;
24  const Curve *export_curve_;
25  float world_axes_transform_[4][4];
26 
27  public:
28  OBJCurve(const Depsgraph *depsgraph, const OBJExportParams &export_params, Object *curve_object);
29 
30  const char *get_curve_name() const;
31  int total_splines() const;
36  int total_spline_vertices(int spline_index) const;
40  float3 vertex_coordinates(int spline_index, int vertex_index, float scaling_factor) const;
49  int get_nurbs_degree(int spline_index) const;
53  short get_nurbs_flagu(int spline_index) const;
54 
55  private:
59  void set_world_axes_transform(eIOAxis forward, eIOAxis up);
60 };
61 
62 } // namespace blender::io::obj
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
eIOAxis
Definition: IO_orientation.h:7
int total_spline_vertices(int spline_index) const
int total_spline_control_points(int spline_index) const
short get_nurbs_flagu(int spline_index) const
int get_nurbs_degree(int spline_index) const
const char * get_curve_name() const
OBJCurve(const Depsgraph *depsgraph, const OBJExportParams &export_params, Object *curve_object)
float3 vertex_coordinates(int spline_index, int vertex_index, float scaling_factor) const
const Depsgraph * depsgraph