gCAD3D 2.40
tst_msh2d.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/gl.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_geo_const.h"
#include "../ut/ut_ox_base.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_itmsh.h"
#include "../ut/ut_face.h"
#include "../ut/ut_os.h"
#include "../ut/msh2d.h"
#include "../db/ut_DB.h"
#include "../xa/xa_mem.h"
#include "../xa/xa_msg.h"

Data Structures

struct  brklStru
 

Macros

#define MSH2D_quad_is_unmod(iqx)   MSH2D_qma[iqx]
 
#define PSTABSIZ   100
 

Functions

static MemTab (char)
 
double MSH2D_edgLen (int ip1, int ip2)
 
int MSH2D_brkl_bnd_add2 (brklStru *brkls, int if1, int en1)
 
int MSH2D_brkl_bnd_addf (brklStru *brkls, int if1)
 
int MSH2D_bp_get (Vector *vz, TessStru *ts1)
 
int MSH2D_bnd_2D_3D (TessStru *ts1, int(*tr_2D_3D)())
 
int MSH2D_bnd_3D_add_dbo (TessStru *ts1, int dbTyp, long dbi, int mshTyp)
 
int MSH2D_bnd_add__ (TessStru *ts1, int ips, int ptNr, int mshTyp)
 
int MSH2D_tess_pln (GridBox *gbx)
 
int MSH2D_tess_grid (GridBox *gbx, double uMin, double uMax, double vMin, double vMax, int uNr, int vNr)
 
int MSH2D_memspc_init (TessStru *ts1, int ptNr)
 
int MSH2D_memspc_exit (TessStru *ts1)
 
int MSH2D_tess__ (TessStru *ts1, int iDel, int iMod)
 
int MSH2D_pgb_get (int *ptNr, int **ia, char **stat)
 
int MSH2D_pst__ ()
 
int MSH2D_bnd__ ()
 
int MSH2D_fac_del__ (int ip1, int ip2)
 
int MSH2D_fac_del_m1 (int if1)
 
int MSH2D_pt_gb_ (int ipx, int idir)
 
int MSH2D_pt_gbhv (Fac3 *fax, int en1, int ipx, int idir)
 
int MSH2D_pt__ (int ipx)
 
int MSH2D_quads_p (GridBox *qbx)
 
int MSH2D_quads_f (GridBox *qbx)
 
int MSH2D_quad__ (int ipx)
 
int MSH2D_2fac_quad_b (int *ipqa, int iqx, int ipx, int iPos)
 
int MSH2D_4fac_quad_m (int *ipqa, int iqx, int ipx)
 
int MSH2D_2if_quad (int *ifc1, int *ifc2, int iqx, int ip2)
 
int MSH2D_quad_ck1 (int *itx, int *ity, int ipx)
 
int MSH2D_quad_ck2 (int *ipqa, int itx, int ity)
 
int MSH2D_quad_ckv (int *ifc1, int *en1, int iq1, int iq2, int ip0, int ip1)
 
int MSH2D_quad_set_mf (int *ifc1, int *en1, int iqx, int ip1, int ip2)
 
int MSH2D_quad_set_m1 (int iqx)
 
int MSH2D_opt__ ()
 
int MSH2D_opt_1 (int ifc1, int esn1)
 
int MSH2D_init__ (TessStru *ts1)
 
int MSH2D_init_qbx (GridBox *gbx)
 
int MSH2D_fac_del_del ()
 
int MSH2D_pst_fac_del (Fac3 *fac1)
 
int MSH2D_spc_ck1 (int iMore)
 
int MSH2D_facNrMax (TessStru *ts1)
 
int MSH2D_brkl__ (int ips, int ipe, int edgTyp)
 
int MSH2D_brkl_ipba (int *ipba, brklStru *brkls)
 
int MSH2D_brkl_fnb_eo (int *foa, int *eoa, brklStru *brkls)
 
int MSH2D_brkl_fnb__ (int fiNr, int *fia, int *foa, int *eoa, int *ipba, brklStru *brkls)
 
int MSH2D_brkl_bnd__ (brklStru *brkls)
 
int MSH2D_brkl_bnd_11 (brklStru *brkls, int if1, int en1, int mode)
 
int MSH2D_brkl_bnd_1_ (brklStru *brkls)
 
int MSH2D_brkl_bnd_2_ (brklStru *brkls)
 
int MSH2D_brkl_bnd_23 (brklStru *brkls)
 
int MSH2D_brkl_bnd_24 (brklStru *brkls)
 
int MSH2D_brkl_bnd_add1 (brklStru *brkls, int if1, int en1)
 
int MSH2D_brkl_flip (int if1, int en1, int ips, int ipe, int edgTyp)
 
int MSH2D_brkl_set (int if1, int en1, int ips, int ipe, int edgTyp)
 
int MSH2D_brkl_cpy (int *fan, MemTab(Fac3)*mfi)
 
int MSH2D_quad_set_mod (int iqx)
 
int MSH2D_quad_nf_mod (int cfNr, int *cfa)
 
int MSH2D_del__ ()
 
int MSH2D_fdel_bnd (int cNr, int *cfa, char *cea)
 
int MSH2D_ctess_e (MemTab(Fac3)*fca, int cfNr, int *cfa, char *ena)
 
int MSH2D_view_inpt (int ptNr, int *ipa, Point2 *pa2)
 
int MSH2D_view_cv_inpt (int inptNr, int *inpta)
 
int MSH2D_view_nfac (TessStru *ts1, char *opts, int if1, int fNr, char *info)
 
int MSH2D_dump__ (char *inf)
 
int MSH2D_dump_qma ()
 
int MSH2D_dump_brkls (brklStru *brkls, char *opts)
 
int MSH2D_ctess__ (MemTab(Fac3)*fca, int *iba, int icNr, Point2 *p2a)
 
int MSH2D_ctess_4pt (int *ia, Point2 *pa)
 

Variables

int WC_modact_ind
 
static TessStruMSH2D_ts
 
static Fac3MFAC__ = NULL
 
static Fac3MFNB__ = NULL
 
static int MSH2D_pgb_ips
 
static double MSH2D_tol
 
static double MSH2D_2TOL
 
static double MSH2D_eLen
 
static double MSH2D_mLen
 
static GridBox MSH2D_qbx
 
static int MSH2D_iqxMax
 
static int MSH2D_iqyMax
 
static int MSH2D_qNr
 
static int MSH2D_bnd_nr
 
static int MSH2D_it_OB
 
static char MSH2D_is_delOB
 
static char * MSH2D_qma
 

Macro Definition Documentation

#define MSH2D_quad_is_unmod (   iqx)    MSH2D_qma[iqx]
#define PSTABSIZ   100

Function Documentation

static MemTab ( char  )
static
double MSH2D_edgLen ( int  ip1,
int  ip2 
)
int MSH2D_brkl_bnd_add2 ( brklStru brkls,
int  if1,
int  en1 
)
int MSH2D_brkl_bnd_addf ( brklStru brkls,
int  if1 
)
int MSH2D_bp_get ( Vector vz,
TessStru ts1 
)

backplane: see UT3D_bp_vcz

