Skip to content

Commit e00da37

Browse files
String parsing bug (bufferedGetStepLine) (#18)
1 parent e2a2625 commit e00da37

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

include/ifcpp/Geometry/Extruder.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ class Extruder {
3030
if( profile.empty() ) {
3131
return {};
3232
}
33-
// TODO: It is not important to simplify profile heres
3433
if( asClosed ) {
35-
profile = this->m_geomUtils->SimplifyLoop( profile );
3634
profile.push_back( profile[ 0 ] );
37-
} else {
38-
profile = this->m_geomUtils->SimplifyCurve( profile );
3935
}
36+
4037
std::vector<TLoop> result;
4138

4239
// TODO: Rework
@@ -68,12 +65,8 @@ class Extruder {
6865
if( profile.empty() ) {
6966
return {};
7067
}
71-
// TODO: It is not important to simplify profile here
7268
if( asClosed ) {
73-
profile = this->m_geomUtils->SimplifyLoop( profile );
7469
profile.push_back( profile[ 0 ] );
75-
} else {
76-
profile = this->m_geomUtils->SimplifyCurve( profile );
7770
}
7871

7972
if( sweepPoints.size() < 2 ) {

src/Reader/ReaderUtil.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,11 @@ std::istream& bufferedGetStepLine(std::istream& inputStream, std::string& lineOu
200200
continue;
201201
}
202202
case '\'':
203-
if( sb->sgetc() != '/' ) // sgetc: character at the current position
204-
{
205-
inString = !inString;
206-
}
203+
{
204+
inString = !inString;
207205
lineOut += (char)c;
208206
continue;
207+
}
209208
case '/':
210209
if( !inString )
211210
{

0 commit comments

Comments
 (0)