Archived issue #0032818
Modeling Algorithms - Result of sweep operation is invalid
Description
BRepOffsetAPI_MakePipeShell with the attached path and profile does not build correct on 7.6.0 version.
Steps to reproduce
TopoDS_Shape Sh1; TopoDS_Shape Sh2; BRep_Builder B; bool b1 = BRepTools::Read(Sh1, "D:\\Attachment 1 (BREP)", B); bool b2 = BRepTools::Read(Sh2, "D:\\Attachment 2 (BREP)", B); const TopoDS_Wire& path = TopoDS::Wire(Sh1); const TopoDS_Wire& profile= TopoDS::Wire(Sh2); BRepOffsetAPI_MakePipeShell shellMaker(path); shellMaker.SetTransitionMode(static_cast<BRepBuilderAPI_TransitionMode>(2)); shellMaker.Add(profile, /*WithContact*/false, /*WithCorrection*/true); shellMaker.Build(); const TopoDS_Shape& shape = shellMaker.Shape();
Or
run "test pipe bugs bug32818"
Public activity
17 archived notes
Participants are labeled by their role within this record.
Attachment 1 (BREP) (1,016 bytes)
Attachment 2 (BREP) (3,925 bytes)
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: gelin
Date: Wed Feb 9 13:26:39 2022 +0800
0032818: Modeling Algorithms - Result of sweep operation is invalid
[revision removed]
Detailed log of new commits:
Author: gelin
Date: Wed Feb 9 13:26:39 2022 +0800
0032818: Modeling Algorithms - Result of sweep operation is invalid
Dear Commenter 3, please help review the code. CR32809 CR32807 are not reviewed yet
I have assigned it for review to the expert in this algorithm. All bugs will be processed in the order of actual priority.
Mikhail,
Find, please a reviewer for the issue.
Find, please a reviewer for the issue.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch CR32818 is ready for review
Test results
http://jenkins-test-08.nnov.opencascade.com/view/CR32818-master-ifv/view/COMPARE/
Test results
http://jenkins-test-08.nnov.opencascade.com/view/CR32818-master-ifv/view/COMPARE/
I think this
could be simplified a bit by choosing the ref edge first
Indentation of the whole new block seems to be incorrect.
Also huge number of differences in images in test results. Please check if the results are compared with the correct version.
p11 = P1.Distance(BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(fit == 1 ? aE1 : aE2))));
p22 = P2.Distance(BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(fit == 1 ? aE1 : aE2))));
p12 = P1.Distance(BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(fit == 1 ? aE1 : aE2))));
p21 = P2.Distance(BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(fit == 1 ? aE1 : aE2))));
could be simplified a bit by choosing the ref edge first
TopoDS_Edge aERef = TopoDS::Edge(fit == 1 ? aE1 : aE2);
p11 = P1.Distance(BRep_Tool::Pnt(TopExp::FirstVertex(aERef)));
p22 = P2.Distance(BRep_Tool::Pnt(TopExp::LastVertex(aERef)));
p12 = P1.Distance(BRep_Tool::Pnt(TopExp::LastVertex(aERef)));
p21 = P2.Distance(BRep_Tool::Pnt(TopExp::FirstVertex(aERef)));
Indentation of the whole new block seems to be incorrect.
Also huge number of differences in images in test results. Please check if the results are compared with the correct version.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch CR32818 is ready for review
Test results
http://jenkins-test-08.nnov.opencascade.com/view/CR32818-master-ifv/view/COMPARE/
Test results
http://jenkins-test-08.nnov.opencascade.com/view/CR32818-master-ifv/view/COMPARE/
No remarks to the code, except probably for the test case - does it make sense to add an image dump?
I wonder, why are there so many differences in images in products? It is unlikely that IFC and OMF are using sweep algo. Wrong refs again?
I wonder, why are there so many differences in images in products? It is unlikely that IFC and OMF are using sweep algo. Wrong refs again?
I think, that image is not needed for this case. Checking shape and number of subshapes is quite enough.
Of course, sweep algo is not used in IFC and OMF tests. Now IFC is in process of changing, askCommenter 5 for details.
For reference I only use branch, which is suggested by jenkins.
Of course, sweep algo is not used in IFC and OMF tests. Now IFC is in process of changing, ask
For reference I only use branch, which is suggested by jenkins.
Ok, Reviewed then.
Please integrate CR32818 into OCCT.
Please integrate CR32818 into OCCT.
Related records