Inteface functions, get z coords.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-12
02:11 PM
- last edited on
2023-07-13
03:53 PM
by
Doreena Deng
2015-06-12
02:11 PM
Function from " Interface functions"
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.
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.
Labels:
- Labels:
-
Add-On (C++)
0 REPLIES 0