Blender V5.0
blender::io::obj::IOBJCurve Class Referenceabstract

#include <obj_export_nurbs.hh>

Inherited by blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Public Member Functions

virtual ~IOBJCurve ()=default
virtual const float4x4object_transform () const =0
virtual const char * get_curve_name () const =0
virtual int total_splines () const =0
virtual int total_spline_vertices (int spline_index) const =0
virtual int num_control_points_u (int spline_index) const =0
virtual int num_control_points_v (int spline_index) const =0
virtual int get_nurbs_degree_u (int spline_index) const =0
virtual int get_nurbs_degree_v (int spline_index) const =0
virtual bool get_cyclic_u (int spline_index) const =0
virtual Span< floatget_knots_u (int spline_index, Vector< float > &buffer) const =0
virtual Span< float3vertex_coordinates (int spline_index, Vector< float3 > &dynamic_point_buffer) const =0

Detailed Description

Curve object wrapper providing access to the a Curve Object's properties. Curve objects can contain multiple individual splines.

Definition at line 41 of file obj_export_nurbs.hh.

Constructor & Destructor Documentation

◆ ~IOBJCurve()

virtual blender::io::obj::IOBJCurve::~IOBJCurve ( )
virtualdefault

Member Function Documentation

◆ get_curve_name()

virtual const char * blender::io::obj::IOBJCurve::get_curve_name ( ) const
pure virtual

◆ get_cyclic_u()

virtual bool blender::io::obj::IOBJCurve::get_cyclic_u ( int spline_index) const
pure virtual

True if the indexed spline is cyclic along U dimension.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

◆ get_knots_u()

virtual Span< float > blender::io::obj::IOBJCurve::get_knots_u ( int spline_index,
Vector< float > & buffer ) const
pure virtual

Get the knot vector for the U-dimension. Computes knots using the buffer if necessary.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().

◆ get_nurbs_degree_u()

virtual int blender::io::obj::IOBJCurve::get_nurbs_degree_u ( int spline_index) const
pure virtual

Get the degree of the NURBS spline for the U-dimension.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().

◆ get_nurbs_degree_v()

virtual int blender::io::obj::IOBJCurve::get_nurbs_degree_v ( int spline_index) const
pure virtual

Get the degree of the NURBS spline for the V-dimension.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

◆ num_control_points_u()

virtual int blender::io::obj::IOBJCurve::num_control_points_u ( int spline_index) const
pure virtual

Get the number of control points on the U-dimension.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().

◆ num_control_points_v()

virtual int blender::io::obj::IOBJCurve::num_control_points_v ( int spline_index) const
pure virtual

Get the number of control points on the V-dimension.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().

◆ object_transform()

virtual const float4x4 & blender::io::obj::IOBJCurve::object_transform ( ) const
pure virtual

◆ total_spline_vertices()

virtual int blender::io::obj::IOBJCurve::total_spline_vertices ( int spline_index) const
pure virtual
Parameters
spline_indexZero-based index of spline of interest.
Returns
Total vertices in a spline.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

◆ total_splines()

virtual int blender::io::obj::IOBJCurve::total_splines ( ) const
pure virtual

Number of splines associated with the Curve object.assign_if_different

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().

◆ vertex_coordinates()

virtual Span< float3 > blender::io::obj::IOBJCurve::vertex_coordinates ( int spline_index,
Vector< float3 > & dynamic_point_buffer ) const
pure virtual

Get coordinates for the (non-looped) spline control points.

Implemented in blender::io::obj::OBJCurves, and blender::io::obj::OBJLegacyCurve.

Referenced by blender::io::obj::OBJWriter::write_nurbs_curve().


The documentation for this class was generated from the following file: