Surface from GeomAdaptor,
ShapeEnum from TopAbs,
+ State from TopAbs,
Face from TopoDS,
Edge from TopoDS,
ListOfShape from TopTools,
returns IndexedDataMapOfShapeState from GEOMAlgo;
---C++:return const &
+ GetPointState(me:out; aP: Pnt from gp)
+ returns State from TopAbs is virtual protected;
+
fields
mySurface : Surface from Geom is protected;
myShapeType : ShapeEnum from TopAbs is protected;
const TopoDS_Vertex& aV=TopoDS::Vertex(aM(i));
aP=BRep_Tool::Pnt(aV);
//
- GEOMAlgo_SurfaceTools::GetState(aP, myGAS, myTolerance, aSt);
+ aSt = GetPointState( aP );
bIsConformState=GEOMAlgo_SurfaceTools::IsConformState(aSt, myState);
//
if (myShapeType==TopAbs_VERTEX){
}
//
const gp_Pnt& aP=aIt.Value();
- GEOMAlgo_SurfaceTools::GetState(aP, myGAS, myTolerance, aSt);
+ aSt = GetPointState( aP );
bIsToBreak=aSC.AppendState(aSt);
if (bIsToBreak) {
break;
}
//
const gp_Pnt& aP=aIt.Value();
- GEOMAlgo_SurfaceTools::GetState(aP, myGAS, myTolerance, aSt);
+ aSt = GetPointState( aP );
bIsToBreak=aSC.AppendState(aSt);
if (bIsToBreak) {
break;
}
}
+//=======================================================================
+//function : GetPointState
+//purpose :
+//=======================================================================
+
+TopAbs_State GEOMAlgo_FinderShapeOn1::GetPointState(const gp_Pnt& aP)
+{
+ TopAbs_State aSt;
+ GEOMAlgo_SurfaceTools::GetState(aP, myGAS, myTolerance, aSt);
+ return aSt;
+}
+
+
//
// myErrorStatus :
//
Standard_EXPORT void InnerPoints(const TopoDS_Face& aF,GEOMAlgo_ListOfPnt& aLP) ;
Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,GEOMAlgo_ListOfPnt& aLP) ;
Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,const Standard_Integer aNbPnts,GEOMAlgo_ListOfPnt& aLP) ;
+Standard_EXPORT virtual TopAbs_State GetPointState(const gp_Pnt& aP) ;
// Fields PROTECTED