We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Fetch data from Polygon Count add on ?

MF BIM
Enthusiast

Hello everybody 🙂

 

Simple question, is there way to get data from the Polygon Count addon ?

Let's say I have a libpart that has too many triangles, could I somehow use that addon to check the count and reduce the resol ? Otherwise, is there a way to calculate that count ?

https://mfbim.fr | https://youtube.com/@mfbim | https://bsky.app/profile/mfbim.fr
AC24 FRA 7600 - AC26 FRA 4027 | MacBook M1 Pro
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi,

 

There is no way to get it from GDL and iterate the model, 3D generation is a one-step process.

If you are using resol (or toler or radius) in your code then you can calculate or estimate the polygon count.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

View solution in original post

4 REPLIES 4

Not sure if I understood your questions - but here goes:

 

"...could I somehow use that addon to check the count..."

Yes, this is exactly what PolyCount does

 

"...and reduce the resol?"

No, not reduce the resolution/triangle count using the PolyCount add-on - this you would have to do separately, either by editing the object directly or creating a new object.

 

"Otherwise, is there a way to calculate that count?"

Not sure what it is you want to calculate?

Erik Bjornhage : SwedishChef, ETTELVA Arkitekter, Gothenburg, Sweden
Architect : Digital Development : Graphisoft Cert. BIM-Manager
ETTELVA Arkitekter : Eriks LinkedIn
DELL Precision 5570; i7-12700H; 64 GB; RTX A2000 [8GB] : AC12 - future

Hello @Erik Bjornhage ,

 

Thanks for replying. What I meant is when creating a GDL object, is there a way to know or calculate to polygon count in the object at any given moment. That's why I was wondering if somehow there was a way to get the data from that addon directly into my GDL objects.

https://mfbim.fr | https://youtube.com/@mfbim | https://bsky.app/profile/mfbim.fr
AC24 FRA 7600 - AC26 FRA 4027 | MacBook M1 Pro
Solution

Hi,

 

There is no way to get it from GDL and iterate the model, 3D generation is a one-step process.

If you are using resol (or toler or radius) in your code then you can calculate or estimate the polygon count.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

Thanks

 

Then I understand, but can't add any more to the discussion unfortunately. I still need to take the time to get into GDL 😞

Peter seems to have a good answer for you below.

Erik Bjornhage : SwedishChef, ETTELVA Arkitekter, Gothenburg, Sweden
Architect : Digital Development : Graphisoft Cert. BIM-Manager
ETTELVA Arkitekter : Eriks LinkedIn
DELL Precision 5570; i7-12700H; 64 GB; RTX A2000 [8GB] : AC12 - future