}
// Projects the point to the curve.
-static double ProjectPointToCurve(
+double ProjectPointToCurve(
const gp_XYZ& thePoint,
const Adaptor3d_Curve& theCurve,
double& theParameter)
TopExp::MapShapesAndAncestors(theWire,
TopAbs_VERTEX, TopAbs_EDGE, aVertexToEdges);
const int aVCount = aVertexToEdges.Extent();
- DEBTRACE("initialize VCount= "<< aVCount);
+ //DEBTRACE("initialize VCount= "<< aVCount);
if (aVCount == 0)
{
return false;
aParamI ^= 1;
}
const bool isClosed = IsClosed();
- DEBTRACE("aParamI: " << aParamI << " isClosed: "<< isClosed);
+ //DEBTRACE("aParamI: " << aParamI << " isClosed: "<< isClosed);
if (aParamI < 0)
{
aEdge.Orientation(TopAbs_FORWARD);
const TopoDS_Wire& theWire,
std::deque<std::list<double> >& theParameters) const
{
- std::string brepName = "theWireToIntersect";
- brepName += ".brep";
- BRepTools::Write( theWire, brepName.c_str() );
+ //std::string brepName = "theWireToIntersect";
+ //brepName += ".brep";
+ //BRepTools::Write( theWire, brepName.c_str() );
int aIntCount = 0;
theParameters.resize(myEdges.size());
aIntCount += IntersectEdge(aEdge,TopoDS::Edge(aEIt2.Current()), aParams);
}
}
- DEBTRACE("aIntCount " << aIntCount);
+ //DEBTRACE("aIntCount " << aIntCount);
return aIntCount;
}