gCAD3D 2.40
xa_cvcomp.c File Reference

create-countour-functions APT_decode_cvco.. 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_ox_base.h"
#include "../ut/ut_cast.h"
#include "../ut/ut_plg.h"
#include "../ut/func_types.h"
#include "../ci/NC_apt.h"
#include "../xa/xa_mem.h"


#define TABSIZ   20


int APT_decode_cvco_nxt (ObjGX *oxi, int *isr, int *imod, int iIn, int aus_anz, int *aus_typ, double *aus_tab)
int APT_decode_cvco_out (int *ccNr, CurvCCV *cca, int ccaSiz, CurvCCV *cc1)
int APT_decode_cvco_int (Point *pto, double *par1, CurvCCV *cc1, int typ1, void *oc1, int clo1, CurvCCV *cc2, int typ2, void *oc2, int imod)
int APT_decode_cvco_invCC (CurvCCV *cc1)
int APT_decode_cvco_ck_pte (Point *pti, long ipt, int cvTyp, void *ocv, CurvCCV *ccv)
int APT_decode_cvco_exit (CurvCCV *ccv1)
int APT_decode_cvco_add (int *ccNr, CurvCCV *cca, ObjGX *oxi, int isr, int imod)
int APT_decode_cvcomp (ObjGX *ocv, Memspc *tbuf1, Memspc *tbuf2, int aus_anz, int aus_typ[], double aus_tab[])


Plane WC_sur_act
 the active construction-plane More...
double WC_sur_Z
 active Z-value of WC_sur_sur; More...
char WC_modact_nam [128]
int APT_dispDir

Detailed Description

create-countour-functions APT_decode_cvco..

APT_decode_cvco_nxt get next obj with MOD and SR
APT_decode_cvco_add process next obj (add obj's to output)
APT_decode_cvco_int compute intersectionPoints
// APT_decode_cvco_prj1 project point pti onto curve cvc
// APT_decode_cvco_prj2 project point cpt onto lFig ccv
APT_decode_cvco_invCC revert trimmedCurve
APT_decode_cvco_out add cc1 to cca

Macro Definition Documentation

#define TABSIZ   20

Function Documentation

int APT_decode_cvco_nxt ( ObjGX oxi,
int *  isr,
int *  imod,
int  iIn,
int  aus_anz,
int *  aus_typ,
double *  aus_tab 

Output: isr 1=CCW; -1=CW; 0=undefined imod 0=undefined, else MOD# retCod -1=Error; 0=endOfLine; else next unused aus_typ/aus_tab

int APT_decode_cvco_out ( int *  ccNr,
CurvCCV cca,
int  ccaSiz,
CurvCCV cc1 
int APT_decode_cvco_int ( Point pto,
double *  par1,
CurvCCV cc1,
int  typ1,
void *  oc1,
int  clo1,
CurvCCV cc2,
int  typ2,
void *  oc2,
int  imod 
int APT_decode_cvco_invCC ( CurvCCV cc1)
int APT_decode_cvco_ck_pte ( Point pti,
long  ipt,
int  cvTyp,
void *  ocv,
CurvCCV ccv 

retCod: 0=pti is not endpoint of curve. 1=pti is identical with the endpoint of the curve

int APT_decode_cvco_exit ( CurvCCV ccv1)
int APT_decode_cvco_add ( int *  ccNr,
CurvCCV cca,
ObjGX oxi,
int  isr,
int  imod 
* process next obj (add obj's to output)
* was AP_cont_nxt
* Input:
* 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:
* ccNr nr of finished records in cca
* cca[]
* retCod 0 = OK
* -2 = degenerated (lt UT_TOL_cv; gt UT_TOL_pt)
* -3 = degenerated (lt UT_TOL_pt)
int APT_decode_cvcomp ( ObjGX ocv,
Memspc tbuf1,
Memspc tbuf2,
int  aus_anz,
int  aus_typ[],
double  aus_tab[] 

Variable Documentation

Plane WC_sur_act

the active construction-plane

double WC_sur_Z

active Z-value of WC_sur_sur;

char WC_modact_nam[128]
int APT_dispDir