Curves: Add methods to retrieve range for points or curves

This commit is contained in:
Hans Goudey 2022-02-23 08:54:35 -05:00
parent b9ce036d6b
commit 1361c6e604
2 changed files with 11 additions and 0 deletions

View File

@ -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.

View File

@ -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. */