From 4b2c120478d75d44275f0fb8434869cc561684b7 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sat, 22 May 2021 14:57:25 +0200 Subject: [PATCH] More comprehensive warning for offgrid shapes in GdsStream::xyToComponent(). --- crlcore/src/ccore/gds/GdsDriver.cpp | 2 ++ crlcore/src/ccore/gds/GdsParser.cpp | 22 +++++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/crlcore/src/ccore/gds/GdsDriver.cpp b/crlcore/src/ccore/gds/GdsDriver.cpp index f93f1205..93a20bb4 100644 --- a/crlcore/src/ccore/gds/GdsDriver.cpp +++ b/crlcore/src/ccore/gds/GdsDriver.cpp @@ -678,6 +678,7 @@ namespace { GdsStream& GdsStream::operator<< ( Points points ) { + //cerr << "GdsStream::operator<<(Points&) " << points.getSize() << endl; GdsRecord record ( GdsRecord::XY ); Point first = points.getFirst(); for ( Point p : points ) { @@ -703,6 +704,7 @@ namespace { GdsStream& GdsStream::operator<< ( const vector& points ) { + //cerr << "GdsStream::operator<<(vector&) " << points.size() << endl; GdsRecord record ( GdsRecord::XY ); for ( Point p : points ) { record.push( (int32_t)toGdsDbu(p.getX()) ); diff --git a/crlcore/src/ccore/gds/GdsParser.cpp b/crlcore/src/ccore/gds/GdsParser.cpp index 19c6982a..1af7d891 100644 --- a/crlcore/src/ccore/gds/GdsParser.cpp +++ b/crlcore/src/ccore/gds/GdsParser.cpp @@ -1331,15 +1331,31 @@ namespace { vector points; vector coordinates = _record.getInt32s(); + vector offgrids; for ( size_t i=0 ; igetName()).c_str() + , DbU::getValueString(oneGrid).c_str() + , m.str().c_str() ) << endl; + } _stream >> _record;