COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
DeleteUnusedPoints.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CHECK_USG_H
9 #define CHECK_USG_H
10 /**************************************************************************\
11  ** (C)2001 **
12  ** Description: FixUSG delets points which are more than one time **
13  ** in an UnstructuredGrid **
14  ** **
15  ** Author: **
16  ** Karin Müller **
17  ** Vircinity **
18  ** Technologiezentrum **
19  ** 70550 Stuttgart **
20  ** Date: 01.10.01 **
21 \**************************************************************************/
22 
23 #include <do/coDoData.h>
24 
25 namespace covise
26 {
27 
28 // variables
30 int *replBy;
31 
35 
36 // functions
37 // this is the main function which must be used, if you want to fix USG
39 
40 // these are helping funktions for checkUSG
42  int master_num_coord, float *xcoord, float *ycoord, float *zcoord);
43 
44 void boundingBox(float **x, float **y, float **z, int *c, int n,
45  float *bbx1, float *bby1, float *bbz1,
46  float *bbx2, float *bby2, float *bbz2);
47 
48 int isEqual(float x1, float y1, float z1,
49  float x2, float y2, float z2, float dist);
50 
51 int getOctant(float x, float y, float z, float ox, float oy, float oz);
52 
53 void getOctantBounds(int o, float ox, float oy, float oz, float bbx1, float bby1, float bbz1, float bbx2, float bby2, float bbz2, float *bx1, float *by1, float *bz1, float *bx2, float *by2, float *bz2);
54 
55 void computeCell(float *xcoord, float *ycoord, float *zcoord,
56  int *coordInBox, int numCoordInBox,
57  float bbx1, float bby1, float bbz1,
58  float bbx2, float bby2, float bbz2,
59  int optimize, float maxDistanceSqr, int maxCoord);
60 
61 void computeCell(float *xcoord, float *ycoord, float *zcoord,
62  int *coordInBox, int numCoordInBox,
63  float bbx1, float bby1, float bbz1,
64  float bbx2, float bby2, float bbz2,
65  int maxCoord,
66  int *replBy, int &numCoordToRemove);
67 void computeWorkingLists(int num_coord);
68 
69 void computeReplaceLists(int num_coord, int *replBy,
70  int *&src2filt, int *&filtered2source);
71 }
72 #endif
void computeReplaceLists(int num_coord, int *replBy, int *&source2filtered, int *&filtered2source)
Definition: DeleteUnusedPoints.cpp:620
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
GLdouble n
Definition: khronos-glext.h:8447
void computeCell(float *xcoord, float *ycoord, float *zcoord, int *coordInBox, int numCoordInBox, float bbx1, float bby1, float bbz1, float bbx2, float bby2, float bbz2, int optimize, float maxDistanceSqr, int maxCoord)
Definition: DeleteUnusedPoints.cpp:335
int * source2filtered
Definition: DeleteUnusedPoints.h:33
GLfixed GLfixed GLfixed y2
Definition: khronos-glext.h:11325
int numCoordToRemove
Definition: DeleteUnusedPoints.h:29
GLdouble GLdouble z
Definition: khronos-glext.h:6565
Definition: coObjID.h:230
#define ALGEXPORT
Definition: coExport.h:313
void computeWorkingLists(int num_coord)
Definition: DeleteUnusedPoints.cpp:559
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
const GLubyte * c
Definition: khronos-glext.h:9864
coDistributedObject * checkUSG(coDistributedObject *DistrObj, const coObjInfo &outInfo)
Definition: DeleteUnusedPoints.cpp:30
int getOctant(float x, float y, float z, float ox, float oy, float oz)
Definition: DeleteUnusedPoints.cpp:220
void getOctantBounds(int o, float ox, float oy, float oz, float bbx1, float bby1, float bbz1, float bbx2, float bby2, float bbz2, float *bx1, float *by1, float *bz1, float *bx2, float *by2, float *bz2)
Definition: DeleteUnusedPoints.cpp:257
int * filtered2source
Definition: DeleteUnusedPoints.h:32
int isEqual(float x1, float y1, float z1, float x2, float y2, float z2, float dist)
Definition: DeleteUnusedPoints.cpp:198
GLfixed GLfixed x2
Definition: khronos-glext.h:11325
Definition: coDistributedObject.h:295
GLuint GLfloat GLfloat GLfloat x1
Definition: khronos-glext.h:13144
coDistributedObject * filterCoordinates(coDistributedObject *obj_in, const coObjInfo &outInfo, int master_num_coord, float *xcoord, float *ycoord, float *zcoord)
Definition: DeleteUnusedPoints.cpp:680
int numFiltered
Definition: DeleteUnusedPoints.h:34
void boundingBox(float **x, float **y, float **z, int *c, int n, float *bbx1, float *bby1, float *bbz1, float *bbx2, float *bby2, float *bbz2)
Definition: DeleteUnusedPoints.cpp:159
int * replBy
Definition: DeleteUnusedPoints.h:30
GLfixed y1
Definition: khronos-glext.h:11325