Curves: Add methods to retrieve range for points or curves
This commit is contained in:
parent
b9ce036d6b
commit
1361c6e604
|
@ -82,6 +82,8 @@ class CurvesGeometry : public ::CurvesGeometry {
|
|||
|
||||
int points_size() const;
|
||||
int curves_size() const;
|
||||
IndexRange points_range() const;
|
||||
IndexRange curves_range() const;
|
||||
|
||||
/**
|
||||
* The total number of points in the evaluated poly curve.
|
||||
|
|
|
@ -106,6 +106,15 @@ int CurvesGeometry::curves_size() const
|
|||
{
|
||||
return this->curve_size;
|
||||
}
|
||||
IndexRange CurvesGeometry::points_range() const
|
||||
{
|
||||
return IndexRange(this->points_size());
|
||||
}
|
||||
IndexRange CurvesGeometry::curves_range() const
|
||||
{
|
||||
return IndexRange(this->curves_size());
|
||||
}
|
||||
|
||||
int CurvesGeometry::evaluated_points_size() const
|
||||
{
|
||||
/* TODO: Implement when there are evaluated points. */
|
||||
|
|
Loading…
Reference in New Issue