#include <QPainterPath>
#include <QVariant>
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
#include <BRepTools.hxx>
#include <sstream>
return getUniqueSectionName( aNamesSeq );
}
-IMPLEMENT_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_PolylineXY, HYDROData_IPolyline)
HYDROData_PolylineXY::HYDROData_PolylineXY()
*/
bool HYDROData_PolylineXY::IsClosed(const bool theIsSimpleCheck) const
{
- //DEBTRACE("IsClosed " << theIsSimpleCheck << " " << GetName());
+ DEBTRACE("IsClosed " << theIsSimpleCheck << " " << GetName());
bool anIsClosed = false;
TopoDS_Shape aShape = GetShape();
anIsClosed = BRep_Tool::IsClosed(aWires.First());
else
{
- //DEBTRACE("aNbWires " << aNbWires);
+ DEBTRACE("aNbWires " << aNbWires);
Handle(TopTools_HSequenceOfShape) aSeqWires = new TopTools_HSequenceOfShape;
Handle(TopTools_HSequenceOfShape) aSeqEdges = new TopTools_HSequenceOfShape;
for (int i = 1; i <= aNbWires; ++i)
}
if (aSeqEdges->Length() > 1)
{
- //DEBTRACE(aSeqEdges->Length());
+ DEBTRACE(aSeqEdges->Length());
ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdges, 1E-5, Standard_False, aSeqWires);
if (aSeqWires->Length() == 1)
{
- //DEBTRACE(aSeqWires->Length());
+ DEBTRACE(aSeqWires->Length());
const TopoDS_Wire& aPolylineWire = TopoDS::Wire(aSeqWires->Value(1));
anIsClosed = BRep_Tool::IsClosed(aPolylineWire);
}
}
else
{
- //DEBTRACE("aNbWires " << aNbWires);
+ DEBTRACE("aNbWires " << aNbWires);
Handle(TopTools_HSequenceOfShape) aSeqWires = new TopTools_HSequenceOfShape;
Handle(TopTools_HSequenceOfShape) aSeqEdges = new TopTools_HSequenceOfShape;
for (int i = 1; i <= aNbWires; ++i)
}
if (aSeqEdges->Length() > 1)
{
- //DEBTRACE(aSeqEdges->Length());
+ DEBTRACE(aSeqEdges->Length());
ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdges, 1E-5, Standard_False, aSeqWires);
}
aConnectedWires = aSeqWires;