gCAD3D 2.40
ut_bspl.h
Go to the documentation of this file.
1 // ../ut/ut_bspl.h
2 
3 int UT3D_cbsp_2pt (CurvBSpl *bsp, Memspc *memSeg, Point *p1, Point *p2);
4 int UT3D_cbsp_ci (CurvBSpl *bsp, Memspc *memSeg, Circ *ci1, Memspc *tmpSeg);
5 int UT3D_cbsp_ell (CurvBSpl *bsp, Memspc *memSeg, CurvElli *el1, Memspc *tmpSeg);
6 
7  int UT3D_pt_intlnbspl (int *nxp, Point *xptab,
8  Memspc *memSeg1, Line *ln, CurvBSpl *bspl);
9  int UT3D_pt_intplbspl (int *pNr, Point *pa,
10  Plane *pln, CurvBSpl *bspl, Memspc *memSeg1, double tol);
11  int UT3D_pt_int2bspl (int *nxp, Point *xptab,
12  Memspc *memSeg1, CurvBSpl *bspl1, CurvBSpl *bspl2);
13 
14  int UT3D_pt_projptbspl (int *nxp, Point *ptab, double *ttab,
15  CurvBSpl *bspl, Point *pt);
16  int UT3D_pt_projptbsp_ext (double *uo,Point *po,Point *p0,CurvBSpl *bspl);
17  int UT3D_pt_nearptbspl (Point *ptx, double *px, CurvBSpl *cv1, Point *pt);
18  int UT3D_pt_evparCrvBSpl (Point *pt, CurvBSpl *bspl, double u);
19  int UT3D_pt_evalparCv (Point *pto, CurvBSpl *cv1, double uVal);
20 
21  int UT3D_vc_evalparCv (Vector *vco, CurvBSpl *cv1, double uVal);
22 
23 
24  int UT3D_bsp_ck_minSiz (CurvBSpl *cv1);
26  int UT3D_bsp_degrad (ObjGX *ox1, CurvBSpl *cv1, Memspc *memSeg1);
27  int UT3D_bsp_infTg (int *dNr, double *dTab, CurvBSpl *bsp1);
28 
29  double UT3D_par1_parbsp (double *kv, CurvBSpl* cv1);
30  double UT3D_parbsp_par1 (double pv, CurvBSpl* cv1);
31  int UT3D_parCv_bsplpt (double *up,double *dist,
32  CurvBSpl *bspl,Point *pt);
33 
34  int UT3D_ptNr_bsp (int *iu, CurvBSpl *bsp, double tol1);
35 
36  int UT3D_bsp_cpsbsp (CurvBSpl *cvo, SurBSpl *su1, char cDir, int cvNr,
37  Memspc *memSeg1);
38 
39  int bspl_bsp_ptn (CurvBSpl *cvo,Memspc *memSeg1,Point *pTab,int pNr,int deg);
40  int bspl_pol2_bsp2 (Point *pTab1, Point *pTab2, int *ptNr, int ptMax,
41  CurvBSpl *cv1, CurvBSpl *cv2, double tol);
42  int UT3D_knotvec_m (double **knTab, double *v0, double *v1,
43  int ptNr, int deg, Memspc *workSeg);
44  int bspl_knotvec__ (double *knTab, int ptNr, int deg);
45 
46  int bspl_cv_bsp (int *ptNr, Point *pTab, CurvBSpl *cv1);
47 
48  int bspl_pol_bsp (int *ptNr, Point *pTab,
49  CurvBSpl *cv1, int ptMax, double tol);
50 
51  int bspl_cvpol_cvbsp (int *ptNr, Point ptPol[],
52  int ianz, int ideg, double ps, double pe,
53  Point ptCrv[], double *vTab);
54 
55  int bspl_eval_Pt (int ptNr, int ideg, Point ContPt[],
56  double *vk, double uVal, Point *P);
57  int bspl_eval_expPt (Point *pto, CurvBSpl *cv1, double uv, double dist);
58  int bspl_eval_Tg (int segNr, int ideg, Point ContPt[],
59  double *vk, double uVal, Vector *tg);
60 
61  int UT3D_bsp_ck_maxDeg (CurvBSpl *cv1);
62 
63 
65 #define UT3D_bsp_ck_maxDeg(cv1) ((cv1)->ptNr - 1)
66 
68 #define bspl_tmpSpc_siz(cvBsp)\
69  (cvBsp)->ptNr * (cvBsp)->deg * 10240
70 
71 
72 //===================== EOF =============================
#define UT3D_bsp_ck_maxDeg(cv1)
UT3D_bsp_ck_maxDeg returns max degree of bspline-curve.
Definition: ut_bspl.h:65
int UT3D_knotvec_m(double **knTab, double *v0, double *v1, int ptNr, int deg, Memspc *workSeg)
Definition: ut_bspl.c:3038
3D-plane, Typ_PLN
Definition: ut_geo.h:637
int bspl_pol2_bsp2(Point *pTab1, Point *pTab2, int *ptNr, int ptMax, CurvBSpl *cv1, CurvBSpl *cv2, double tol)
Definition: ut_bspl.c:3120
static Point pa[PT_MAX]
Definition: tst_gl1.c:108
ellipse, Typ_CVELL
Definition: ut_geo.h:456
3D-line, Typ_LN
Definition: ut_geo.h:367
int bspl_knotvec__(double *knTab, int ptNr, int deg)
Definition: ut_bspl.c:3069
3D-circle, Typ_CI
Definition: ut_geo.h:410
int UT3D_cbsp_ci(CurvBSpl *bsp, Memspc *memSeg, Circ *ci1, Memspc *tmpSeg)
Definition: ut_bspl.c:1329
int bspl_eval_Pt(int segNr, int ideg, Point ContPt[], double *vk, double uVal, Point *P)
Definition: ut_bspl.c:3911
int UT3D_bsp_cpsbsp(CurvBSpl *cvo, SurBSpl *su1, char cDir, int cvNr, Memspc *memSeg1)
Definition: ut_bspl.c:1820
int UT3D_pt_int2bspl(int *nxp, Point *xptab, Memspc *memSeg1, CurvBSpl *bspl1, CurvBSpl *bspl2)
Definition: ut_bspl.c:2101
Typ_ObjGX.
Definition: ut_geo.h:242
int UT3D_pt_projptbspl(int *nxp, Point *ptab, double *ttab, CurvBSpl *bspl, Point *pt)
Definition: ut_bspl.c:2268
int bspl_cv_bsp(int *ptNr, Point *pTab, CurvBSpl *cv1)
Definition: ut_bspl.c:3246
int UT3D_pt_evalparCv(Point *pto, CurvBSpl *cv1, double uVal)
Definition: ut_bspl.c:2699
double UT3D_parbsp_par1(double pv, CurvBSpl *cv1)
Definition: ut_bspl.c:2659
int bspl_cvpol_cvbsp(int *ptNr, Point ptPol[], int ianz, int ideg, double ps, double pe, Point ptCrv[], double *vTab)
Definition: ut_bspl.c:3640
int UT3D_pt_projptbsp_ext(double *uo, Point *po, Point *p0, CurvBSpl *bspl)
Definition: ut_bspl.c:4310
int bspl_eval_expPt(Point *pto, CurvBSpl *cv1, double uv, double dist)
Definition: ut_bspl.c:4371
int bspl_eval_Tg(int segNr, int ideg, Point ContPt[], double *vk, double uVal, Vector *tg)
Definition: ut_bspl.c:4164
static int ptNr
Definition: tst_gl1.c:109
int UT3D_bsp_ck_minSiz(CurvBSpl *cv1)
Definition: ut_bspl.c:1792
int UT3D_pt_evparCrvBSpl(Point *pt, CurvBSpl *bspl, double u)
Definition: ut_bspl.c:2470
int UT3D_bsp_degrad(ObjGX *ox1, CurvBSpl *cv1, Memspc *memSeg1)
Definition: ut_bspl.c:1569
Curve: B-spline Typ_CVBSP.
Definition: ut_geo.h:513
int UT3D_pt_intplbspl(int *pNr, Point *pa, Plane *pln, CurvBSpl *bspl, Memspc *memSeg1, double tol)
Definition: ut_bspl.c:2016
3D-point, Typ_PT
Definition: tessbug1.c:66
int bspl_pol_bsp(int *ptNr, Point *pTab, CurvBSpl *cv1, int ptMax, double tol)
Definition: ut_bspl.c:3280
3D-vector, Typ_VC
Definition: tst_glDrawElements1.c:58
int UT3D_bsp_ck_closed_tr(CurvBSpl *cv1)
Definition: ut_bspl.c:1668
int dNr
Definition: doxy_help1.c:38
static Point * vTab
Definition: wrl_ut.c:260
int bspl_bsp_ptn(CurvBSpl *cvo, Memspc *memSeg1, Point *pTab, int pNr, int deg)
Definition: ut_bspl.c:2982
int UT3D_ptNr_bsp(int *iu, CurvBSpl *bsp, double tol1)
Definition: ut_bspl.c:2827
int UT3D_cbsp_2pt(CurvBSpl *bsp, Memspc *memSeg, Point *p1, Point *p2)
Definition: ut_bspl.c:1290
char ** dTab
Definition: doxy_help1.c:39
int UT3D_vc_evalparCv(Vector *vco, CurvBSpl *cv1, double uVal)
Definition: ut_bspl.c:2716
int UT3D_pt_nearptbspl(Point *ptx, double *px, CurvBSpl *cv1, Point *pt)
Definition: ut_bspl.c:2197
int UT3D_parCv_bsplpt(double *up, double *dist, CurvBSpl *bspl, Point *pt)
Definition: ut_bspl.c:2745
int UT3D_bsp_infTg(int *dNr, double *dTab, CurvBSpl *bsp1)
Definition: ut_bspl.c:1450
int UT3D_pt_intlnbspl(int *nxp, Point *xptab, Memspc *memSeg1, Line *ln, CurvBSpl *bspl)
Definition: ut_bspl.c:1927
int UT3D_cbsp_ell(CurvBSpl *bsp, Memspc *memSeg, CurvElli *el1, Memspc *tmpSeg)
Definition: ut_bspl.c:1401
double UT3D_par1_parbsp(double *kv, CurvBSpl *cv1)
Definition: ut_bspl.c:2595
Typ_Memspc (a class for variable-length-records in memory)
Definition: ut_umem.h:32
Area: B-Spline-Surf Typ_SURBSP.
Definition: ut_geo.h:708