View Issue Details

IDProjectCategoryView StatusLast Update
0015684CommunityOCCT:Data Exchangepublic2013-01-16 16:30
ReporterszvAssigned Toika  
PrioritynormalSeveritytrivial 
Status closedResolutionunable to reproduce 
OSAll 
Fixed in Version6.6.0 
Summary0015684: STEPControl_Writer does not write some characters due to line overflow
DescriptionDescription from the Forum (http://www.opencascade.org/org/forum/thread_11323/):

Hello everybody,

I discovered a bug when using the STEPControl_Writer. I export some
BsplineSurface to a step file but when I try to read it back in with OCC it
fails saying :
**** StepFile Error : At line 4225, parse error ****
If I look into the Step file at that particular location I find following (line
4225 is indicated with an arrow):

#2406 = B_SPLINE_SURFACE_WITH_KNOTS('',5,1,(
(#2407,#2408)
,(#2409,#2410)
,(#2411,#2412)
,(#2413,#2414)
,(#2415,#2416)
,(#2417,#2418)
,(#2419,#2420)
,(#2421,#2422)
,(#2423,#2424)
,(#2425,#2426
line4225-> )),.UNSPECIFIED.,.F.,.F.,.F.,(6,1,1,1,1,6),(2,2),(0.,5.213808239601E
,0.107179680103,0.396136669348,0.687599837389,1.),(0.,1.),
.UNSPECIFIED.);

If you carefully examine this line, it stops at character 72, which is an 'E'.
It should not stop there because it should be followed by -2, the entire line
should be:
)),.UNSPECIFIED.,.F.,.F.,.F.,(6,1,1,1,1,6),(2,2),(0.,5.213808239601E-2

but it is too long to fit into 72 characters.
The error occurs several times in my step flie:

#2575 = B_SPLINE_SURFACE_WITH_KNOTS('',5,1,(
(#2576,#2577)
,(#2578,#2579)
,(#2580,#2581)
,(#2582,#2583)
,(#2584,#2585)
,(#2586,#2587)
,(#2588,#2589)
,(#2590,#2591)
,(#2592,#2593)
,(#2594,#2595
)),.UNSPECIFIED.,.F.,.F.,.F.,(6,1,1,1,1,6),(2,2),(0.,5.611909524625E
,0.117791228805,0.425683231324,0.728174249643,1.),(0.,1.),
.UNSPECIFIED.);

While in other cases it works fine:

#912 = B_SPLINE_SURFACE_WITH_KNOTS('',5,3,(
(0000913,0000914,#915,0000916)
,(#917,#918,#919,#920)
,(0000921,#922,#923,0000924)
,(#925,#926,#927,#928)
,(#929,#930,#931,#932)
,(#933,#934,0000935,#936)
,(#937,#938,#939,#940)
,(#941,#942,0000943,#944)
,(0000945,0000946,#947,#948)
,(#949,0000950,#951,#952)
,(0000953,#954,#955,0000956
)),.UNSPECIFIED.,.F.,.F.,.F.,(6,1,1,1,1,1,6),(4,4),(0.,
5.659499438275E-02,0.106331201717,0.281300418172,0.526762189187,
0.769537592724,1.),(0.,1.),.UNSPECIFIED.);

Apparently, when you compare this last case with previous cases, the writer has
decided correctly to jump to the next line when writing the second uknot. This
didn't happen in the first two cases. The line up to the second uknot in the
last example is however 2 characters longer, so I suppose there is a
misjudgement of the available place by the writer...
Can someone fix this bug?
Thanks in advance!

Tom
TagsNo tags attached.
Test case number

Attached Files

  • test.stp (2,354 bytes)

Activities

ika

2012-12-13 17:13

developer  

test.stp (2,354 bytes)

ika

2012-12-13 17:14

developer   ~0022694

Last edited: 2012-12-13 17:14

Code was checked, but this bug is not reproduced in current version. I attach file, writing by using the STEPControl_Writer with problem like this, and it works fine(lines 34-35, entity 19).

bugmaster

2013-01-16 14:29

administrator   ~0022981

Problem is not reproduced on current state of OCCT

bugmaster

2013-01-16 14:33

administrator   ~0022983

Der MKV,

Please create testing case

Issue History

Date Modified Username Field Change
2007-07-04 14:47 bugmaster Assigned To bugmaster => pdn
2007-07-04 14:47 bugmaster Status new => assigned
2011-08-02 11:12 bugmaster Category OCCT:DTE => OCCT:Data Exchange
2011-12-15 16:31 abv Project Open CASCADE => Community
2012-01-17 10:15 pdn Assigned To pdn => gka
2012-10-26 20:36 abv Assigned To gka => ika
2012-12-13 17:13 ika File Added: test.stp
2012-12-13 17:14 ika Note Added: 0022694
2012-12-13 17:14 ika Assigned To ika => bugmaster
2012-12-13 17:14 ika Status assigned => feedback
2012-12-13 17:14 ika Note Edited: 0022694
2013-01-16 14:29 bugmaster Note Added: 0022981
2013-01-16 14:29 bugmaster Status feedback => closed
2013-01-16 14:29 bugmaster Resolution open => unable to reproduce
2013-01-16 14:29 bugmaster Fixed in Version EMPTY => 6.6.0
2013-01-16 14:33 bugmaster Note Added: 0022983
2013-01-16 14:33 bugmaster Assigned To bugmaster => mkv
2013-01-16 14:33 bugmaster Status closed => assigned
2013-01-16 16:30 bugmaster Status assigned => closed
2013-01-16 16:30 bugmaster Assigned To mkv => ika