searchableSurfacesQueries.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef searchableSurfacesQueries_H
00037 #define searchableSurfacesQueries_H
00038
00039 #include "searchableSurface.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047 class plane;
00048
00049
00050
00051
00052
00053 class searchableSurfacesQueries
00054 {
00055
00056
00057
00058
00059
00060 static pointIndexHit tempFindNearest
00061 (
00062 const searchableSurface&,
00063 const point& pt,
00064 const scalar initDistSqr
00065 );
00066
00067
00068
00069
00070 static scalar sumDistSqr
00071 (
00072 const PtrList<searchableSurface>&,
00073 const labelList& surfacesToTest,
00074 const scalar initialDistSqr,
00075 const point& pt
00076 );
00077
00078
00079
00080
00081 static scalar tryMorphTet
00082 (
00083 const PtrList<searchableSurface>&,
00084 const labelList& surfacesToTest,
00085 const scalar initialDistSqr,
00086 List<vector>& p,
00087 List<scalar>& y,
00088 vector& pSum,
00089 const label ihi,
00090 const scalar fac
00091 );
00092
00093
00094
00095
00096
00097 static bool morphTet
00098 (
00099 const PtrList<searchableSurface>&,
00100 const labelList& surfacesToTest,
00101 const scalar initialDistSqr,
00102 const scalar convergenceDistSqr,
00103 const label maxIter,
00104 List<vector>& p,
00105 List<scalar>& y
00106 );
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117 static void mergeHits
00118 (
00119 const point& start,
00120 const scalar mergeDist,
00121
00122 const label surfI,
00123 const List<pointIndexHit>& surfHits,
00124
00125 labelList& allSurfaces,
00126 List<pointIndexHit>& allInfo,
00127 scalarList& allDistSqr
00128 );
00129
00130 public:
00131
00132
00133 ClassName("searchableSurfacesQueries");
00134
00135
00136
00137
00138
00139
00140
00141 static void findAnyIntersection
00142 (
00143 const PtrList<searchableSurface>&,
00144 const labelList& surfacesToTest,
00145 const pointField& start,
00146 const pointField& end,
00147 labelList& surfaces,
00148 List<pointIndexHit>&
00149 );
00150
00151
00152
00153 static void findAllIntersections
00154 (
00155 const PtrList<searchableSurface>&,
00156 const labelList& surfacesToTest,
00157 const pointField& start,
00158 const pointField& end,
00159 labelListList& surfaces,
00160 List<List<pointIndexHit> >& surfaceHits
00161 );
00162
00163
00164
00165 static void findNearest
00166 (
00167 const PtrList<searchableSurface>&,
00168 const labelList& surfacesToTest,
00169 const pointField&,
00170 const scalarField& nearestDistSqr,
00171 labelList& surfaces,
00172 List<pointIndexHit>&
00173 );
00174
00175
00176
00177
00178
00179 static pointIndexHit facesIntersection
00180 (
00181 const PtrList<searchableSurface>& allSurfaces,
00182 const labelList& surfacesToTest,
00183 const scalar initDistSqr,
00184 const scalar convergenceDistSqr,
00185 const point& start
00186 );
00187 };
00188
00189
00190
00191
00192 }
00193
00194
00195
00196 #endif
00197
00198
Copyright © 2000-2009 OpenCFD Ltd