MantisBT - Open CASCADE
View Issue Details
0030921Open CASCADE[OCCT] OCCT:Data Exchangepublic2019-08-26 18:542020-09-18 12:03
szy 
asuraven 
normalmajor 
assignedopen 
[OCCT] 7.3.0 
[OCCT] 7.6.0* 
0030921: Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file
The customer's complaint is below.
"I've run into an issue with parsing the above step file. It contains compounds which, when read by STEPCAFControl_Reader, contain 0 children shapes (Solid, Shell, Face etc).

for example when logging the topography of the assembly:
ASSEMBLY COMPOUND 0:1:1:1 "Assembly"
        INSTANCE SOLID 0:1:1:1:1 (refers to 0:1:1:2) ""
        INSTANCE SOLID 0:1:1:1:2 (refers to 0:1:1:3) ""
        INSTANCE SOLID 0:1:1:1:3 (refers to 0:1:1:4) ""
        INSTANCE SOLID 0:1:1:1:4 (refers to 0:1:1:5) ""
        INSTANCE SOLID 0:1:1:1:5 (refers to 0:1:1:6) ""
        INSTANCE COMPOUND 0:1:1:1:6 (refers to 0:1:1:7) ""
        INSTANCE COMPOUND 0:1:1:1:7 (refers to 0:1:1:8) ""
        INSTANCE COMPOUND 0:1:1:1:8 (refers to 0:1:1:9) ""
        INSTANCE COMPOUND 0:1:1:1:9 (refers to 0:1:1:10) ""
        INSTANCE COMPOUND 0:1:1:1:10 (refers to 0:1:1:11) ""
        INSTANCE COMPOUND 0:1:1:1:11 (refers to 0:1:1:12) ""
        INSTANCE COMPOUND 0:1:1:1:12 (refers to 0:1:1:13) ""
        INSTANCE COMPOUND 0:1:1:1:13 (refers to 0:1:1:14) ""
        INSTANCE SOLID 0:1:1:1:14 (refers to 0:1:1:15) ""
        INSTANCE SOLID 0:1:1:1:15 (refers to 0:1:1:16) ""
        INSTANCE SOLID 0:1:1:1:16 (refers to 0:1:1:17) ""
        INSTANCE SOLID 0:1:1:1:17 (refers to 0:1:1:18) ""
        INSTANCE SOLID 0:1:1:1:18 (refers to 0:1:1:19) ""
        INSTANCE SOLID 0:1:1:1:19 (refers to 0:1:1:20) ""
        INSTANCE SOLID 0:1:1:1:20 (refers to 0:1:1:21) ""
        INSTANCE COMPOUND 0:1:1:1:21 (refers to 0:1:1:22) ""

....by part....
PART COMPOUND 0:1:1:12 "W3-C160237101-00-prt10"

PART COMPOUND 0:1:1:13 "W3-C160237101-00-prt11"

PART COMPOUND 0:1:1:14 "W3-C160237101-00-prt12"

PART SOLID 0:1:1:15 "W3-C160237101-00-prt13"
        FACE 0:1:1:15:1
        FACE 0:1:1:15:2
        FACE 0:1:1:15:3
        FACE 0:1:1:15:4
        FACE 0:1:1:15:5
        FACE 0:1:1:15:6
The compounds are empty.
When I load the file into a program like AutoDesk, it displays all parts, like it is presented on the attached picture "autodesk_result". But in some OCC dependent viewers, as well as my own, I get a result like iit is presented on the picture "occt_result".
".
The testing file "TEST.stp".


 
pload XDE OCAF
ReadStep Doc TEST.stp
XShow Doc


CAD Assistant log:
11:59 Count	STEP Translator Failures for 'TEST.stp'
       -----	-----------
          14	W:EDGE_LOOP: Edges were intersecting, corrected
          14	W:(BOUNDED_SURFACE,B_SPLINE_SURFACE,B_SPLINE_SURFACE_WITH_KNOTS,GEOMETRIC_REPRESENTATION_ITEM,RATIONAL_B_SPLINE_SURFACE,REPRESENTATION_ITEM,SURFACE): 
