for(anExpE.Init(aF, TopAbs_EDGE); anExpE.More(); anExpE.Next())
{
const TopoDS_Edge &anE = TopoDS::Edge(anExpE.Current());
- const BRepAdaptor_Curve anAC(anE);
- if (!IsLinear(anAC))
+ if (BRep_Tool::IsGeometric (anE))
{
- if (!theIsTriangulationUsed)
- // not linear and triangulation usage disabled
- return 0;
-
- break;
+ const BRepAdaptor_Curve anAC(anE);
+ if (!IsLinear(anAC))
+ {
+ if (!theIsTriangulationUsed)
+ // not linear and triangulation usage disabled
+ return 0;
+
+ break;
+ }
}
}
for(anExpE.Init(theS, TopAbs_EDGE, TopAbs_FACE); anExpE.More(); anExpE.Next())
{
const TopoDS_Edge &anE = TopoDS::Edge(anExpE.Current());
- const BRepAdaptor_Curve anAC(anE);
-
- if (IsLinear(anAC))
- // skip linear edge as its vertices have already been added
- continue;
+ if (BRep_Tool::IsGeometric (anE))
+ {
+ const BRepAdaptor_Curve anAC(anE);
+ if (IsLinear(anAC))
+ {
+ // skip linear edge as its vertices have already been added
+ continue;
+ }
+ }
if (!theIsTriangulationUsed)
// not linear and triangulation usage disabled