xp_comm_proj/nurbs/nurbutil.c
/* NURBS_PCH_DATA --- assign nrb pch data to the given parameters */
assign nrb pch data to the given parameters
assign nrb pch data to the given parameters
void nrb_pch_data (Qnurbs_pch *pch,int *ku,int *nu,int *kv,int *nv,Qfloat **tu,Qfloat **tv,Qpoint4 **p)
{
    *ku = pch->ku;
    *nu = pch->nu;
    *kv = pch->kv;
    *nv = pch->nv;
    *tu = &pch->d[0];
    *tv = &pch->d[pch->ku + pch->nu];
    *p  = (Qpoint4 *) &pch->d[pch->ku + pch->nu + pch->kv + pch->nv];
}
void nrb_pch_data ( Qnurbs_pch * pch , int * ku , int * nu , int * kv , int * nv , Qfloat * * tu , Qfloat * * tv , Qpoint4 * * p ) { * ku = pch -> ku ; * nu = pch -> nu ; * kv = pch -> kv ; * nv = pch -> nv ; * tu = & pch -> d [ 0 ] ; * tv = & pch -> d [ pch -> ku + pch -> nu ] ; * p = ( Qpoint4 * ) & pch -> d [ pch -> ku + pch -> nu + pch -> kv + pch -> nv ] ; }
NURBS_PCH_DATA --- assign nrb pch data to the given parameters
NURBS_PCH_DATA --- assign nrb pch data to the given parameters
/* nrb patch record */ /* order in u direction */ /* number of control points in u */ /* order in v direction */ /* number of control points in v */ /* u knots vector */ /* v knots vector */ /* control points */