next up previous contents
Next: B.2 Funkcija za izgradnjo Up: B. Programska koda - NURBS-i Previous: B. Programska koda - NURBS-i

B.1 Strukture v knji¾nici NURBS-ov

 

Strukture, uporabljene v knji¾nici NURBS-ov. Strukture prikazujejo interno zgradbo knji¾nice. Strukture imajo naslednje pomene:

typedef struct PR_knots {
  struct PR_knots   *pf_next;   /*Pointer to next one*/
  Pint          pf_size;        /*Size of this one*/
  Pfloat        knots[1];       /*Array of the knots*/
} PR_knots;

typedef struct PR_pts {
  struct PR_pts     *pf_next;       /*Pointer to next one*/
  Pint          pf_size;        /*Size of this one*/
  Ppoint4       pts[1];         /*Array of the Points*/
} PR_pts;


typedef struct PR_nurb {     /* tensor product surface */
  PR_dir         pf_u;       /* U and V stuff*/
  PR_dir         pf_v;
  PR_pts         *pf_ppp;    /*Pointer to control points*/
  struct PR_nurb *pf_next;   /*Pointer to next in free list*/
  struct PR_nurb *pf_prev;   /*Pointer to prev in free list*/
  Pint           pf_id;      /*Integer ID for user use!*/
} PR_nurb;


typedef struct PR_dir {
  Pint     pf_k;     /* order in x */
  Pint     pf_n;     /* number of vertices*/
  Pint     pf_nt;    /* number of knots  n+k*/
  PR_knots *pf_kk;   /* Pointer to knots*/
} PR_dir;


typedef struct PR_stats {
  Pint pf_areqs;   /*Allocate requests*/
  Pint pf_dreqs;   /*deAllocate requests*/
  Pint pf_inuse;   /*Number in Use*/
  Pint pf_maxQlen; /*maximum queue length*/
  Pint pf_Qlen;    /*Queue length*/
  Pint pf_minBsize;/*minimum block size*/
  Pint pf_maxBsize;/*maximum block size*/
  Pint pf_nochange;/*Number of allocates that do nothing*/
  Pint pf_news;    /*Number of allocates that do Malloc*/
} PR_stats;



Janez KREK
Fri Jul 5 12:10:59 METDST 1996