mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027869: Visualization - AIS_ConnectedInteractive does not support exact HLR mode
AIS_ConnectedInteractive now shares HLR computation code with AIS_Shape. BRepTools_WireExplorer::Orientation() now returns TopAbs_FORWARD instead of throwing exception in case of infinite Edge without vertices. StdSelect_BRepSelectionTool::GetSensitiveForFace() now creates Select3D_SensitiveCurve from 2 points in case of infinite Edge instead of Select3D_SensitiveFace.
This commit is contained in:
@@ -598,6 +598,13 @@ const TopoDS_Edge& BRepTools_WireExplorer::Current()const
|
||||
//=======================================================================
|
||||
TopAbs_Orientation BRepTools_WireExplorer::Orientation() const
|
||||
{
|
||||
if (myVertex.IsNull()
|
||||
&& !myEdge.IsNull())
|
||||
{
|
||||
// infinite edge
|
||||
return TopAbs_FORWARD;
|
||||
}
|
||||
|
||||
TopoDS_Iterator it(myEdge,Standard_False);
|
||||
while (it.More()) {
|
||||
if (myVertex.IsSame(it.Value()))
|
||||
|
Reference in New Issue
Block a user