COVISE Core
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
25namespace covise
26{
27
28// variables
30int *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
44void 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
48int isEqual(float x1, float y1, float z1,
49 float x2, float y2, float z2, float dist);
50
51int getOctant(float x, float y, float z, float ox, float oy, float oz);
52
53void 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
55void 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
61void 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);
67void computeWorkingLists(int num_coord);
68
69void computeReplaceLists(int num_coord, int *replBy,
70 int *&src2filt, int *&filtered2source);
71}
72#endif
#define ALGEXPORT
Definition: coExport.h:337
GLdouble n
Definition: khronos-glext.h:8447
const GLubyte * c
Definition: khronos-glext.h:9864
GLfixed GLfixed GLfixed y2
Definition: khronos-glext.h:11325
GLdouble GLdouble z
Definition: khronos-glext.h:6565
GLfixed y1
Definition: khronos-glext.h:11325
GLuint GLfloat GLfloat GLfloat x1
Definition: khronos-glext.h:13144
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
GLfixed GLfixed x2
Definition: khronos-glext.h:11325
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
list of all chemical elements
Definition: coConfig.h:27
int numFiltered
Definition: DeleteUnusedPoints.h:34
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 numCoordToRemove
Definition: DeleteUnusedPoints.h:29
void computeWorkingLists(int num_coord)
Definition: DeleteUnusedPoints.cpp:559
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 * 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
int getOctant(float x, float y, float z, float ox, float oy, float oz)
Definition: DeleteUnusedPoints.cpp:220
int * replBy
Definition: DeleteUnusedPoints.h:30
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
coDistributedObject * checkUSG(coDistributedObject *DistrObj, const coObjInfo &outInfo)
Definition: DeleteUnusedPoints.cpp:30
void computeReplaceLists(int num_coord, int *replBy, int *&source2filtered, int *&filtered2source)
Definition: DeleteUnusedPoints.cpp:620
coDistributedObject * filterCoordinates(coDistributedObject *obj_in, const coObjInfo &outInfo, int master_num_coord, float *xcoord, float *ycoord, float *zcoord)
Definition: DeleteUnusedPoints.cpp:680
int * source2filtered
Definition: DeleteUnusedPoints.h:33
Definition: coObjID.h:231
Definition: coDistributedObject.h:296