From e0ee9bcf8451d898f93a01de67918824107850b0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 2 Feb 2011 12:44:02 +0000 Subject: [PATCH] BUG: stitchTriangles : work on triSurface points --- .../triSurface/interfaces/AC3D/readAC.C | 4 ++-- .../triSurface/interfaces/STL/readSTLASCII.L | 8 +++++-- .../triSurface/interfaces/STL/readSTLBINARY.C | 8 +++++-- .../triSurface/interfaces/TRI/readTRI.C | 8 +++++-- src/triSurface/triSurface/stitchTriangles.C | 23 +++++++------------ src/triSurface/triSurface/triSurface.C | 4 ++-- src/triSurface/triSurface/triSurface.H | 1 - 7 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/triSurface/triSurface/interfaces/AC3D/readAC.C b/src/triSurface/triSurface/interfaces/AC3D/readAC.C index d4e8b0a752..dfe4ae0904 100644 --- a/src/triSurface/triSurface/interfaces/AC3D/readAC.C +++ b/src/triSurface/triSurface/interfaces/AC3D/readAC.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -331,7 +331,7 @@ bool triSurface::readAC(const fileName& ACfileName) *this = triSurface(faces, patches, allPoints, true); - stitchTriangles(allPoints); + stitchTriangles(); return true; } diff --git a/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L b/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L index 4b33f27f57..9cb9f1d3d1 100644 --- a/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L +++ b/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -422,6 +422,7 @@ bool triSurface::readSTLASCII(const fileName& STLfileName) setSize(lexer.nTriangles()); DynamicList