Skip to content
Snippets Groups Projects
Commit 5f642283 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

patch from Hongjun Ran

parent 94e57141
No related branches found
No related tags found
No related merge requests found
...@@ -835,7 +835,7 @@ void OCC_Connect::MergeVertices(TopoDS_Shape &shape1,TopoDS_Shape &shape2) const ...@@ -835,7 +835,7 @@ void OCC_Connect::MergeVertices(TopoDS_Shape &shape1,TopoDS_Shape &shape2) const
{ {
TopTools_IndexedMapOfShape imap, omap; TopTools_IndexedMapOfShape imap, omap;
TopExp::MapShapes(shape1,TopAbs_VERTEX,imap); TopExp::MapShapes(shape1,TopAbs_VERTEX,imap);
TopExp::MapShapes(shape2,TopAbs_VERTEX,imap); TopExp::MapShapes(shape2,TopAbs_VERTEX,omap);
BRepTools_ReShape replacer; BRepTools_ReShape replacer;
for(int i=0;i<imap.Extent();i++) { for(int i=0;i<imap.Extent();i++) {
for(int j=0;j<omap.Extent();j++) { for(int j=0;j<omap.Extent();j++) {
...@@ -879,7 +879,7 @@ void OCC_Connect::MergeEdges(TopoDS_Shape &shape1, TopoDS_Shape &shape2) const ...@@ -879,7 +879,7 @@ void OCC_Connect::MergeEdges(TopoDS_Shape &shape1, TopoDS_Shape &shape2) const
{ {
TopTools_IndexedMapOfShape imap, omap; TopTools_IndexedMapOfShape imap, omap;
TopExp::MapShapes(shape1,TopAbs_EDGE,imap); TopExp::MapShapes(shape1,TopAbs_EDGE,imap);
TopExp::MapShapes(shape2,TopAbs_EDGE,imap); TopExp::MapShapes(shape2,TopAbs_EDGE,omap);
BRepTools_ReShape replacer; BRepTools_ReShape replacer;
for(int i=0;i<imap.Extent();i++) { for(int i=0;i<imap.Extent();i++) {
for(int j=0;j<omap.Extent();j++) { for(int j=0;j<omap.Extent();j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment