C:/USPDesig/INC/sethmain.h File Reference

#include <stdio.h>

Go to the source code of this file.

Classes

struct  _nbr
struct  _nb
struct  _sectors
struct  _sonvv
struct  _sonvf
struct  sff

Defines

#define EXT   extern
#define MAXONVERTICES   200
#define MAXSECTORS   50
#define MAXEDGESFORVERTEX   50
#define MAXNULLEDGES   100
#define MAXNULLFACES   50
#define MAXENDEDGES   50
#define MAXENDS   30
#define USP_IN   1
#define USP_ON   0
#define USP_OUT   -1
#define USP_UNION   1
#define USP_INTERSECT   2
#define USP_DIFFERENCE   3
#define MAXSHELLS   50

Typedefs

typedef int Id
typedef real vector [4]
typedef struct solid STYPE
typedef struct face FTYPE
typedef struct loop LTYPE
typedef struct edge ETYPE
typedef struct halfedge HTYPE
typedef struct vertex VTYPE
typedef struct _nbr NBR
typedef struct _nb NB
typedef struct _sectors SECTORS
typedef struct _sonvv SONVV
typedef struct _sonvf SONVF
typedef struct sff SFF

Functions

void MSD_execNameDifference (void)
void MSD_highNameDifference (char *name1, char *name2, char *name)
void MSD_execDifference (void)
Id MSD_highDifference (Id sn1, Id sn2)
void MSD_execNameIntersection (void)
void MSD_highNameIntersection (char *name1, char *name2, char *name)
void MSD_execIntersection (void)
Id MSD_highIntersection (Id sn1, Id sn2)
int MSD_lowSetOp (SPTYPE a, SPTYPE b, Id sn, SPTYPE *res, int op)
int MSD_lowSetOpInitiate0 (void)
void MSD_lowSetOpTerminate0 (void)
int MSD_lowSetOpInitiate1 (void)
void MSD_lowSetOpTerminate1 (void)
int MSD_lowSetOpInitiate2 (void)
void MSD_lowSetOpTerminate2 (void)
int MSD_lowSetOpInitiate3 (void)
void MSD_lowSetOpTerminate3 (void)
int MSD_lowSetOpInitiate4 (void)
void MSD_lowSetOpTerminate4 (void)
int MSD_lowSetOpInitiate5 (void)
void MSD_lowSetOpTerminate5 (void)
void MSD_lowSetOpClassify (int op)
void MSD_lowVtxVtxClassify (VPTYPE va, VPTYPE vb, int op)
void MSD_lowVtxFacClassify (VPTYPE v, FPTYPE f, int op, int flag)
void MSD_lowSetOpVFGetNeighborhood (VPTYPE v, vector SP)
void MSD_lowSetOpVFReclassifyOnSectors (vector SP, int op, int flag)
void MSD_lowSetOpVFReclassifyOnEdges (void)
void MSD_lowSetOpVFInsertNullEdges (FPTYPE f, int flag)
void MSD_lowSetOpMakeRing (FPTYPE f, double x, double y, double z, int flag)
void MSD_lowSetOpConnect (void)
void MSD_lowSetOpJoin (HPTYPE, HPTYPE)
int MSD_lowSetOpCanJoin (HPTYPE, HPTYPE, HPTYPE *, HPTYPE *)
void MSD_lowSetOpSortNullEdges (void)
int MSD_lowSetOpGreater (int i, int j)
void MSD_lowSetOpSwap (int i, int j)
int MSD_lowSetOpIsLooseA (HPTYPE he)
int MSD_lowSetOpIsLooseB (HPTYPE he)
void MSD_lowSetOpCutA (HPTYPE he)
void MSD_lowSetOpCutB (HPTYPE he)
int MSD_lowSetOpGetNextNullEdge (EPTYPE *, EPTYPE *)
int MSD_lowSetOpNeighbor (HPTYPE, HPTYPE)
SPTYPE MSD_lowSetOpFinish (SPTYPE a, SPTYPE b, Id sn, int op)
void MSD_lowSetOpGenerate (SPTYPE a, SPTYPE b)
void MSD_lowSetOpProcessEdge (EPTYPE, FPTYPE, DPTYPE, int BvxA)
void MSD_lowSetOpDoGenerate (EPTYPE, FPTYPE, int BvxA)
void MSD_lowSetOpDoVertexOnFace (VPTYPE, FPTYPE, int BvxA)
void MSD_lowSetOpAddSOVF (VPTYPE, FPTYPE, int flag)
void MSD_lowSetOpAddSOVV (VPTYPE, VPTYPE, int flag)
int MSD_lowSetOpFacPntContainment (FPTYPE, real x, real y, real z)
void MSD_lowSetOpVVGetNeighborhood (VPTYPE, VPTYPE)
int MSD_lowSetOpNbaPreProcess (VPTYPE)
int MSD_lowSetOpNbbPreProcess (VPTYPE)
int MSD_lowSetOpSectorTest (int i, int j)
int MSD_lowSetOpSectorWithin (vector dir, vector ref1, vector ref2, vector ref12)
int MSD_lowSetOpOverlap (HPTYPE, HPTYPE)
int MSD_lowSetOpSectorOverlap (HPTYPE, HPTYPE)
void MSD_lowSetOpInside (HPTYPE he, vector in)
void MSD_lowSetOpVVInsertNullEdges (int)
int MSD_lowSetOpGetOrient (HPTYPE, HPTYPE, HPTYPE)
int MSD_lowSetOpSectorWide (HPTYPE, int)
int MSD_lowSetOpConvexEdge (HPTYPE)
void MSD_lowSetOpSepar1 (HPTYPE, HPTYPE, int)
void MSD_lowSetOpSepar2 (HPTYPE, int, int, int)
int MSD_lowSetOpStrutNullEdge (HPTYPE)
int MSD_lowSetOpNullEdge (HPTYPE)
void MSD_lowSetOpVVReclassifyEdges (int op)
void MSD_lowSetOpVVReclassifySectors (int op)
void MSD_execNameUnion (void)
void MSD_highNameUnion (char *name1, char *name2, char *name)
void MSD_execUnion (void)
Id MSD_highUnion (Id sn1, Id sn2)
void trace_he (HPTYPE he)
void trace_e (EPTYPE e)
void trace_nbr (int x)
void trace_nba (int x)
void trace_nbb (int x)

Variables

EXT NB nbb [MAXSECTORS]
EXT NB nba [MAXSECTORS]
EXT SECTORS sectors [MAXSECTORS]
EXT int nnba
EXT int nnbb
EXT int nsectors
EXT NBR nbr [MAXEDGESFORVERTEX]
EXT int nnbr
EXT SFF shellposa [MAXSHELLS]
EXT SFF shellposb [MAXSHELLS]
EXT int contshella
EXT int contshellb
EXT SONVV sonvv [MAXONVERTICES]
EXT SONVF sonva [MAXONVERTICES]
EXT SONVF sonvb [MAXONVERTICES]
EXT int nvvtx
EXT int nvtxa
EXT int nvtxb
EXT EPTYPE sonea [MAXNULLEDGES]
EXT EPTYPE soneb [MAXNULLEDGES]
EXT FPTYPE sonfa [MAXNULLFACES *2]
EXT FPTYPE sonfb [MAXNULLFACES *2]
EXT int nedga
EXT int nedgb
EXT int nfaca
EXT int nfacb
EXT HPTYPE endsa [MAXENDS]
EXT HPTYPE endsb [MAXENDS]
EXT int nenda
EXT int nendb
EXT int null_pnta
EXT int null_pntb


Define Documentation

#define EXT   extern

Definition at line 49 of file sethmain.h.

#define MAXEDGESFORVERTEX   50

Definition at line 110 of file sethmain.h.

Referenced by MSD_lowGetNeighborhood(), and MSD_lowSetOpVFGetNeighborhood().

#define MAXENDEDGES   50

Definition at line 113 of file sethmain.h.

#define MAXENDS   30

Definition at line 114 of file sethmain.h.

Referenced by MSD_lowSetOpCanJoin().

#define MAXNULLEDGES   100

#define MAXNULLFACES   50

Definition at line 112 of file sethmain.h.

Referenced by MSD_lowSetOpCutA(), and MSD_lowSetOpCutB().

#define MAXONVERTICES   200

Definition at line 108 of file sethmain.h.

Referenced by MSD_lowSetOpAddSOVF(), and MSD_lowSetOpAddSOVV().

#define MAXSECTORS   50

#define MAXSHELLS   50

Definition at line 183 of file sethmain.h.

#define USP_DIFFERENCE   3

#define USP_IN   1

#define USP_INTERSECT   2

#define USP_ON   0

#define USP_OUT   -1

#define USP_UNION   1


Typedef Documentation

typedef struct edge ETYPE

Definition at line 78 of file sethmain.h.

typedef struct face FTYPE

Definition at line 70 of file sethmain.h.

typedef struct halfedge HTYPE

Definition at line 82 of file sethmain.h.

typedef int Id

Definition at line 58 of file sethmain.h.

typedef struct loop LTYPE

Definition at line 74 of file sethmain.h.

typedef struct _nb NB

Definition at line 134 of file sethmain.h.

typedef struct _nbr NBR

Definition at line 133 of file sethmain.h.

typedef struct _sectors SECTORS

Definition at line 135 of file sethmain.h.

typedef struct sff SFF

Definition at line 185 of file sethmain.h.

typedef struct _sonvf SONVF

Definition at line 137 of file sethmain.h.

typedef struct _sonvv SONVV

Definition at line 136 of file sethmain.h.

typedef struct solid STYPE

Definition at line 66 of file sethmain.h.

typedef real vector[4]

Definition at line 62 of file sethmain.h.

typedef struct vertex VTYPE

Definition at line 86 of file sethmain.h.


Function Documentation

void MSD_execDifference ( void   ) 

void MSD_execIntersection ( void   ) 

void MSD_execNameDifference ( void   ) 

Definition at line 55 of file setdiffe.cpp.

References lineins(), MSD_highNameDifference(), and restbuf.

void MSD_execNameIntersection ( void   ) 

Definition at line 55 of file setinter.cpp.

References lineins(), MSD_highNameIntersection(), and restbuf.

void MSD_execNameUnion ( void   ) 

Definition at line 55 of file setunion.cpp.

References lineins(), MSD_highNameUnion(), and restbuf.

void MSD_execUnion ( void   ) 

Id MSD_highDifference ( Id  sn1,
Id  sn2 
)

Id MSD_highIntersection ( Id  sn1,
Id  sn2 
)

void MSD_highNameDifference ( char *  name1,
char *  name2,
char *  name 
)

void MSD_highNameIntersection ( char *  name1,
char *  name2,
char *  name 
)

void MSD_highNameUnion ( char *  name1,
char *  name2,
char *  name 
)

Id MSD_highUnion ( Id  sn1,
Id  sn2 
)

int MSD_lowSetOp ( SPTYPE  a,
SPTYPE  b,
Id  sn,
SPTYPE *  res,
int  op 
)

void MSD_lowSetOpAddSOVF ( VPTYPE  ,
FPTYPE  ,
int  flag 
)

void MSD_lowSetOpAddSOVV ( VPTYPE  ,
VPTYPE  ,
int  flag 
)

Definition at line 438 of file setopgen.cpp.

References MAXONVERTICES, nvvtx, SetVVva, SetVVvb, trace, and trace_v.

Referenced by MSD_lowSetOpDoGenerate(), and MSD_lowSetOpDoVertexOnFace().

int MSD_lowSetOpCanJoin ( HPTYPE  ,
HPTYPE  ,
HPTYPE *  ,
HPTYPE *   
)

Definition at line 272 of file setopcon.cpp.

References HNIL, MAXENDS, MSD_lowSetOpNeighbor(), nenda, nendb, SetEndsa, SetEndsb, trace, and trace_he().

Referenced by MSD_lowSetOpConnect().

void MSD_lowSetOpClassify ( int  op  ) 

void MSD_lowSetOpConnect ( void   ) 

int MSD_lowSetOpConvexEdge ( HPTYPE   ) 

void MSD_lowSetOpCutA ( HPTYPE  he  ) 

void MSD_lowSetOpCutB ( HPTYPE  he  ) 

void MSD_lowSetOpDoGenerate ( EPTYPE  ,
FPTYPE  ,
int  BvxA 
)

void MSD_lowSetOpDoVertexOnFace ( VPTYPE  ,
FPTYPE  ,
int  BvxA 
)

int MSD_lowSetOpFacPntContainment ( FPTYPE  ,
real  x,
real  y,
real  z 
)

SPTYPE MSD_lowSetOpFinish ( SPTYPE  a,
SPTYPE  b,
Id  sn,
int  op 
)

void MSD_lowSetOpGenerate ( SPTYPE  a,
SPTYPE  b 
)

int MSD_lowSetOpGetNextNullEdge ( EPTYPE *  ,
EPTYPE *   
)

Definition at line 507 of file setopcon.cpp.

References EdgHe1, ENIL, FALSE, nedga, nedgb, null_pnta, null_pntb, SetSonea, SetSoneb, trace, trace_he(), and TRUE.

Referenced by MSD_lowSetOpConnect().

int MSD_lowSetOpGetOrient ( HPTYPE  ,
HPTYPE  ,
HPTYPE   
)

int MSD_lowSetOpGreater ( int  i,
int  j 
)

Definition at line 358 of file setopcon.cpp.

References comp(), EdgHe1, EPS, HalVtx, SetSonea, VerVCoord, and VPTYPE.

Referenced by MSD_lowSetOpSortNullEdges().

int MSD_lowSetOpInitiate0 ( void   ) 

Referenced by MSD_lowSetOp().

int MSD_lowSetOpInitiate1 ( void   ) 

Referenced by MSD_lowSetOp().

int MSD_lowSetOpInitiate2 ( void   ) 

Referenced by MSD_lowSetOp().

int MSD_lowSetOpInitiate3 ( void   ) 

Referenced by MSD_lowSetOpClassify().

int MSD_lowSetOpInitiate4 ( void   ) 

Referenced by MSD_lowSetOpClassify().

int MSD_lowSetOpInitiate5 ( void   ) 

Referenced by MSD_lowSetOpClassify().

void MSD_lowSetOpInside ( HPTYPE  he,
vector  in 
)

int MSD_lowSetOpIsLooseA ( HPTYPE  he  ) 

Definition at line 399 of file setopcon.cpp.

References nenda, and SetEndsa.

Referenced by MSD_lowSetOpConnect().

int MSD_lowSetOpIsLooseB ( HPTYPE  he  ) 

Definition at line 413 of file setopcon.cpp.

References nendb, and SetEndsb.

Referenced by MSD_lowSetOpConnect().

void MSD_lowSetOpJoin ( HPTYPE  ,
HPTYPE   
)

void MSD_lowSetOpMakeRing ( FPTYPE  f,
double  x,
double  y,
double  z,
int  flag 
)

int MSD_lowSetOpNbaPreProcess ( VPTYPE   ) 

int MSD_lowSetOpNbbPreProcess ( VPTYPE   ) 

int MSD_lowSetOpNeighbor ( HPTYPE  ,
HPTYPE   
)

Definition at line 530 of file setopcon.cpp.

References EdgHe1, EdgHe2, FALSE, HalEdg, HalVtx, HalWLoop, LooLFace, and mate.

Referenced by MSD_lowSetOpCanJoin().

int MSD_lowSetOpNullEdge ( HPTYPE   ) 

int MSD_lowSetOpOverlap ( HPTYPE  ,
HPTYPE   
)

Definition at line 458 of file setopget.cpp.

References MSD_lowNaoUtilizado, and TRUE.

Referenced by MSD_lowSetOpSectorTest().

