MantisBT - Community
View Issue Details
0023377Community[OCCT] OCCT:Data Exchangepublic2012-08-12 16:152012-11-16 13:17
sneeraj 
sneeraj 
highmajor 
closedfixed 
VC++ 2010 64 bitWindows7
[OCCT] 6.5.3 
[OCCT] 6.5.4[OCCT] 6.5.4 
bugs iges CR23377
0023377: Error in importing a rational spline IGES surface [Type 128, PROP3 = 0] into OCCT
1. Import an IGES file with a rational spline surface [Type 128] into OCCT.
2. The input surface is rational spline defined in the homogeneous geometry section of the IGES file [The parameter with name PROP3 is defined as 0].
3. TKIGES library while reading the IGES surface geometry checks if the input geometry is really rational or not.
4. It does this by checking non-uniform weights associated with the control points of the spline surface.
5. The library incorrectly determines that the surface geometry is non-rational and assigns the parameter PROP3 a value of 1, which makes the surface a polynomial surface.
Input file [input.igs] : An IGES file with rational spline surface [Type 128, PROP3 = 0].

Output file [output.igs] : An IGES file with polynomial spline surface [Type 128, PROP3 = 1].

1. Import input.igs into "ImportExport.exe" [An OCCT sample application for MFC].
2. After the import process, select the imported geometry.
3. Export the selected geometry as output.igs
4. Check the exported putput.igs, it has polynomial surface [Type 128, PROP3 = 1].
1. The files mentioned in "Steps to Reproduce" is uploaded.
2. On investigation of the bug, it was found that the error is in IGESGeom_BSplineSurface::IsPolynomial().
No tags attached.
zip TKIGES_bug.zip (141,128) 2012-08-12 16:15
https://tracker.dev.opencascade.org/
Issue History
2012-08-12 16:15sneerajNew Issue
2012-08-12 16:15sneerajAssigned To => gka
2012-08-12 16:15sneerajFile Added: TKIGES_bug.zip
2012-08-12 16:18sneerajNote Added: 0021233
2012-08-12 16:18sneerajAssigned Togka => sneeraj
2012-08-12 16:18sneerajStatusnew => assigned
2012-08-24 19:34sneerajNote Added: 0021335
2012-08-24 19:39sneerajAssigned Tosneeraj =>
2012-08-24 19:39sneerajAssigned To => gka
2012-08-24 19:41sneerajNote Added: 0021336
2012-08-24 19:41sneerajStatusassigned => resolved
2012-08-27 16:29gkaNote Added: 0021338
2012-08-27 16:29gkaStatusresolved => reviewed
2012-08-30 19:21mkvNote Added: 0021369
2012-08-30 19:21mkvNote Deleted: 0021369
2012-08-30 19:21apnNote Added: 0021370
2012-08-30 19:23apnTest case number => bugs iges CR23377
2012-08-30 19:23apnAssigned Togka => bugmaster
2012-08-30 19:23apnStatusreviewed => tested
2012-08-30 19:25apnNote Edited: 0021370bug_revision_view_page.php?bugnote_id=21370#r4193
2012-08-30 19:29apnNote Edited: 0021370bug_revision_view_page.php?bugnote_id=21370#r4194
2012-09-03 17:30sneerajChangeset attached => occt master fa920fb1
2012-09-03 17:35sneerajAssigned Tobugmaster => sneeraj
2012-09-03 17:35sneerajStatustested => verified
2012-09-03 17:35sneerajResolutionopen => fixed
2012-09-03 17:42bugmasterTarget Version => 6.5.4
2012-11-16 13:14bugmasterFixed in Version => 6.5.4
2012-11-16 13:17bugmasterStatusverified => closed

Notes
(0021233)
sneeraj   
2012-08-12 16:18   
Assigning the bug to MySelf
(0021335)
sneeraj   
2012-08-24 19:34   
CR23377 created. Commit and Push done.
http://git.dev.opencascade.org/gitweb/?p=occt.git;a=shortlog;h=refs/heads/CR23377 [^]
(0021336)
sneeraj   
2012-08-24 19:41   
CR23377 created. Commit and Push done.
http://git.dev.opencascade.org/gitweb/p=occt.git;a=shortlog;h=refs/heads/CR23377 [^]
(0021338)
gka   
2012-08-27 16:29   
Dear Bugmaster

Branch CR23377 is ready to test
(0021370)
apn   
2012-08-30 19:21   
(edited on: 2012-08-30 19:29)
Dear BugMaster,
Branch CR23377 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
bugs iges CR23377 - OK

See results in /QADisk/occttests/results/KAS/dev/CR23377-master-products_27082012/lin
See reference results in /QADisk/occttests/results/KAS/dev/IR-2012-08-24-master-products_24082012/lin
See test cases in /QADisk/occttests/tests/ED

New folder bugs with test case was pushed to branch CR23377.