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

Archicad C++ API
About Archicad add-on development using the C++ API.

Inteface functions, get z coords.

Anonymous
Not applicable
Function from " Interface functions"
endInd = polyInfo.nCoords; 
			for (ind = 1; ind < endInd; ind++) { 
				begCoord.x = (*polyInfo.coords) [ind].x; 
				begCoord.y = (*polyInfo.coords) [ind].y; 
				begCoord.z = (polyInfo.zCoords != NULL) ? (*polyInfo.zCoords) [ind] : 0.0; 
 
				endCoord.x = (*polyInfo.coords) [ind + 1].x; 
				endCoord.y = (*polyInfo.coords) [ind + 1].y; 
				endCoord.z = (polyInfo.zCoords != NULL) ? (*polyInfo.zCoords) [ind + 1] : 0.0; 


I need to get z coords, but
begCoord.z = (polyInfo.zCoords != NULL) ? (*polyInfo.zCoords) [ind] : 0.0;
sets zCoords to 0. And if i use begCoord.z = (*polyInfo.zCoords) [ind] it freezes and returns no values at all.

Can anyone help in this ? I need to draw "box" in x,y,z and get all coords, at least furthest from beginning.
0 REPLIES 0

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!