Skip to content

Commit

Permalink
Add const function for checking for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsdukai committed Sep 22, 2020
1 parent 6cfd104 commit c373f0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/geoflow/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ bool MultiTriangleCollection::has_attributes()
{
return !attributes_.empty();
}
bool MultiTriangleCollection::has_attributes() const
{
return !attributes_.empty();
}

std::vector<TriangleCollection>& MultiTriangleCollection::get_tricollections()
{
Expand Down
1 change: 1 addition & 0 deletions src/geoflow/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class MultiTriangleCollection
size_t tri_size() const;
size_t attr_size() const;
bool has_attributes();
bool has_attributes() const;
};

class SegmentCollection : public GeometryCollection<std::array<arr3f, 2>>
Expand Down

0 comments on commit c373f0f

Please sign in to comment.