triSurfaceMesh.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
00037
00038
00039
00040
00041 #ifndef triSurfaceMesh_H
00042 #define triSurfaceMesh_H
00043
00044 #include "treeBoundBox.H"
00045 #include "searchableSurface.H"
00046 #include "objectRegistry.H"
00047 #include "indexedOctree.H"
00048 #include "treeDataTriSurface.H"
00049 #include "treeDataEdge.H"
00050 #include "EdgeMap.H"
00051
00052
00053
00054 namespace Foam
00055 {
00056
00057
00058
00059
00060
00061 class triSurfaceMesh
00062 :
00063 public searchableSurface,
00064 public objectRegistry,
00065 public triSurface
00066 {
00067 private:
00068
00069
00070
00071
00072 scalar tolerance_;
00073
00074
00075 mutable autoPtr<indexedOctree<treeDataTriSurface> > tree_;
00076
00077
00078 mutable autoPtr<indexedOctree<treeDataEdge> > edgeTree_;
00079
00080
00081 mutable wordList regions_;
00082
00083
00084 mutable label surfaceClosed_;
00085
00086
00087
00089
00090
00091
00092
00093
00094
00095
00096
00097 static const fileName& checkFile
00098 (
00099 const fileName& fName,
00100 const fileName& objectName
00101 );
00102
00103
00104 static bool addFaceToEdge
00105 (
00106 const edge&,
00107 EdgeMap<label>&
00108 );
00109
00110
00111
00112 bool isSurfaceClosed() const;
00113
00114
00115 triSurfaceMesh(const triSurfaceMesh&);
00116
00117
00118 void operator=(const triSurfaceMesh&);
00119
00120
00121 public:
00122
00123
00124 TypeName("triSurfaceMesh");
00125
00126
00127
00128
00129
00130 triSurfaceMesh(const IOobject&, const triSurface&);
00131
00132
00133 triSurfaceMesh(const IOobject& io);
00134
00135
00136
00137 triSurfaceMesh
00138 (
00139 const IOobject& io,
00140 const dictionary& dict
00141 );
00142
00143
00144
00145
00146 virtual ~triSurfaceMesh();
00147
00148
00149 void clearOut();
00150
00151
00152
00153
00154
00155 virtual void movePoints(const pointField&);
00156
00157
00158 const indexedOctree<treeDataTriSurface>& tree() const;
00159
00160
00161 const indexedOctree<treeDataEdge>& edgeTree() const;
00162
00163
00164
00165
00166 virtual const wordList& regions() const;
00167
00168
00169 virtual bool hasVolumeType() const;
00170
00171
00172 virtual label size() const
00173 {
00174 return triSurface::size();
00175 }
00176
00177 virtual void findNearest
00178 (
00179 const pointField& sample,
00180 const scalarField& nearestDistSqr,
00181 List<pointIndexHit>&
00182 ) const;
00183
00184 virtual void findLine
00185 (
00186 const pointField& start,
00187 const pointField& end,
00188 List<pointIndexHit>&
00189 ) const;
00190
00191 virtual void findLineAny
00192 (
00193 const pointField& start,
00194 const pointField& end,
00195 List<pointIndexHit>&
00196 ) const;
00197
00198
00199 virtual void findLineAll
00200 (
00201 const pointField& start,
00202 const pointField& end,
00203 List<List<pointIndexHit> >&
00204 ) const;
00205
00206
00207 virtual void getRegion
00208 (
00209 const List<pointIndexHit>&,
00210 labelList& region
00211 ) const;
00212
00213
00214 virtual void getNormal
00215 (
00216 const List<pointIndexHit>&,
00217 vectorField& normal
00218 ) const;
00219
00220
00221
00222 virtual void getVolumeType
00223 (
00224 const pointField&,
00225 List<volumeType>&
00226 ) const;
00227
00228
00229
00230
00231
00232 virtual void distribute
00233 (
00234 const List<treeBoundBox>&,
00235 const bool keepNonLocal,
00236 autoPtr<mapDistribute>& faceMap,
00237 autoPtr<mapDistribute>& pointMap
00238 )
00239 {}
00240
00241
00242
00243
00244
00245 virtual void getField
00246 (
00247 const word& fieldName,
00248 const List<pointIndexHit>&,
00249 labelList& values
00250 ) const;
00251
00252
00253
00254
00255 bool writeData(Ostream&) const
00256 {
00257 notImplemented("triSurfaceMesh::writeData(Ostream&) const");
00258 return false;
00259 }
00260
00261
00262 virtual bool writeObject
00263 (
00264 IOstream::streamFormat fmt,
00265 IOstream::versionNumber ver,
00266 IOstream::compressionType cmp
00267 ) const;
00268
00269 };
00270
00271
00272
00273
00274 }
00275
00276
00277
00278 #endif
00279
00280
Copyright © 2000-2009 OpenCFD Ltd