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

0028574: Get rid of the TestTopOpe* packages

1. The TestTopOpe* packages have been removed.

2. The commands *compare*, *issubshape* and *projponf* have been moved to BRepTest package.

3. The possibility to change the Extrema options has been added to projection algorithm (GeomAPI_ProjectPointOnSurf).

4. Documentation has been updated.
This commit is contained in:
emv
2017-03-20 15:30:00 +03:00
committed by bugmaster
parent ea6e537889
commit 7868210dbc
79 changed files with 383 additions and 10530 deletions

View File

@@ -26,11 +26,33 @@
#ifdef DRAW
#include <DBRep.hxx>
#include <DBRep_DrawableShape.hxx>
#include <TestTopOpeDraw_DrawableSHA.hxx>
#include <TestTopOpeDraw_TTOT.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
static TCollection_AsciiString PRODINS("dins ");
static void ShapeEnumToString(const TopAbs_ShapeEnum T, TCollection_AsciiString& N)
{
if (T == TopAbs_SHAPE) N = "s";
else if (T == TopAbs_COMPOUND) N = "co";
else if (T == TopAbs_COMPSOLID) N = "cs";
else if (T == TopAbs_SOLID) N = "so";
else if (T == TopAbs_SHELL) N = "sh";
else if (T == TopAbs_FACE) N = "f";
else if (T == TopAbs_WIRE) N = "w";
else if (T == TopAbs_EDGE) N = "e";
else if (T == TopAbs_VERTEX) N = "v";
}
static void OrientationToString(const TopAbs_Orientation o, TCollection_AsciiString& N)
{
switch (o) {
case TopAbs_FORWARD : N = "FORWARD" ; break;
case TopAbs_REVERSED : N = "REVERSED"; break;
case TopAbs_INTERNAL : N = "INTERNAL"; break;
case TopAbs_EXTERNAL : N = "EXTERNAL"; break;
}
}
#endif
#ifdef OCCT_DEBUG
@@ -522,7 +544,7 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
TopoDS_Iterator ShapIter(e);
for(ne = 1;ShapIter.More();ShapIter.Next(), ne++) {
const TopoDS_Shape& subsha = ShapIter.Value();
TestTopOpeDraw_TTOT::ShapeEnumToString(subsha.ShapeType(),stt);
ShapeEnumToString(subsha.ShapeType(),stt);
enam = stt+ne+"ShaB"+nb;
DBRep::Set(enam.ToCString(),subsha);
cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<endl;
@@ -542,11 +564,7 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
enam = "";
enam = enam+"ste"+ne+"newB"+nb;
DBRep::Set(enam.ToCString(),e);
// char* name = enam.ToCString();
// Handle(TestTopOpeDraw_DrawableSHA) D = new TestTopOpeDraw_DrawableSHA
// (e, Draw_blanc, Draw_blanc, Draw_blanc, Draw_blanc, 100., 2, 30, name, Draw_blanc);
// Draw::Set(name,D);
// cout<<"wclick; clear; "<<PRODINS<<enam<<"; #draw"<<endl;
while(curr < mos.Extent()) {
curr = mos.Extent();
currloc = curr;
@@ -566,14 +584,7 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
enam = "";
if(it.More()) {
enam = enam+"ste"+ne+"newB"+nb;
// name = enam.ToCString();
// Handle(TestTopOpeDraw_DrawableSHA) Dloc =
// new TestTopOpeDraw_DrawableSHA
// (N, Draw_blanc, Draw_blanc, Draw_blanc, Draw_blanc,
// 100., 2, 30, name, Draw_blanc);
// Draw::Set(name,Dloc);
DBRep::Set(enam.ToCString(),N);
// cout<<PRODINS<<enam<<"; #draw"<<endl;
} else {
enam = enam+"ele"+ne+"newB"+nb;
DBRep::Set(enam.ToCString(),N);
@@ -638,7 +649,7 @@ TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SName(const TopoDS_Shape& /*S*
TCollection_AsciiString WESi=myDEBName.SubString(1,1)+myDEBNumber;
str=str+WESi;
TopAbs_ShapeEnum t = S.ShapeType();
TCollection_AsciiString sts;TestTopOpeDraw_TTOT::ShapeEnumToString(t,sts);
TCollection_AsciiString sts;ShapeEnumToString(t,sts);
sts.UpperCase();str=str+sts.SubString(1,1);
Standard_Integer isub = mySubShapeMap.FindIndex(S);
Standard_Integer ista = myOMSS.FindIndex(S);
@@ -674,7 +685,7 @@ TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SNameori(const TopoDS_Shape& S
TCollection_AsciiString str;
str=sb+SName(S);
TopAbs_Orientation o = S.Orientation();
TCollection_AsciiString sto;TestTopOpeDraw_TTOT::OrientationToString(o,sto);
TCollection_AsciiString sto;OrientationToString(o,sto);
str=str+sto.SubString(1,1);
str=str+sa;
return str;

View File

@@ -16,7 +16,6 @@
#ifdef DRAW
#include <DBRep.hxx>
#include <TestTopOpeDraw_TTOT.hxx>
static TCollection_AsciiString PRODINS("dins ");
#endif

View File

@@ -16,8 +16,18 @@
#ifdef DRAW
#include <DBRep.hxx>
#include <TestTopOpeDraw_TTOT.hxx>
static TCollection_AsciiString PRODINS("dins ");
static void OrientationToString(const TopAbs_Orientation o, TCollection_AsciiString& N)
{
switch (o) {
case TopAbs_FORWARD : N = "FORWARD" ; break;
case TopAbs_REVERSED : N = "REVERSED"; break;
case TopAbs_INTERNAL : N = "INTERNAL"; break;
case TopAbs_EXTERNAL : N = "EXTERNAL"; break;
}
}
#endif
@@ -576,10 +586,10 @@ TCollection_AsciiString TopOpeBRepBuild_WireEdgeSet::SNameVEE(const TopoDS_Shape
TopAbs_Orientation oVE1,oVE2; Standard_Boolean conn = VertexConnectsEdges(V,E1,E2,oVE1,oVE2);
str=SName(VV)+" ";
str=str+SNameori(E1)+" V/E1 : ";
TCollection_AsciiString so1;TestTopOpeDraw_TTOT::OrientationToString(oVE1,so1);so1.UpperCase();
TCollection_AsciiString so1;OrientationToString(oVE1,so1);so1.UpperCase();
str=str+so1.SubString(1,1)+" ";
str=str+SNameori(E2)+" V/E2 : ";
TCollection_AsciiString so2;TestTopOpeDraw_TTOT::OrientationToString(oVE2,so2);so2.UpperCase();
TCollection_AsciiString so2;OrientationToString(oVE2,so2);so2.UpperCase();
str=str+so2.SubString(1,1)+" ";
return str;
}