static Standard_Integer OCC230 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if ( argc != 4) {
- di << "ERROR OCC230: Usage : " << argv[0] << " TrimmedCurve Pnt2d Pnt2d" << "\n";
+ di << "ERROR OCC230: Usage : " << argv[0] << " TrimmedCurve Pnt2d Pnt2d\n";
return 1;
}
gp_Pnt2d P1, P2;
if ( !DrawTrSurf::GetPoint2d(argv[2],P1)) {
- di << "ERROR OCC230: " << argv[2] << " is not Pnt2d" << "\n";
+ di << "ERROR OCC230: " << argv[2] << " is not Pnt2d\n";
return 1;
}
if ( !DrawTrSurf::GetPoint2d(argv[3],P2)) {
- di << "ERROR OCC230: " << argv[3] << " is not Pnt2d" << "\n";
+ di << "ERROR OCC230: " << argv[3] << " is not Pnt2d\n";
return 1;
}
// points must be equal
if ( ! p2.IsEqual(p3, Precision::Confusion()) )
- di << "ERROR OCC23361: equivalent transformations does not produce equal points" << "\n";
+ di << "ERROR OCC23361: equivalent transformations does not produce equal points\n";
else
- di << "OCC23361: OK" << "\n";
+ di << "OCC23361: OK\n";
return 0;
}
BRepBuilderAPI_Transform transformer1(mirror1);
transformer1.Perform(originalWire);
if(!transformer1.IsDone()) {
- di << "Not Done1 " << "\n";
+ di << "Not Done1 \n";
return Standard_False;
}
TopoDS_Shape step1ModifiedShape = transformer1.ModifiedShape(originalWire);
static Standard_Integer OCC23683 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
{
if (argc < 2) {
- di<<"Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+ di<<"Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
// Check the command arguments
if ( argc != 1 )
{
- di << "Error: " << argv[0] << " - invalid number of arguments" << "\n";
+ di << "Error: " << argv[0] << " - invalid number of arguments\n";
di << "Usage: type help " << argv[0] << "\n";
return 1; // TCL_ERROR
}
gp_Ax22d Ax2( gp::Origin2d(), gp::DY2d(), gp::DX2d() );
Handle(Geom_Surface) Plane = new Geom_Plane( gp::YOZ() );
- di << "<<<< Preparing sample surface of revolution based on trimmed curve >>>>" << "\n";
- di << "-----------------------------------------------------------------------" << "\n";
+ di << "<<<< Preparing sample surface of revolution based on trimmed curve >>>>\n";
+ di << "-----------------------------------------------------------------------\n";
Handle(Geom2d_Circle) C2d1 = new Geom2d_Circle(Ax2, 1.0);
Handle(Geom2d_TrimmedCurve) C2d1Trimmed = new Geom2d_TrimmedCurve(C2d1, 0.0, M_PI/2.0);
DBRep::Set("f1", F1);
- di << "Result: f1" << "\n";
+ di << "Result: f1\n";
- di << "<<<< Preparing sample surface of revolution based on offset curve >>>>" << "\n";
- di << "-----------------------------------------------------------------------" << "\n";
+ di << "<<<< Preparing sample surface of revolution based on offset curve >>>>\n";
+ di << "-----------------------------------------------------------------------\n";
Handle(Geom2d_OffsetCurve) C2d2Offset = new Geom2d_OffsetCurve(C2d1Trimmed, -0.5);
TopoDS_Edge E2 = BRepBuilderAPI_MakeEdge(C2d2Offset, Plane);
DBRep::Set("f2", F2);
- di << "Result: f2" << "\n";
+ di << "Result: f2\n";
return 0;
}
static Standard_Integer OCC24008 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 3) {
- di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+ di << "Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
Handle(Geom_Curve) aCurve = DrawTrSurf::GetCurve(argv[1]);
Handle(Geom_Surface) aSurf = DrawTrSurf::GetSurface(argv[2]);
if (aCurve.IsNull()) {
- di << "Curve was not read" << "\n";
+ di << "Curve was not read\n";
return 1;
}
if (aSurf.IsNull()) {
- di << "Surface was not read" << "\n";
+ di << "Surface was not read\n";
return 1;
}
ShapeConstruct_ProjectCurveOnSurface aProj;
Handle(Geom2d_Curve) aPCurve;
aProj.Perform (aCurve, aCurve->FirstParameter(), aCurve->LastParameter(), aPCurve);
if (aPCurve.IsNull()) {
- di << "PCurve was not created" << "\n";
+ di << "PCurve was not created\n";
return 1;
}
} catch (...) {
- di << "Exception was caught" << "\n";
+ di << "Exception was caught\n";
}
return 0;
}
if (!anInters.IsDone())
{
- theDI<<"No intersections found!"<<"\n";
+ theDI<<"No intersections found!\n";
return 1;
}
ana.NbFaces();
if (!(BRepAlgo::IsValid(result))) {
- di << "Result was checked and it is INVALID" << "\n";
+ di << "Result was checked and it is INVALID\n";
} else {
- di << "Result was checked and it is VALID" << "\n";
+ di << "Result was checked and it is VALID\n";
}
Handle(AIS_InteractiveObject) myShape = new AIS_Shape (result);
static Standard_Integer OCC24945 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 1) {
- di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+ di << "Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
Standard_Integer anArgIter = 1;
if (theNArg < 5)
{
- theDI <<"Usage: " << theArgv[0] << " face vertex U V [N]"<<"\n";
+ theDI <<"Usage: " << theArgv[0] << " face vertex U V [N]\n";
return 1;
}
static Standard_Integer OCC24370 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
{
if (argc < 5) {
- di<<"Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+ di<<"Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
{
Standard_Integer NHandleProc (Draw_Interpretor& , Standard_Integer , const char** theArgVec)
{
- std::cerr << "QABugs_NHandleClass[" << this << "] " << "" << theArgVec[0] << "\n";
+ std::cerr << "QABugs_NHandleClass[" << this << "] " << theArgVec[0] << "\n";
return 0;
}
};
static Standard_Integer OCC23951 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 2) {
- di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+ di << "Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
Handle(TDocStd_Document) aDoc = new TDocStd_Document("dummy");;
STEPCAFControl_Writer writer;
if (! writer.Transfer (aDoc, mode))
{
- di << "The document cannot be translated or gives no result" << "\n";
+ di << "The document cannot be translated or gives no result\n";
return 1;
}
{
if (n == 1)
{
- di << "OCC24667 result Wire_spine Profile [Mode [Approx]]" << "\n";
- di << "Mode = 0 - CorrectedFrenet," << "\n";
- di << " = 1 - Frenet," << "\n";
- di << " = 2 - DiscreteTrihedron" << "\n";
- di << "Approx - force C1-approximation if result is C0" << "\n";
+ di << "OCC24667 result Wire_spine Profile [Mode [Approx]]\n";
+ di << "Mode = 0 - CorrectedFrenet,\n";
+ di << " = 1 - Frenet,\n";
+ di << " = 2 - DiscreteTrihedron\n";
+ di << "Approx - force C1-approximation if result is C0\n";
return 0;
}
static Standard_Integer OCC24931 (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
{
if (argc != 2) {
- di << "Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+ di << "Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
TCollection_ExtendedString aFileName (argv[1]);
static Standard_Integer OCC23010 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 2) {
- di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+ di << "Usage: " << argv[0] << " invalid number of arguments\n";
return 1;
}
std::string fileName=argv[1];
static Standard_Integer OCC7570 (Draw_Interpretor& di, Standard_Integer n, const char** a)
{
if (n != 2) {
- di<<"Usage: "<<a[0]<<" invalid number of arguments"<<"\n";
+ di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
return 1;
}
TopoDS_Shape in_shape (DBRep::Get (a[1]));
TopoDS_Shape S = DBRep::Get(argv[1]);
if ( S.IsNull() )
{
- di << "Shape is empty" << "\n";
+ di << "Shape is empty\n";
return 1;
}
static Standard_Integer OCC25413 (Draw_Interpretor& di, Standard_Integer narg , const char** a)
{
if (narg != 2) {
- di << "Usage: " << a[0] << " invalid number of arguments" << "\n";
+ di << "Usage: " << a[0] << " invalid number of arguments\n";
return 1;
}
TopoDS_Shape aShape = DBRep::Get (a[1]);
static Standard_Integer OCC24881 (Draw_Interpretor& di, Standard_Integer narg , const char** a)
{
if (narg < 2) {
- di<<"Usage: "<<a[0]<<" invalid number of arguments"<<"\n";
+ di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
return 1;
}
// cout <<"FileName1: " << argv[1] <<endl;
}
if (nbOk)
{
- di << "Fix_FillGaps_NothingToDo" <<"\n";
+ di << "Fix_FillGaps_NothingToDo\n";
}
TColStd_DataMapIteratorOfDataMapOfIntegerInteger aStatusItr(aStatusNbDMap);
if (aDeviation > aMaxDeviation)
{
theDI << "Failed. Number of incorrect results is too huge: " <<
- aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)" << "\n";
+ aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)\n";
return 1;
}
theDI << "Deviation of incorrect results is: " <<
- aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)" << "\n";
+ aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)\n";
theDI << "Test completed\n";
return 0;
}
const char** a)
{
if (n != 4) {
- di << "Usage: OCC26446 r c1 c2" << "\n";
+ di << "Usage: OCC26446 r c1 c2\n";
return 1;
}
Handle(Geom_BSplineCurve)::DownCast(DrawTrSurf::GetCurve(a[3]));
if (aCurve1.IsNull()) {
- di << a[2] << " is not a BSpline curve" << "\n";
+ di << a[2] << " is not a BSpline curve\n";
return 1;
}
if (aCurve2.IsNull()) {
- di << a[3] << " is not a BSpline curve" << "\n";
+ di << a[3] << " is not a BSpline curve\n";
return 1;
}
TopoDS_Shape aSrcShape = DBRep::Get(a[2]);
if (aSrcShape.IsNull()) {
- di << a[2] << " is not a valid shape" << "\n";
+ di << a[2] << " is not a valid shape\n";
return 1;
}