feat: only render solo points

This commit is contained in:
parker
2025-08-05 02:03:51 +01:00
parent 123f6d30fe
commit 2a0afc7c24
3 changed files with 41 additions and 9 deletions

View File

@@ -34,6 +34,9 @@ public:
void addFace(std::vector<ga::Offset> pointOffsets, bool closed=true);
void addPoint(const bt::Vector3& pos);
std::set<ga::Offset>::const_iterator soloPointsBegin();
std::set<ga::Offset>::const_iterator soloPointsEnd();
void setPointPos(const ga::Offset offset, const bt::Vector3& pos);
ga::Offset getPrimStartVertex(ga::Offset primOffset) const; // returns the first vertex of the primitive
@@ -43,6 +46,7 @@ public:
ga::Offset getNumPrims() const;
ga::Offset getNumVerts() const;
ga::Offset getNumPoints() const;
ga::Offset getNumSoloPoints() const;
bt::boolT isClosed(ga::Offset primOffset) const;
@@ -58,6 +62,8 @@ private:
attribVector primitiveAttributes_;
attribVector globalAttributes_;
std::set<ga::Offset> soloPoints_;
std::vector<ga::Offset> primStarts_;
// handles