gCAD3D 2.35
ubs.c File Reference

b spline surface functions More...

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_math.h"
#include "../ut/ut_TX.h"
#include "ubs.h"

Functions

int UBS_FdSpnKntVec (double *kvTab, int deg, int ptNr, double t)
 
int UBS_ParVecUVPts (double **pvTab, Memspc *memSeg, int npu, int npv, Point *pTab, int dirUV)
 
int UBS_ParVecPts (double **pvTab, Memspc *memSeg, int np, Point *pTab, int pvType)
 
int UBS_KntVecParVec (double **kvTab, Memspc *memSeg, int deg, int np, double *pvTab)
 
int UBS_DivKnotVec (double **kvTab1, Memspc *memSeg1, double **kvTab2, Memspc *memSeg2, int *r, double *kvTab, int m, int d, double t)
 
int UBS_DivCtrlPtsBsp (Point *cpTab1, Point *cpTab2, int d, double *kvTab, int cpNr, Point *cpTab, double t, int r, int c1, int c2, Memspc *memSeg1)
 

Detailed Description

b spline surface functions

=====================================================
List_functions_start:
UBS_DivCtrlPtsBsp Divide <-- bspline controlpoints
UBS_DivKnotVec Divide <-- knot vector
UBS_FdSpnKntVec Find span <-- knotvector, parameter
UBS_KntVecParVec Knotvector <-- parametervector
UBS_ParVecPts Parametervector <-- points
UBS_ParVecUVPts UV-parametervector <-- rectangular arranged points
List_functions_end:
=====================================================

Function Documentation

int UBS_FdSpnKntVec ( double *  kvTab,
int  deg,
int  ptNr,
double  t 
)
int UBS_ParVecUVPts ( double **  pvTab,
Memspc memSeg,
int  npu,
int  npv,
Point pTab,
int  dirUV 
)
int UBS_ParVecPts ( double **  pvTab,
Memspc memSeg,
int  np,
Point pTab,
int  pvType 
)
int UBS_KntVecParVec ( double **  kvTab,
Memspc memSeg,
int  deg,
int  np,
double *  pvTab 
)
int UBS_DivKnotVec ( double **  kvTab1,
Memspc memSeg1,
double **  kvTab2,
Memspc memSeg2,
int *  r,
double *  kvTab,
int  m,
int  d,
double  t 
)
int UBS_DivCtrlPtsBsp ( Point cpTab1,
Point cpTab2,
int  d,
double *  kvTab,
int  cpNr,
Point cpTab,
double  t,
int  r,
int  c1,
int  c2,
Memspc memSeg1 
)