Back to index

salome-geom  6.5.0
Functions
GEOMAlgo_ShapeInfoFiller.cxx File Reference
#include <GEOMAlgo_ShapeInfoFiller.hxx>
#include <Precision.hxx>
#include <gp_Lin.hxx>
#include <gp_Pnt.hxx>
#include <gp_Dir.hxx>
#include <Geom_Curve.hxx>
#include <GeomAdaptor_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <BRep_Tool.hxx>
#include <TopExp.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <gp_Circ.hxx>
#include <gp_Ax2.hxx>
#include <gp_Elips.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Wire.hxx>
#include <Geom_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <GeomAdaptor_Surface.hxx>
#include <gp_Pln.hxx>
#include <gp_Sphere.hxx>
#include <gp_Ax3.hxx>
#include <BRepTools.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <gp_Torus.hxx>
#include <TopoDS_Solid.hxx>

Go to the source code of this file.

Functions

static Standard_Boolean IsAllowedType (const GeomAbs_CurveType aCT)
static Standard_Boolean IsAllowedType (const GeomAbs_SurfaceType aST)
static Standard_Integer NbWires (const TopoDS_Face &aF)
static Standard_Integer NbShells (const TopoDS_Solid &aS)

Function Documentation

Standard_Boolean IsAllowedType ( const GeomAbs_CurveType  aCT) [static]

Definition at line 773 of file GEOMAlgo_ShapeInfoFiller.cxx.

{
  Standard_Boolean bRet;
  Standard_Integer i, aNb;
  GeomAbs_CurveType aTypes[]={
    GeomAbs_Line, GeomAbs_Circle, GeomAbs_Ellipse
  };
  //
  bRet=Standard_False;
  aNb=sizeof(aTypes)/sizeof(aTypes[0]);
  for (i=0; i<aNb && !bRet; ++i) {
    bRet=(aCT==aTypes[i]);
  }
  //
  return bRet;
}

Here is the caller graph for this function:

Standard_Boolean IsAllowedType ( const GeomAbs_SurfaceType  aST) [static]

Definition at line 793 of file GEOMAlgo_ShapeInfoFiller.cxx.

{
  Standard_Boolean bRet;
  Standard_Integer i, aNb;
  GeomAbs_SurfaceType aTypes[]={
    GeomAbs_Plane, GeomAbs_Cylinder,
    GeomAbs_Cone,  GeomAbs_Sphere,
    GeomAbs_Torus
  };
  //
  bRet=Standard_False;
  aNb=sizeof(aTypes)/sizeof(aTypes[0]);
  for (i=0; i<aNb && !bRet; ++i) {
    bRet=(aST==aTypes[i]);
  }
  //
  return bRet;
}
Standard_Integer NbShells ( const TopoDS_Solid &  aS) [static]

Definition at line 737 of file GEOMAlgo_ShapeInfoFiller.cxx.

{
  Standard_Integer iCnt;
  TopoDS_Iterator aIt;
  //
  iCnt=0;
  //
  aIt.Initialize(aSd);
  for (; aIt.More(); aIt.Next()){
    //const TopoDS_Shape& aSh=aIt.Value();
    ++iCnt;
  }
  return iCnt;
}

Here is the caller graph for this function:

Standard_Integer NbWires ( const TopoDS_Face &  aF) [static]

Definition at line 755 of file GEOMAlgo_ShapeInfoFiller.cxx.

{
  Standard_Integer iCnt;
  TopoDS_Iterator aIt;
  //
  iCnt=0;
  //
  aIt.Initialize(aF);
  for (; aIt.More(); aIt.Next()){
    //const TopoDS_Shape& aW=aIt.Value();
    ++iCnt;
  }
  return iCnt;
}

Here is the caller graph for this function: