Commit 41f4d2dc authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[intersect][seg-seg] fix algo for touching points

parent 93895562
......@@ -110,8 +110,7 @@ intersect_segment_segment(const Segment<ctype, wd>& segment1,
for (TopExp_Explorer explorer(edge, TopAbs_VERTEX); explorer.More(); explorer.Next())
{
auto curPoint = OCCUtilities::point(TopoDS::Vertex(explorer.Current()));
if (!curPoint.isEqual(s1, eps) && !curPoint.isEqual(t1, eps)
&& !curPoint.isEqual(s2, eps) && !curPoint.isEqual(t2, eps))
if (segment1.contains(curPoint, eps) && segment2.contains(curPoint, eps))
return ResultType( std::move(curPoint) );
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment