Blender
V3.3
|
#include <obj_export_nurbs.hh>
Public Member Functions | |
OBJCurve (const Depsgraph *depsgraph, const OBJExportParams &export_params, Object *curve_object) | |
const char * | get_curve_name () const |
int | total_splines () const |
int | total_spline_vertices (int spline_index) const |
float3 | vertex_coordinates (int spline_index, int vertex_index, float scaling_factor) const |
int | total_spline_control_points (int spline_index) const |
int | get_nurbs_degree (int spline_index) const |
short | get_nurbs_flagu (int spline_index) const |
Provides access to the a Curve Object's properties. Only CU_NURBS type is supported.
Definition at line 21 of file obj_export_nurbs.hh.
blender::io::obj::OBJCurve::OBJCurve | ( | const Depsgraph * | depsgraph, |
const OBJExportParams & | export_params, | ||
Object * | curve_object | ||
) |
Definition at line 18 of file obj_export_nurbs.cc.
References Object::data, DEG_get_evaluated_object(), depsgraph, OBJExportParams::forward_axis, and OBJExportParams::up_axis.
const char * blender::io::obj::OBJCurve::get_curve_name | ( | ) | const |
Definition at line 40 of file obj_export_nurbs.cc.
References Object::id, and ID::name.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
int blender::io::obj::OBJCurve::get_nurbs_degree | ( | int | spline_index | ) | const |
Get the degree of the NURBS spline at the given index.
Definition at line 82 of file obj_export_nurbs.cc.
References BLI_findlink(), CU_POLY, Curve::nurb, Nurb::orderu, spline_index, and Nurb::type.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
short blender::io::obj::OBJCurve::get_nurbs_flagu | ( | int | spline_index | ) | const |
Get the U flags (CU_NURB_*) of the NURBS spline at the given index.
Definition at line 88 of file obj_export_nurbs.cc.
References BLI_findlink(), Nurb::flagu, Curve::nurb, and spline_index.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
int blender::io::obj::OBJCurve::total_spline_control_points | ( | int | spline_index | ) | const |
Get total control points of the NURBS spline at the given index. This is different than total vertices of a spline.
Definition at line 69 of file obj_export_nurbs.cc.
References BLI_findlink(), CU_NURB_CYCLIC, CU_POLY, Nurb::flagu, Curve::nurb, Nurb::orderu, Nurb::pntsu, Nurb::pntsv, spline_index, and Nurb::type.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
int blender::io::obj::OBJCurve::total_spline_vertices | ( | int | spline_index | ) | const |
spline_index | Zero-based index of spline of interest. |
Definition at line 50 of file obj_export_nurbs.cc.
References BLI_findlink(), Curve::nurb, Nurb::pntsu, Nurb::pntsv, and spline_index.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
int blender::io::obj::OBJCurve::total_splines | ( | ) | const |
Definition at line 45 of file obj_export_nurbs.cc.
References BLI_listbase_count(), and Curve::nurb.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().
float3 blender::io::obj::OBJCurve::vertex_coordinates | ( | int | spline_index, |
int | vertex_index, | ||
float | scaling_factor | ||
) | const |
Get coordinates of the vertex at the given index on the given spline.
Definition at line 56 of file obj_export_nurbs.cc.
References BLI_findlink(), Nurb::bp, copy_v3_v3(), mul_m4_v3(), mul_v3_fl(), Curve::nurb, spline_index, and BPoint::vec.
Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().