Back to index

salome-geom  6.5.0
Static Public Member Functions
NMTDS_Tools Class Reference

#include <NMTDS_Tools.hxx>

List of all members.

Static Public Member Functions

static Standard_EXPORT
Standard_Integer 
TypeToInteger (const TopAbs_ShapeEnum aT1, const TopAbs_ShapeEnum aT2)
static Standard_EXPORT
Standard_Boolean 
HasBRep (const TopAbs_ShapeEnum aT)
static Standard_EXPORT
Standard_Integer 
ComputeVV (const TopoDS_Vertex &aV1, const TopoDS_Vertex &aV2)
static Standard_EXPORT void CopyShape (const TopoDS_Shape &aS, TopoDS_Shape &aSC)
static Standard_EXPORT void CopyShape (const TopoDS_Shape &aS, TopoDS_Shape &aSC, TopTools_IndexedDataMapOfShapeShape &aMSS)

Detailed Description

Definition at line 40 of file NMTDS_Tools.hxx.


Member Function Documentation

Standard_Integer NMTDS_Tools::ComputeVV ( const TopoDS_Vertex &  aV1,
const TopoDS_Vertex &  aV2 
) [static]

Definition at line 113 of file NMTDS_Tools.cxx.

{
  Standard_Real aTolV1, aTolV2, aTolSum, aTolSum2, aD2;
  gp_Pnt aP1, aP2;
  //
  aTolV1=BRep_Tool::Tolerance(aV1);
  aTolV2=BRep_Tool::Tolerance(aV2);
  aTolSum=aTolV1+aTolV2;
  aTolSum2=aTolSum*aTolSum;
  //
  aP1=BRep_Tool::Pnt(aV1);
  aP2=BRep_Tool::Pnt(aV2);
  //
  aD2=aP1.SquareDistance(aP2);
  if (aD2>aTolSum2) {
    return -1;
  }
  return 0;
}

Here is the caller graph for this function:

void NMTDS_Tools::CopyShape ( const TopoDS_Shape &  aS,
TopoDS_Shape &  aSC 
) [static]

Definition at line 42 of file NMTDS_Tools.cxx.

{
  TopTools_IndexedDataMapOfShapeShape aMapSS;
  //
  CopySource(aS, aMapSS, aSC);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void NMTDS_Tools::CopyShape ( const TopoDS_Shape &  aS,
TopoDS_Shape &  aSC,
TopTools_IndexedDataMapOfShapeShape &  aMSS 
) [static]

Definition at line 53 of file NMTDS_Tools.cxx.

{
  CopySource(aS, aMapSS, aSC);
}

Here is the call graph for this function:

Standard_Boolean NMTDS_Tools::HasBRep ( const TopAbs_ShapeEnum  aT) [static]

Definition at line 137 of file NMTDS_Tools.cxx.

{
  return (aTi==TopAbs_VERTEX || aTi==TopAbs_EDGE || aTi==TopAbs_FACE);
}

Here is the caller graph for this function:

Standard_Integer NMTDS_Tools::TypeToInteger ( const TopAbs_ShapeEnum  aT1,
const TopAbs_ShapeEnum  aT2 
) [static]

Definition at line 145 of file NMTDS_Tools.cxx.

{
  Standard_Integer iRet, iT1, iT2, iX;
  //
  iRet=-1;
  iT1=(Standard_Integer)aType1;
  iT2=(Standard_Integer)aType2;
  //
  iX=iT2*10+iT1;
  switch (iX) {
    case 77:
      iRet=5; // VV
      break;
    case 76:
    case 67:
      iRet=4; // VE
      break;
    case 74:
    case 47:
      iRet=2; // VF
      break;
    case 66:
      iRet=3; // EE
      break;
    case 64:
    case 46:
      iRet=1; // EF
      break;
    case 44:
      iRet=0; // FF
      break;
    default:
      break;
  }
  return iRet;
}

The documentation for this class was generated from the following files: