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

How do I interpret morph gdl code?

JGoode
Expert
Hi, I need to relocate a piece of gdl code however it is from a morph and I'm not sure at what point in the code to move.
vert	0.005709035061653, -0.02870125742738,            0	!	#1   VertId=0
vert	           0, 9.184850993605E-18,            0	!	#2   VertId=0
vert	           0, 1.387778780781E-17, 0.03300000000001	!	#3   VertId=0
vert	       0.075,       -0.075,            0	!	#4   VertId=0
vert	0.04629874257262, -0.06929096493835,            0	!	#5   VertId=0
vert	0.02196699141101, -0.05303300858899,            0	!	#6   VertId=0
vert	0.005709035061653, -0.02870125742738, 0.03300000000001	!	#7   VertId=0
vert	0.04629874257262, -0.06929096493835, 0.03300000000001	!	#8   VertId=0
vert	0.02196699141101, -0.05303300858899, 0.03300000000001	!	#9   VertId=0
vert	0.005709035061653, 0.02870125742738,            0	!	#10  VertId=0
vert	0.02196699141101, 0.05303300858899,            0	!	#11  VertId=0
vert	0.02196699141101, 0.05303300858899, 0.03300000000001	!	#12  VertId=0
vert	0.04629874257262, 0.06929096493835, 0.03300000000001	!	#13  VertId=0
vert	0.04629874257262, 0.06929096493835,            0	!	#14  VertId=0
vert	       0.075,        0.075, 0.03300000000001	!	#15  VertId=0
vert	0.005709035061653, 0.02870125742738, 0.03300000000001	!	#16  VertId=0
vert	0.1037012574274, -0.06929096493835, 0.03300000000001	!	#17  VertId=0
vert	0.1037012574274, -0.06929096493835,            0	!	#18  VertId=0
vert	0.128033008589, -0.05303300858899,            0	!	#19  VertId=0
vert	0.1442909649383, -0.02870125742738, 0.03300000000001	!	#20  VertId=0
vert	0.1442909649383, -0.02870125742738,            0	!	#21  VertId=0
vert	        0.15, -1.387778780781E-17, 0.03300000000001	!	#22  VertId=0
vert	       0.075,       -0.075, 0.03300000000001	!	#23  VertId=0
vert	0.128033008589, -0.05303300858899, 0.03300000000001	!	#24  VertId=0
vert	0.128033008589, 0.05303300858899, 0.03300000000001	!	#25  VertId=0
vert	0.1037012574274, 0.06929096493835,            0	!	#26  VertId=0
vert	       0.075,        0.075,            0	!	#27  VertId=0
vert	        0.15, -1.836970198721E-17,            0	!	#28  VertId=0
vert	0.1442909649383, 0.02870125742738,            0	!	#29  VertId=0
vert	0.128033008589, 0.05303300858899,            0	!	#30  VertId=0
vert	0.1037012574274, 0.06929096493835, 0.03300000000001	!	#31  VertId=0
vert	0.1442909649383, 0.02870125742738, 0.03300000000001	!	#32  VertId=0
vert	-8.318374736386, -7.857915320776,            0	!	#33  VertId=0
vert	-7.318374736386, -7.857915320776,            0	!	#34  VertId=0
vert	-8.318374736386, -6.857915320776,            0	!	#35  VertId=0
vert	-8.318374736386, -7.857915320776,            1	!	#36  VertId=0
coor{2}	   2,    0,		 -33,  -34,  -35,  -36
edge	   2,    1,    2,    6, 262144			!	#1   EdgeId=0
edge	   1,    6,    1,    6, 262144			!	#2   EdgeId=0
edge	   1,    7,    2,    1,     14			!	#3   EdgeId=0
edge	   9,    7,    1,    7, 262144			!	#4   EdgeId=0
edge	   6,    9,    1,    8,     14			!	#5   EdgeId=0
edge	   2,    3,    3,    2,     14			!	#6   EdgeId=0
edge	   7,    3,    2,    7, 262144			!	#7   EdgeId=0
edge	  10,    2,    3,    6, 262144			!	#8   EdgeId=0
edge	   3,   16,    3,    7, 262144			!	#9   EdgeId=0
edge	  10,   16,    4,    3,     14			!	#10  EdgeId=0
edge	  11,   10,    4,    6, 262144			!	#11  EdgeId=0
edge	  11,   12,    9,    4,     14			!	#12  EdgeId=0
edge	   4,   23,    5,   10,     14			!	#13  EdgeId=0
edge	   5,    8,    8,    5,     14			!	#14  EdgeId=0
edge	   5,    4,    5,    6, 262144			!	#15  EdgeId=0
edge	  23,    8,    5,    7, 262144			!	#16  EdgeId=0
edge	  17,   23,   10,    7, 262144			!	#17  EdgeId=0
edge	   6,    5,    8,    6, 262144			!	#18  EdgeId=0
edge	  14,   11,    9,    6, 262144			!	#19  EdgeId=0
edge	  16,   12,    4,    7, 262144			!	#20  EdgeId=0
edge	   8,    9,    8,    7, 262144			!	#21  EdgeId=0
edge	  14,   13,   14,    9,     14			!	#22  EdgeId=0
edge	  27,   14,   14,    6, 262144			!	#23  EdgeId=0
edge	  12,   13,    9,    7, 262144			!	#24  EdgeId=0
edge	  13,   15,   14,    7, 262144			!	#25  EdgeId=0
edge	  27,   15,   13,   14,     14			!	#26  EdgeId=0
edge	   4,   18,   10,    6, 262144			!	#27  EdgeId=0
edge	  18,   19,   12,    6, 262144			!	#28  EdgeId=0
edge	  18,   17,   10,   12,     14			!	#29  EdgeId=0
edge	  24,   17,   12,    7, 262144			!	#30  EdgeId=0
edge	  30,   26,   11,    6, 262144			!	#31  EdgeId=0
edge	  30,   25,   18,   11,     14			!	#32  EdgeId=0
edge	  19,   24,   12,   15,     14			!	#33  EdgeId=0
edge	  29,   32,   16,   18,     14			!	#34  EdgeId=0
edge	  26,   27,   13,    6, 262144			!	#35  EdgeId=0
edge	  26,   31,   11,   13,     14			!	#36  EdgeId=0
edge	  15,   31,   13,    7, 262144			!	#37  EdgeId=0
edge	  31,   25,   11,    7, 262144			!	#38  EdgeId=0
edge	  21,   20,   15,   17,     14			!	#39  EdgeId=0
edge	  20,   24,   15,    7, 262144			!	#40  EdgeId=0
edge	  21,   28,   17,    6, 262144			!	#41  EdgeId=0
edge	  19,   21,   15,    6, 262144			!	#42  EdgeId=0
edge	  28,   22,   17,   16,     14			!	#43  EdgeId=0
edge	  22,   20,   17,    7, 262144			!	#44  EdgeId=0
edge	  29,   30,   18,    6, 262144			!	#45  EdgeId=0
edge	  28,   29,   16,    6, 262144			!	#46  EdgeId=0
edge	  25,   32,   18,    7, 262144			!	#47  EdgeId=0
edge	  32,   22,   16,    7, 262144			!	#48  EdgeId=0
vect	-0.8314696123025, -0.5555702330196,            0	!	#1  
vect	-0.9807852804032, -0.1950903220161, 1.403393179968E-17	!	#2  
vect	-0.9807852804032, 0.1950903220161,            0	!	#3  
vect	-0.8314696123025, 0.5555702330196,            0	!	#4  
vect	-0.1950903220161, -0.9807852804032,            0	!	#5  
vect	           0,            0,           -1	!	#6  
vect	6.295904022258E-18,            0,            1	!	#7  
vect	-0.5555702330196, -0.8314696123025,            0	!	#8  
vect	-0.5555702330196, 0.8314696123025,            0	!	#9  
vect	0.1950903220161, -0.9807852804032,            0	!	#10 
vect	0.5555702330196, 0.8314696123025,            0	!	#11 
vect	0.5555702330196, -0.8314696123025,            0	!	#12 
vect	0.1950903220161, 0.9807852804032,            0	!	#13 
vect	-0.1950903220161, 0.9807852804032,            0	!	#14 
vect	0.8314696123025, -0.5555702330196,            0	!	#15 
vect	0.9807852804032, 0.1950903220161,            0	!	#16 
vect	0.9807852804032, -0.1950903220161, 1.403393179968E-17	!	#17 
vect	0.8314696123025, 0.5555702330196, 1.122714543975E-16	!	#18 
material mat_wheels
pgon	   4,    1,      2,					!	#1   PolyId=0
		   2,		   5,		   4,		  -3
pgon	   4,    2,      2,					!	#2   PolyId=0
		   1,		   3,		   7,		  -6
pgon	   4,    3,      2,					!	#3   PolyId=0
		   6,		   9,		 -10,		   8
pgon	   4,    4,      2,					!	#4   PolyId=0
		  10,		  20,		 -12,		  11
pgon	   4,    5,      2,					!	#5   PolyId=0
		  13,		  16,		 -14,		  15
pgon	  16,    6,      2,					!	#6   PolyId=0
		  -1,		  -8,		 -11,		 -19,		 -23,		 -35,		 -31,		 -45,
		 -46,		 -41,		 -42,		 -28,		 -27,		 -15,		 -18,		  -2

pgon	  16,    7,      2,					!	#7   PolyId=0
		  -4,		 -21,		 -16,		 -17,		 -30,		 -40,		 -44,		 -48,
		 -47,		 -38,		 -37,		 -25,		 -24,		 -20,		  -9,		  -7

pgon	   4,    8,      2,					!	#8   PolyId=0
		  -5,		  18,		  14,		  21
pgon	   4,    9,      2,					!	#9   PolyId=0
		  12,		  24,		 -22,		  19
pgon	   4,   10,      2,					!	#10  PolyId=0
		 -13,		  27,		  29,		  17
