From 5ad4cc4f2f38e8cdbe775a591c8546dd2745684d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 27 Aug 2002 20:54:58 +0000 Subject: [PATCH] Added code to write byte/int/float arrays out with 8 values per line by default, rather than 1 per line as before. --- src/osgPlugins/osg/Geometry.cpp | 34 +++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/osgPlugins/osg/Geometry.cpp b/src/osgPlugins/osg/Geometry.cpp index 146961816..d838f54e4 100644 --- a/src/osgPlugins/osg/Geometry.cpp +++ b/src/osgPlugins/osg/Geometry.cpp @@ -445,16 +445,34 @@ Array* Array_readLocalData(Input& fr) template -void Array_writeLocalData(Output& fw, Iterator first, Iterator last) +void Array_writeLocalData(Output& fw, Iterator first, Iterator last,int noItemsPerLine=8) { fw.indent() << "{"<(array); fw<(array); fw<(array); fw<(array); fw<