Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

VERT, EDGE, and PGON

Anonymous
Not applicable
Does anyone out there know the magic behind the VERT, EDGE, AND PGON commands. It seems straightforward, and I was hoping to use it to make a small part that can't easily be made from the primitives. I just can't get it to work though. For some reason ArchiCAD keeps telling me the polygon is degenerated. It is only 4 vertexes, 4 edges, and one polygon.

Any help on what I am doing wrong?
BASE
VERT	0.026194, -0.019050, 0.105569		! #1
VERT	0.024847, -0.018152, 0.124430		! #2
VERT	0.192087, -0.020637, 0.099219		! #10
VERT	0.192087, -0.018899, 0.111386		! #11

EDGE	1, 2, -1, -1, 0	! #1
EDGE	3, 4, -1, -1, 0	! #2
EDGE	1, 3, -1, -1, 0	! #3
EDGE	2, 4, -1, -1, 0	! #4


PGON 4, 0, -1, 1, 2, 3, 4

BODY -1
8 REPLIES 8
Fabrizio Diodati
Graphisoft Alumni
Graphisoft Alumni
Try the following one:

BASE
VERT 0.026194, -0.019050, 0.105569 ! #1
VERT 0.024847, -0.018152, 0.124430 ! #2
VERT 0.192087, -0.018899, 0.111386 ! #3
VERT 0.192087, -0.020637, 0.099219 ! #4


EDGE 1, 2, -1, -1, 0 ! #1
EDGE 2, 3, -1, -1, 0 ! #2
EDGE 3, 4, -1, -1, 0 ! #3
EDGE 4, 1, -1, -1, 0 ! #4


PGON 4, 0, -1, 1, 2, 3, 4

BODY -1



friendly
Fabrizio
Fabrizio Diodati
Graphisoft Italy Srl | Via Rossignago 2/A Spinea Venezia 30038 Italy
Anonymous
Not applicable
Hi Michael,

I'm not a primitive expert... For me its like the dark side of the force...

But AFAIK, the problem is that the VERT's that define the PGON are not coplanar.

To avoid this you'll have to script each and every PGON with 3 VERTs. Doing this they will always be coplanar.

But I may be wrong.

HTH.

p.s.: Ooops... Never mind. The force is strong in Fabrizio.
Anonymous
Not applicable
Thanks Fabrizio and Braza. No I see what I was doing wrong.
Fabrizio Diodati
Graphisoft Alumni
Graphisoft Alumni
The order is the most important thing and most complex issue.
Thanks Attila Babbits for all his precious advice.

Friendly
Fabrizio
Fabrizio Diodati
Graphisoft Italy Srl | Via Rossignago 2/A Spinea Venezia 30038 Italy
Anonymous
Not applicable
This should be explained better in the GDL manual. It appears that the edges need to be defined in the order they are used, which makes using an edge for multiple PGONs impossible. ArchiCAD has been yelling at when when I try to reuse edges, but if I define a new edge it works perfectly.

Thanks again for your help.
Erich
Booster
This is very well covered in the GDL Handbook from Cad Image. IF you don't have it already it is well worth the investment for refining your DGL (or GDL ) skills.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Barry Kelly
Moderator
Erich wrote:
IF you don't have it already it is well worth the investment for refining your DGL skills.
It's for all of you interesting in the "Dyslexic Geometric Language".
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Erich
Booster



Nah, it's just dyslexic typing...
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K