pgon	   4,   11,      2,					!	#11  PolyId=0
		  31,		  36,		  38,		 -32
pgon	   4,   12,      2,					!	#12  PolyId=0
		  28,		  33,		  30,		 -29
pgon	   4,   13,      2,					!	#13  PolyId=0
		  26,		  37,		 -36,		  35
pgon	   4,   14,      2,					!	#14  PolyId=0
		  22,		  25,		 -26,		  23
pgon	   4,   15,      2,					!	#15  PolyId=0
		 -33,		  42,		  39,		  40
pgon	   4,   16,      2,					!	#16  PolyId=0
		  34,		  48,		 -43,		  46
pgon	   4,   17,      2,					!	#17  PolyId=0
		 -39,		  41,		  43,		  44
pgon	   4,   18,      2,					!	#18  PolyId=0
		  32,		  47,		 -34,		  45
Thanks
ArchiCAD 23

Windows 10
3 REPLIES 3
It will be easier to make it morph back and then resave 😉

When creating such geometry for being transfered via GDL ...You need to be specific...in dimensioning the initial MORPH being a source...
say some coordinate(s) must have a specific value to be pointed out... then it is fairly easy to parmatrize...otherwise a very thorough analysis of coords must be conducted.

Best Regards,
Piotr
JGoode
Expert
Piotr wrote:
It will be easier to make it morph back and then resave 😉

When creating such geometry for being transfered via GDL ...You need to be specific...in dimensioning the initial MORPH being a source...
say some coordinate(s) must have a specific value to be pointed out... then it is fairly easy to parmatrize...otherwise a very thorough analysis of coords must be conducted.

Best Regards,
Piotr
I am trying to move it within the same GDL script. Is this possible? Thanks
ArchiCAD 23

Windows 10
If You move vert(s) (the vertexes/ points) the whole geometry will change
If all pgons are triangles it will work probably ok...but if there is a pgon of more verts...there may be a problem

Sometime You will have to move vects as well (normals)

Best Regards