13 #ifndef __GEO_PrimConnector_h__
14 #define __GEO_PrimConnector_h__
36 {
return (
int)myForest.entries(); }
37 int getMaxTreeCount()
const;
41 {
return myForest((
unsigned)i)->myConnectedPrims; }
63 int64 mem = inclusive ?
sizeof(*this) : 0;
64 mem += myForest.getMemoryUsage(
false);
65 for (
exint i = 0; i < myForest.entries(); i++)
69 mem +=
sizeof(*myForest(i));
70 mem += myForest(i)->myConnectedPrims.getMemoryUsage(
false);
73 mem += myVisitedPoints.getMemoryUsage(
false);
78 int buildClassTree(
int class_num);
virtual int getPrimTrees(GA_Offset ptoff, UT_IntArray &trees)=0
const geo_ConnectedPrimArray & connectedPrims(int i) const
geo_ConnectedPrimArray myConnectedPrims
const GEO_PrimClassifier * myClassifier
int64 getMemoryUsage(bool inclusive) const
UT_Array< geo_ConnectedTree * > myForest
UT_BitArray myVisitedPoints
UT_Array< GEO_Primitive * > geo_ConnectedPrimArray