mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- with '&&' conditions, often better to check for non-null autoPtr
first (it is cheap)
- check as bool instead of valid() method for cleaner code, especially
when the wrapped item itself has a valid/empty or good.
Also when handling multiple checks.
Now
if (ptr && ptr->valid())
if (ptr1 || ptr2)
instead
if (ptr.valid() && ptr->valid())
if (ptr1.valid() || ptr2.valid())
2008-10-23 Contents: surfaceAdd - adds to surface files. (but does not intersect or anything) surfaceBooleanOp - Boolean operations (add, or, xor) on closed surfaces. Probably not working. surfaceCheck - checks surface for incorrect topology. Checks normals of neighbouring faces. surfaceCoarsen - Stan Melax coarsening algorithm surfaceConvert - Converts surfaces to/from various formats surfaceMeshExtract - Extracts mesh patches (or faceSets) and writes as a single surface. - foamToSurface duplicates this surfaceFind - Finds nearest vertex and face to given point. surfacePointMerge - Explicit point merge of surface. surfaceSetOutside - Orient normals on (closed) surface. surfaceSmooth - Laplacian smoothing on surface vertices surfaceSubset - Subsets surface surfaceToPatch - Applies region information of surfaces to mesh. Each external face of mesh gets region number of nearest surface triangle. ------------------------------------------------------------------------------- surfaceMeshConvert - Similar to surfaceConvert, but uses surfMesh library