gCAD3D 2.35
ut_cntf.c File Reference

create-countour-functions CNTF_ More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_geo_const.h"
#include "../ut/ut_cast.h"
#include "../ut/func_types.h"
#include "../ut/ut_ox_base.h"
#include "../xa/xa_msg.h"
#include "../xa/xa_mem.h"

Data Structures

struct  cfo
 

Macros

#define TABSIZ   20
 

Functions

int CNTF_init__ (CurvCCV *ccva, int siz_cca, double cv_tol, double pt_tol)
 
int CNTF_add__ (ObjGX *oxi, int isr, int imod)
 
int CNTF_cvco_0_pt ()
 
int CNTF_cvco_0_lfig ()
 
int CNTF_cvco_pt_pt ()
 
int CNTF_cvco_pt_lfig ()
 
int CNTF_cvco_lfig_pt ()
 
int CNTF_cvco_lfig_lfig (int imod)
 
int CNTF_rev__ (cfo *cf1)
 
int CNTF_dump (cfo *cf1, char *txt)
 
int CNTF_ck_nearPts ()
 
int CNTF_ck_limPt (Point *ptx)
 
int CNTF_normalPt (Point *pt2, Point *pt1, double *par1, int typ, void *obj)
 
int CNTF_int__ (Point *ptx, double *par1, double *par2, int imod)
 
int CNTF_selPt (int iNr, Point *pta, double *va)
 
int CNTF_exit__ (int *ccvNr)
 
int CNTF_add_ln (long *ip0, long *ip1)
 
int CNTF_out_old ()
 
int CNTF_out_cvtrm (CurvCCV *cc1)
 

Variables

static int ccaSiz
 
static int ccNr
 
static CurvCCVcca
 
static cfo old
 
static cfo new
 
static double tol_cv
 
static double tol_pt
 

Detailed Description

create-countour-functions CNTF_

=====================================================
List_functions_start:
CNTF_test__
CNTF_test_1
List_functions_end:
=====================================================

Macro Definition Documentation

#define TABSIZ   20

Function Documentation

int CNTF_init__ ( CurvCCV ccva,
int  siz_cca,
double  cv_tol,
double  pt_tol 
)
int CNTF_add__ ( ObjGX oxi,
int  isr,
int  imod 
)
process next obj (add obj's to output)
Input:
ccvNr size of ccva (only with oxi->typ = TYP_FuncInit);
oxi next DB-obj to process; TYP_FuncInit=init, TYP_FuncExit=exit
isr revers oxi; 0=not; else yes
imod solution-nr (index of intersection-point if != 1)
Output:
ccvNr nr of finished records in cca
ccva[] trimmed-curves
retCod 0 = OK
-2 = degenerated (lt UT_TOL_cv; gt UT_TOL_pt)
-3 = degenerated (lt UT_TOL_pt)
int CNTF_cvco_0_pt ( )
int CNTF_cvco_0_lfig ( )
int CNTF_cvco_pt_pt ( )
int CNTF_cvco_pt_lfig ( )
int CNTF_cvco_lfig_pt ( )
int CNTF_cvco_lfig_lfig ( int  imod)
lFig > lFig:
- test endpoints: fit = connect
- test intersection: yes: limit both
- no intersection: test normal; yes: limit both, insert connectionLine
- no normal: connect to nearest point (start|endPoint)
Input:
imod solution-nr (index of intersection-point if != 1)
was ../xa/xa_cvcomp.c:1057
int CNTF_rev__ ( cfo cf1)
int CNTF_dump ( cfo cf1,
char *  txt 
)
int CNTF_ck_nearPts ( )
int CNTF_ck_limPt ( Point ptx)
int CNTF_normalPt ( Point pt2,
Point pt1,
double *  par1,
int  typ,
void *  obj 
)
int CNTF_int__ ( Point ptx,
double *  par1,
double *  par2,
int  imod 
)
int CNTF_selPt ( int  iNr,
Point pta,
double *  va 
)
int CNTF_exit__ ( int *  ccvNr)
int CNTF_add_ln ( long *  ip0,
long *  ip1 
)
create line old.pts - old.pte
retCod: -1 points equal, no output.
0 OK
int CNTF_out_old ( )
int CNTF_out_cvtrm ( CurvCCV cc1)

Variable Documentation

int ccaSiz
static
int ccNr
static
CurvCCV* cca
static
cfo old
static
cfo new
static
double tol_cv
static
double tol_pt
static