added primitive to RegionType concept

This commit is contained in:
Sven Oesau 2022-06-07 08:44:39 +02:00
parent 255c1ce8f1
commit 863f89e971
1 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class RegionType {
public:
/// The parameters of the primitive covering the region.
typedef unspecified_type Primitive;
/*!
checks if the item with the index `index_to`, which is a neighbor of the item
with the index `index_from`, can be added to the region represented by `indices`.
@ -50,6 +53,14 @@ public:
}
/*!
provides the last primitive that has been fitted with the region.
*/
Primitive primitive() const {
return Primitive(m_axis, m_radius);
}
/*!
enables to update any information that is maintained with the region
represented by `indices`.