1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

83
src/HLRBRep/HLRBRep_Algo.cxx Executable file
View File

@@ -0,0 +1,83 @@
// File: HLRBRep_Algo.cxx
// Created: Thu Aug 4 10:18:44 1994
// Author: Christophe MARION
// <cma@ecolox>
#define No_Standard_OutOfRange
#include <HLRBRep_Algo.ixx>
#include <HLRBRep_ShapeBounds.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
//=======================================================================
//function : HLRBRep_Algo
//purpose :
//=======================================================================
HLRBRep_Algo::HLRBRep_Algo ()
{}
//=======================================================================
//function : HLRBRep_Algo
//purpose :
//=======================================================================
HLRBRep_Algo::HLRBRep_Algo (const Handle(HLRBRep_Algo)& A) :
HLRBRep_InternalAlgo(A)
{}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void HLRBRep_Algo::Add (const TopoDS_Shape& S,
const Handle(MMgt_TShared)& SData,
const Standard_Integer nbIso)
{
Load(new HLRTopoBRep_OutLiner(S),SData,nbIso);
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void HLRBRep_Algo::Add (const TopoDS_Shape& S,
const Standard_Integer nbIso)
{
Load(new HLRTopoBRep_OutLiner(S),nbIso);
}
//=======================================================================
//function : Index
//purpose :
//=======================================================================
Standard_Integer HLRBRep_Algo::Index (const TopoDS_Shape& S)
{
Standard_Integer n = NbShapes();
for (Standard_Integer i = 1; i <= n; i++) {
if (ShapeBounds(i).Shape()->OriginalShape() == S) return i;
if (ShapeBounds(i).Shape()->OutLinedShape() == S) return i;
}
return 0;
}
//=======================================================================
//function : OutLinedShapeNullify
//purpose :
//=======================================================================
void HLRBRep_Algo::OutLinedShapeNullify ()
{
Standard_Integer n = NbShapes();
for (Standard_Integer i = 1; i <= n; i++) {
ShapeBounds(i).Shape()->OutLinedShape(TopoDS_Shape());
ShapeBounds(i).Shape()->DataStructure().Clear();
}
}