int MSH2D_bnd_2D_3D ( TessStru ts1,
int(*)()  tr_2D_3D 
)
int MSH2D_bnd_3D_add_dbo ( TessStru ts1,
int  dbTyp,
long  dbi,
int  mshTyp 
)
int MSH2D_bnd_add__ ( TessStru ts1,
int  ips,
int  ptNr,
int  mshTyp 
)
int MSH2D_tess_pln ( GridBox gbx)
int MSH2D_tess_grid ( GridBox gbx,
double  uMin,
double  uMax,
double  vMin,
double  vMax,
int  uNr,
int  vNr 
)
int MSH2D_memspc_init ( TessStru ts1,
int  ptNr 
)
int MSH2D_memspc_exit ( TessStru ts1)
int MSH2D_tess__ ( TessStru ts1,
int  iDel,
int  iMod 
)
int MSH2D_pgb_get ( int *  ptNr,
int **  ia,
char **  stat 
)
int MSH2D_pst__ ( )
int MSH2D_bnd__ ( )
int MSH2D_fac_del__ ( int  ip1,
int  ip2 
)
int MSH2D_fac_del_m1 ( int  if1)
int MSH2D_pt_gb_ ( int  ipx,
int  idir 
)
int MSH2D_pt_gbhv ( Fac3 fax,
int  en1,
int  ipx,
int  idir 
)
int MSH2D_pt__ ( int  ipx)
int MSH2D_quads_p ( GridBox qbx)
int MSH2D_quads_f ( GridBox qbx)
int MSH2D_quad__ ( int  ipx)
int MSH2D_2fac_quad_b ( int *  ipqa,
int  iqx,
int  ipx,
int  iPos 
)
int MSH2D_4fac_quad_m ( int *  ipqa,
int  iqx,
int  ipx 
)
int MSH2D_2if_quad ( int *  ifc1,
int *  ifc2,
int  iqx,
int  ip2 
)
int MSH2D_quad_ck1 ( int *  itx,
int *  ity,
int  ipx 
)
int MSH2D_quad_ck2 ( int *  ipqa,
int  itx,
int  ity 
)
int MSH2D_quad_ckv ( int *  ifc1,
int *  en1,
int  iq1,
int  iq2,
int  ip0,
int  ip1 
)
int MSH2D_quad_set_mf ( int *  ifc1,
int *  en1,
int  iqx,
int  ip1,
int  ip2 
)
int MSH2D_quad_set_m1 ( int  iqx)
int MSH2D_opt__ ( )
int MSH2D_opt_1 ( int  ifc1,
int  esn1 
)
int MSH2D_init__ ( TessStru ts1)
int MSH2D_init_qbx ( GridBox gbx)
int MSH2D_fac_del_del ( )
int MSH2D_pst_fac_del ( Fac3 fac1)
int MSH2D_spc_ck1 ( int  iMore)
int MSH2D_facNrMax ( TessStru ts1)
int MSH2D_brkl__ ( int  ips,
int  ipe,
int  edgTyp 
)
int MSH2D_brkl_ipba ( int *  ipba,
brklStru brkls 
)
int MSH2D_brkl_fnb_eo ( int *  foa,
int *  eoa,
brklStru brkls 
)
int MSH2D_brkl_fnb__ ( int  fiNr,
int *  fia,
int *  foa,
int *  eoa,
int *  ipba,
brklStru brkls 
)
int MSH2D_brkl_bnd__ ( brklStru brkls)
int MSH2D_brkl_bnd_11 ( brklStru brkls,
int  if1,
int  en1,
int  mode 
)
int MSH2D_brkl_bnd_1_ ( brklStru brkls)
int MSH2D_brkl_bnd_2_ ( brklStru brkls)
int MSH2D_brkl_bnd_23 ( brklStru brkls)
int MSH2D_brkl_bnd_24 ( brklStru brkls)
int MSH2D_brkl_bnd_add1 ( brklStru brkls,
int  if1,
int  en1 
)
int MSH2D_brkl_flip ( int  if1,
int  en1,
int  ips,
int  ipe,
int  edgTyp 
)
int MSH2D_brkl_set ( int  if1,
int  en1,
int  ips,
int  ipe,
int  edgTyp 
)
int MSH2D_brkl_cpy ( int *  fan,
MemTab(Fac3)*  mfi 
)
int MSH2D_quad_set_mod ( int  iqx)
int MSH2D_quad_nf_mod ( int  cfNr,
int *  cfa 
)
int MSH2D_del__ ( )
int MSH2D_fdel_bnd ( int  cNr,
int *  cfa,
char *  cea 
)
int MSH2D_ctess_e ( MemTab(Fac3)*  fca,
int  cfNr,
int *  cfa,
char *  ena 
)
int MSH2D_view_inpt ( int  ptNr,
int *  ipa,
Point2 pa2 
)
int MSH2D_view_cv_inpt ( int  inptNr,
int *  inpta 
)
int MSH2D_view_nfac ( TessStru ts1,
char *  opts,
int  if1,
int  fNr,
char *  info 
)
int MSH2D_dump__ ( char *  inf)
int MSH2D_dump_qma ( )
int MSH2D_dump_brkls ( brklStru brkls,
char *  opts 
)
int MSH2D_ctess__ ( MemTab(Fac3)*  fca,
int *  iba,
int  icNr,
Point2 p2a 
)
int MSH2D_ctess_4pt ( int *  ia,
Point2 pa 
)

Variable Documentation

int WC_modact_ind
TessStru* MSH2D_ts
static
Fac3* MFAC__ = NULL
static
Fac3 * MFNB__ = NULL
static
int MSH2D_pgb_ips
static
double MSH2D_tol
static
double MSH2D_2TOL
static
double MSH2D_eLen
static
double MSH2D_mLen
static
GridBox MSH2D_qbx
static
int MSH2D_iqxMax
static
int MSH2D_iqyMax
static
int MSH2D_qNr
static
int MSH2D_bnd_nr
static
int MSH2D_it_OB
static
char MSH2D_is_delOB
static
char* MSH2D_qma
static