MantisBT - Community
View Issue Details
0023591Community[OCCT] OCCT:Data Exchangepublic2012-11-28 12:512013-04-29 15:22
Roman Lygin 
[OCCT] 6.5.4 
[OCCT] 6.6.0[OCCT] 6.6.0 
bugs iges(003) bug23591
0023591: IGES Boundary Entity containing Composite Curve fails to translate.
When IGES Boundary Entity contains a Composite Curve with rank number of >= 2 (in the list of its model and/or parametric space curves), the exception is thrown. This happens because ShapeExtend_WireData objects, named Gsewd[2d/3d] in IGESControl_IGESBoundary::Transfer(), accumulating results of translation of a current curve, will contain disconnected TopoDS_Wire(s). Before returning, the method will try to add these ShapeExtend_WireData objects to previous results calling ShapeAlgo::AlgoContainer()->ConnectNextWire(), which underneath calls TopExp::Vertices() on TopoDS_Wire. Given that the wire(s) is(are) disconnected, the returned vertices are null causing an exception in BRep_Tool::Pnt() which is used to find the best orientation of a wire.
The fix is to call ShapeFix_Wire::FixConnected() for wires which were produced from curves of >=2 segments. This will only be applied to Boundary Entity and EdgeList, while Curve On Surface will remain unchanged.
igesbrep VZ-387.igs v
tpstat c

Without a fix no shape is created and there is a failure recorded.
With the fix, the shape is created and no failures are recorded.
No tags attached.
zip (11,428) 2012-11-28 12:51
Issue History
2012-11-28 12:51Roman LyginNew Issue
2012-11-28 12:51Roman LyginAssigned To => gka
2012-11-28 12:51Roman LyginFile Added:
2012-11-28 12:54Roman LyginNote Added: 0022402
2012-11-28 12:54Roman LyginStatusnew => resolved
2012-11-28 18:13gkaNote Added: 0022422
2012-11-28 18:13gkaStatusresolved => reviewed
2012-11-28 19:08mkvAssigned Togka => mkv
2012-12-14 17:20mkvNote Added: 0022710
2012-12-14 17:21mkvTest case number => bugs iges(003) bug23591
2012-12-14 17:21mkvAssigned Tomkv => bugmaster
2012-12-14 17:21mkvStatusreviewed => tested
2012-12-18 10:45apnChangeset attached => occt master 126b0763
2012-12-18 10:45apnAssigned Tobugmaster => apn
2012-12-18 10:45apnStatustested => verified
2012-12-18 10:45apnResolutionopen => fixed
2013-02-20 10:17bugmasterTarget Version => 6.6.0
2013-04-23 13:36aivStatusverified => closed
2013-04-29 15:22aivFixed in Version => 6.6.0

Roman Lygin   
2012-11-28 12:54   
Pushed branch CR23591 into the git repository
2012-11-28 18:13   
Branch CR23591 is ready to be tested.
2012-12-14 17:20   
Dear BugMaster,

Branch CR23591 (and products from GIT master) was compiled on Linux and
Windows platforms and tested.

Not detected

Not detected

Testing cases:
bugs iges(003) bug23591 - OK.