Surface forced to be periodic
          14	F:(BOUNDED_CURVE,B_SPLINE_CURVE,B_SPLINE_CURVE_WITH_KNOTS,CURVE,GEOMETRIC_REPRESENTATION_ITEM,RATIONAL_B_SPLINE_CURVE,REPRESENTATION_ITEM): 
Exeption was raised. Curve geometry definition is incorrect
           9	F:MANIFOLD_SOLID_BREP: Exeption is raised. Entity was not translated.
          Nb Total:51  for 4 items
No tags attached.
7z TEST.7z (730,743) 2019-08-26 18:58
https://tracker.dev.opencascade.org/
png autodesk_result.png (251,443) 2019-09-04 12:01
https://tracker.dev.opencascade.org/
png occt_result_KO.png (24,934) 2019-09-04 12:01
https://tracker.dev.opencascade.org/
7z bug30921.7z (729,136) 2020-09-11 18:18
https://tracker.dev.opencascade.org/
Issue History
2019-08-26 18:54szyNew Issue
2019-08-26 18:54szyAssigned To => gka
2019-08-26 18:54szyFile Added: Results.7z
2019-08-26 18:58szyFile Added: TEST.7z
2019-09-04 11:59kgvSummarySTEPCAFControl_Reader incorrectly reads the specified stp file => Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file
2019-09-04 12:01kgvFile Added: autodesk_result.png
2019-09-04 12:01kgvFile Added: occt_result_KO.png
2019-09-04 12:01kgvFile Deleted: Results.7z
2019-09-04 12:03kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=21731#r21731
2019-09-04 15:54abvTarget Version7.4.0 => 7.5.0
2020-09-02 17:40szyNote Added: 0093904
2020-09-02 17:40szyAssigned Togka => asuraven
2020-09-02 17:40szyStatusnew => assigned
2020-09-11 18:18asuravenFile Added: bug30921.7z
2020-09-15 14:00gitNote Added: 0094833
2020-09-15 14:07asuravenNote Added: 0094834
2020-09-15 14:29gitNote Added: 0094835
2020-09-15 14:31gitNote Added: 0094836
2020-09-15 21:52gitNote Added: 0094890
2020-09-18 12:03gkaTarget Version7.5.0 => 7.6.0*

Notes
(0093904)
szy   
2020-09-02 17:40   
For processing.
(0094833)
git   
2020-09-15 14:00   
Branch CR30921 has been created by asuraven.

SHA-1: d6419fe0a1d14260c0487c37c13083f64f5cb5c6


Detailed log of new commits:

Author: asuraven
Date: Tue Sep 15 13:59:26 2020 +0300

    0030921: Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file
(0094834)
asuraven   
2020-09-15 14:07   
The number of weights is adjusted to the number of poles in StepToGeom::MakeBSplineCurve(2d).
#define / #include "StepToGeom_MakeBSplineCurve.pxx / #undef solution changed to template solution.
Template function Handle(TBSplineCurve) StepToGeom::MakeBSplineCurveCommon added.
Short variable names changed to comprehended names.
(0094835)
git   
2020-09-15 14:29   
Branch CR30921 has been updated by asuraven.

SHA-1: 518baf7659292630f562b6b682d29db695766493


Detailed log of new commits:

Author: asuraven
Date: Tue Sep 15 14:32:14 2020 +0300

    fix

(0094836)
git   
2020-09-15 14:31   
Branch CR30921 has been updated by asuraven.

SHA-1: 4bd2b3fce3a3bbbeade2be98876207881b4f4fec


Detailed log of new commits:

Author: asuraven
Date: Tue Sep 15 14:34:12 2020 +0300

    fix

(0094890)
git   
2020-09-15 21:52   
Branch CR30921_1 has been created by asuraven.

SHA-1: 5aba4898c539e8f343e114d41103311b4bf2c775


Detailed log of new commits:

Author: asuraven
Date: Tue Sep 15 21:54:40 2020 +0300

    0030921: StepToGeom::MakeBSplineCurve(2d) #define / *.pxx / #undef solution changed to template solution.

Author: asuraven
Date: Tue Sep 15 21:14:39 2020 +0300

    0030921: Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file