michael++at++ifr.luftfahrt.uni-stuttgart.de
Fri, 10 Dec 93 13:25:41 +0100
Is this a bug ? If yes is it already known ? I have provided
a small code fragment that shows what I am doing.
--- code fragment starts here -----------------
void
init_stat_grid_3d(int index,
Position* Pos, Rotation* Rot,
int nx, int ny, int nz,
float dx, float dy, float dz,
float line_width,
float red, float green, float blue,
int *status)
BEGIN
pfGeode *geode;
pfMatrix matrix;
pfCoord coord;
*status = OK;
pfSetVec3(coord.xyz, Pos->x, Pos->y, Pos->z);
pfSetVec3(coord.hpr, Rot->h, Rot->p, Rot->r);
pfMakeCoordMat(matrix, &coord);
StatObjTrans[index].earth_offset = pfNewSCS(matrix);
/* load the database */
geode = grid_3d(nx,ny,nz,dx,dy,dz,line_width,red,green,blue);
IF (geode != NULL) THEN
pfAddChild(StatObjTrans[index].earth_offset, geode);
ELSE
*status = INITIALIZATION_ERROR;
ENDIF
IF (*status EQ OK) THEN
pfAddChild(Scene, StatObjTrans[index].earth_offset);
ENDIF
return;
END
|----------------------------------------------------------------------|
|Dipl.-Ing. Michael Paus |
|University of Stuttgart, Inst. of Flight Mechanics and Flight Control |
|Forststrasse 86, 70176 Stuttgart, Germany |
|----------------------------------------------------------------------|
|Phone: (+49) 711-121-1434 FAX: (+49) 711-634856 |
|Email: Michael.Paus++at++ifr.luftfahrt.uni-stuttgart.de (NeXT-Mail welcome)|
|----------------------------------------------------------------------|
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:07 PDT