|
Blender V5.3
|
#include <obj_export_nurbs.hh>
Inherits blender::io::obj::IOBJCurve, and blender::blender::NonCopyable.
Public Member Functions | |
| ~OBJLegacyCurve () override=default | |
| Public Member Functions inherited from blender::io::obj::IOBJCurve | |
| virtual | ~IOBJCurve ()=default |
OBJLegacyCurve | |
| OBJLegacyCurve (const Depsgraph *depsgraph, Object *curve_object) | |
| const float4x4 & | object_transform () const override |
| const char * | get_curve_name () const override |
| int | total_splines () const override |
| int | total_spline_vertices (int spline_index) const override |
| int | num_control_points_u (int spline_index) const override |
| int | num_control_points_v (int spline_index) const override |
| int | get_nurbs_degree_u (int spline_index) const override |
| int | get_nurbs_degree_v (int spline_index) const override |
| bool | get_cyclic_u (int spline_index) const override |
| Span< float > | get_knots_u (int spline_index, Vector< float > &buffer) const override |
| Span< float3 > | vertex_coordinates (int spline_index, Vector< float3 > &dynamic_point_buffer) const override |
Definition at line 121 of file obj_export_nurbs.hh.
| blender::io::obj::OBJLegacyCurve::OBJLegacyCurve | ( | const Depsgraph * | depsgraph, |
| Object * | curve_object ) |
Definition at line 173 of file obj_export_nurbs.cc.
References blender::DEG_get_evaluated().
Referenced by blender::io::obj::filter_supported_objects().
|
overridedefault |
|
overridevirtual |
Implements blender::io::obj::IOBJCurve.
Definition at line 185 of file obj_export_nurbs.cc.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
True if the indexed spline is cyclic along U dimension.
Implements blender::io::obj::IOBJCurve.
Definition at line 246 of file obj_export_nurbs.cc.
References blender::CU_NURB_CYCLIC, and blender::Nurb::flagu.
Referenced by num_control_points_u(), and ~OBJLegacyCurve().
|
overridevirtual |
Get the knot vector for the U-dimension. Computes knots using the buffer if necessary.
Implements blender::io::obj::IOBJCurve.
Definition at line 252 of file obj_export_nurbs.cc.
References blender::bke::curves::nurbs::calculate_knots(), blender::CU_NURB_CUSTOM, blender::CU_NURB_CYCLIC, blender::Nurb::flagu, get_nurbs_degree_u(), blender::bke::knots_mode_from_legacy(), blender::bke::curves::nurbs::knots_num(), blender::Nurb::knotsu, blender::Nurb::pntsu, and blender::Vector< T, InlineBufferCapacity, Allocator >::resize().
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Get the degree of the NURBS spline for the U-dimension.
Implements blender::io::obj::IOBJCurve.
Definition at line 234 of file obj_export_nurbs.cc.
References blender::CU_POLY, blender::Nurb::orderu, and blender::Nurb::type.
Referenced by get_knots_u(), num_control_points_u(), and ~OBJLegacyCurve().
|
overridevirtual |
Get the degree of the NURBS spline for the V-dimension.
Implements blender::io::obj::IOBJCurve.
Definition at line 240 of file obj_export_nurbs.cc.
References blender::CU_POLY, blender::Nurb::orderv, and blender::Nurb::type.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Get the number of control points on the U-dimension.
Implements blender::io::obj::IOBJCurve.
Definition at line 220 of file obj_export_nurbs.cc.
References blender::bke::curves::nurbs::control_points_num(), get_cyclic_u(), get_nurbs_degree_u(), and blender::Nurb::pntsu.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Get the number of control points on the V-dimension.
Implements blender::io::obj::IOBJCurve.
Definition at line 228 of file obj_export_nurbs.cc.
References blender::Nurb::pntsv.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Implements blender::io::obj::IOBJCurve.
Definition at line 195 of file obj_export_nurbs.cc.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
| spline_index | Zero-based index of spline of interest. |
Implements blender::io::obj::IOBJCurve.
Definition at line 200 of file obj_export_nurbs.cc.
References blender::Nurb::pntsu, and blender::Nurb::pntsv.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Number of splines associated with the Curve object.assign_if_different
Implements blender::io::obj::IOBJCurve.
Definition at line 190 of file obj_export_nurbs.cc.
Referenced by ~OBJLegacyCurve().
|
overridevirtual |
Get coordinates for the (non-looped) spline control points.
Implements blender::io::obj::IOBJCurve.
Definition at line 206 of file obj_export_nurbs.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Nurb::bp, blender::copy_v3_v3(), blender::Nurb::pntsu, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::BPoint::vec.
Referenced by ~OBJLegacyCurve().