void MSD_lowSetOpProcessEdge ( EPTYPE  ,
FPTYPE  ,
DPTYPE  ,
int  BvxA 
)

int MSD_lowSetOpSectorOverlap ( HPTYPE  ,
HPTYPE   
)

int MSD_lowSetOpSectorTest ( int  i,
int  j 
)

int MSD_lowSetOpSectorWide ( HPTYPE  ,
int   
)

Definition at line 255 of file setsinsn.cpp.

References cross(), dot(), EPS, FacFeq, HalNxt, HalPrv, HalVtx, HalWLoop, LooLFace, veccopy(), vecminus(), vecnull(), and VerVCoord.

Referenced by MSD_lowSetOpGetOrient().

int MSD_lowSetOpSectorWithin ( vector  dir,
vector  ref1,
vector  ref2,
vector  ref12 
)

Definition at line 387 of file setopget.cpp.

References comp(), cross(), dot(), EPS, FALSE, trace, TRUE, and vecnull().

Referenced by MSD_lowSetOpSectorTest(), and MSD_lowSetOpVVGetNeighborhood().

void MSD_lowSetOpSepar1 ( HPTYPE  ,
HPTYPE  ,
int   
)

void MSD_lowSetOpSepar2 ( HPTYPE  ,
int  ,
int  ,
int   
)

void MSD_lowSetOpSortNullEdges ( void   ) 

Definition at line 332 of file setopcon.cpp.

References MSD_lowSetOpGreater(), MSD_lowSetOpSwap(), nedga, null_pnta, and null_pntb.

Referenced by MSD_lowSetOpConnect().

int MSD_lowSetOpStrutNullEdge ( HPTYPE   ) 

Definition at line 491 of file setsinsn.cpp.

References HalNxt, HalPrv, and mate.

Referenced by MSD_lowSetOpSepar1().

void MSD_lowSetOpSwap ( int  i,
int  j 
)

Definition at line 387 of file setopcon.cpp.

References EPTYPE, SetSonea, and SetSoneb.

Referenced by MSD_lowSetOpSortNullEdges().

void MSD_lowSetOpTerminate0 ( void   ) 

Referenced by MSD_lowSetOp().

void MSD_lowSetOpTerminate1 ( void   ) 

Referenced by MSD_lowSetOpClassify().

void MSD_lowSetOpTerminate2 ( void   ) 

Referenced by MSD_lowSetOpClassify().

void MSD_lowSetOpTerminate3 ( void   ) 

Referenced by MSD_lowSetOpClassify().

void MSD_lowSetOpTerminate4 ( void   ) 

Referenced by MSD_lowSetOpClassify().

void MSD_lowSetOpTerminate5 ( void   ) 

Referenced by MSD_lowSetOp().

void MSD_lowSetOpVFGetNeighborhood ( VPTYPE  v,
vector  SP 
)

void MSD_lowSetOpVFInsertNullEdges ( FPTYPE  f,
int  flag 
)

void MSD_lowSetOpVFReclassifyOnEdges ( void   ) 

Definition at line 416 of file setopcls.cpp.

References nnbr, SetNBRC1, USP_IN, USP_ON, and USP_OUT.

Referenced by MSD_lowVtxFacClassify().

void MSD_lowSetOpVFReclassifyOnSectors ( vector  SP,
int  op,
int  flag 
)

Definition at line 357 of file setopcls.cpp.

References comp(), cross(), dot(), EPS, FacFeq, FPTYPE, HalWLoop, LooLFace, mate, nnbr, SetNBRC1, SetNBRSector, USP_IN, USP_OUT, and USP_UNION.

Referenced by MSD_lowVtxFacClassify().

void MSD_lowSetOpVVGetNeighborhood ( VPTYPE  ,
VPTYPE   
)

void MSD_lowSetOpVVInsertNullEdges ( int   ) 

void MSD_lowSetOpVVReclassifyEdges ( int  op  ) 

void MSD_lowSetOpVVReclassifySectors ( int  op  ) 

void MSD_lowVtxFacClassify ( VPTYPE  v,
FPTYPE  f,
int  op,
int  flag 
)

void MSD_lowVtxVtxClassify ( VPTYPE  va,
VPTYPE  vb,
int  op 
)

void trace_e ( EPTYPE  e  ) 

void trace_he ( HPTYPE  he  ) 

void trace_nba ( int  x  ) 

void trace_nbb ( int  x  ) 

void trace_nbr ( int  x  ) 


Variable Documentation

EXT int contshella

Definition at line 194 of file sethmain.h.

Referenced by MSD_lowSetOp(), and MSD_lowSetOpFinish().

EXT int contshellb

Definition at line 194 of file sethmain.h.

Referenced by MSD_lowSetOp(), and MSD_lowSetOpFinish().

EXT HPTYPE endsa[MAXENDS]

Definition at line 212 of file sethmain.h.

EXT HPTYPE endsb[MAXENDS]

Definition at line 213 of file sethmain.h.

EXT NB nba[MAXSECTORS]

Definition at line 159 of file sethmain.h.

EXT NB nbb[MAXSECTORS]

Definition at line 158 of file sethmain.h.

EXT NBR nbr[MAXEDGESFORVERTEX]

Definition at line 165 of file sethmain.h.

EXT int nedga

EXT int nedgb

EXT int nenda

Definition at line 215 of file sethmain.h.

Referenced by MSD_lowSetOpCanJoin(), MSD_lowSetOpConnect(), and MSD_lowSetOpIsLooseA().

EXT int nendb

Definition at line 215 of file sethmain.h.

Referenced by MSD_lowSetOpCanJoin(), MSD_lowSetOpConnect(), and MSD_lowSetOpIsLooseB().

EXT int nfaca

EXT int nfacb

EXT int nnba

EXT int nnbb

EXT int nnbr

EXT int nsectors

EXT int null_pnta

Definition at line 215 of file sethmain.h.

Referenced by MSD_lowSetOpGetNextNullEdge(), and MSD_lowSetOpSortNullEdges().

EXT int null_pntb

Definition at line 215 of file sethmain.h.

Referenced by MSD_lowSetOpGetNextNullEdge(), and MSD_lowSetOpSortNullEdges().

EXT int nvtxa

Definition at line 200 of file sethmain.h.

Referenced by MSD_lowSetOpAddSOVF(), MSD_lowSetOpClassify(), and MSD_lowSetOpGenerate().

EXT int nvtxb

Definition at line 200 of file sethmain.h.

Referenced by MSD_lowSetOpAddSOVF(), MSD_lowSetOpClassify(), and MSD_lowSetOpGenerate().

EXT int nvvtx

Definition at line 200 of file sethmain.h.

Referenced by MSD_lowSetOpAddSOVV(), MSD_lowSetOpClassify(), and MSD_lowSetOpGenerate().

EXT SECTORS sectors[MAXSECTORS]

Definition at line 160 of file sethmain.h.

EXT SFF shellposa[MAXSHELLS]

Definition at line 192 of file sethmain.h.

EXT SFF shellposb[MAXSHELLS]

Definition at line 192 of file sethmain.h.

EXT EPTYPE sonea[MAXNULLEDGES]

Definition at line 203 of file sethmain.h.

EXT EPTYPE soneb[MAXNULLEDGES]

Definition at line 204 of file sethmain.h.

EXT FPTYPE sonfa[MAXNULLFACES *2]

Definition at line 205 of file sethmain.h.

EXT FPTYPE sonfb[MAXNULLFACES *2]

Definition at line 206 of file sethmain.h.

EXT SONVF sonva[MAXONVERTICES]

Definition at line 198 of file sethmain.h.

EXT SONVF sonvb[MAXONVERTICES]

Definition at line 198 of file sethmain.h.

EXT SONVV sonvv[MAXONVERTICES]

Definition at line 197 of file sethmain.h.


Generated on Tue Feb 26 09:12:50 2008 for USPDesigner by  doxygen 1.5.5