1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026922: Huge performance issue writing data to the output stream

Test case for issue CR26922

Correction of literal (char to string)
This commit is contained in:
mgn
2015-12-02 16:39:55 +03:00
committed by bugmaster
parent cc6852f3e9
commit 586db386eb
183 changed files with 3221 additions and 3181 deletions

View File

@@ -866,7 +866,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
// Verification
if (argc != 2)
{
di<<" vdiameterdim error"<<"\n";
di<<" vdiameterdim error\n";
return 1;
}
@@ -878,7 +878,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
// Activate 'edge' selection mode
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select an circled edge."<<"\n";
di<<" Select an circled edge.\n";
// Loop that will handle the picking.
Standard_Integer argcc = 5;
@@ -895,13 +895,13 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
if (aShape.IsNull())
{
di << argv[0] << ": no shape is selected." << "\n";
di << argv[0] << ": no shape is selected.\n";
return 1;
}
if (aShape.ShapeType() != TopAbs_EDGE)
{
di << " vdiameterdim error: the selection of a face or an edge was expected." << "\n";
di << " vdiameterdim error: the selection of a face or an edge was expected.\n";
return 1;
}
@@ -910,7 +910,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
if (aCurve.GetType() != GeomAbs_Circle)
{
di << "vdiameterdim error: the edge is not a circular one." << "\n";
di << "vdiameterdim error: the edge is not a circular one.\n";
return 1;
}
@@ -939,7 +939,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<"vconcentric error."<<"\n";return 1;}
if (argc!=2) {di<<"vconcentric error.\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
// Ouverture d'un contexte local et recuperation de son index.
@@ -948,7 +948,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// On active les modes de selections Edges et Faces.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select a circled edge."<<"\n";
di<<" Select a circled edge.\n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -965,7 +965,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// ==================
if (ShapeA.ShapeType()==TopAbs_EDGE ) {
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select an edge."<<"\n";
di<<" Select an edge.\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
@@ -979,7 +979,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
ShapeB = TheAISContext()->SelectedShape();
}
if (ShapeB.ShapeType()!=TopAbs_EDGE ) {
di<<" vconcentric error: select an edge."<<"\n";return 1;
di<<" vconcentric error: select an edge.\n";return 1;
}
// Construction du plane.
@@ -1004,7 +1004,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
else {
di<<" vconcentric error: the selection of a face or an edge was expected."<<"\n";return 1;
di<<" vconcentric error: the selection of a face or an edge was expected.\n";return 1;
}
return 0;
@@ -1025,7 +1025,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vequaldistrelation error: no arguments allowed."<<"\n";return 1;}
if (argc!=2) {di<<" vequaldistrelation error: no arguments allowed.\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1037,7 +1037,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
// On active les modes de selections Edges et Vertexes.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
di<<" Select an edge or a vertex"<<"\n";
di<<" Select an edge or a vertex\n";
// Boucle d'attente waitpick.
Standard_Integer argc1 = 5;
@@ -1051,7 +1051,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
ShapeA = TheAISContext()->SelectedShape();
}
di<<" Select an edge or a vertex"<<"\n";
di<<" Select an edge or a vertex\n";
// Boucle d'attente waitpick.
Standard_Integer argc2 = 5;
const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1069,12 +1069,12 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
// A et B sont des edges ils doivent etre paralleles
BRepExtrema_ExtCC myDeltaEdge (TopoDS::Edge(ShapeA) ,TopoDS::Edge(ShapeB) );
// on verifie qu'ils sont pas paralleles.
if (!myDeltaEdge.IsParallel() ) {di<<"vequaldist error: non parallel edges."<<"\n";return 1; }
if (!myDeltaEdge.IsParallel() ) {di<<"vequaldist error: non parallel edges.\n";return 1; }
}
di<<" Select an edge or a vertex"<<"\n";
di<<" Select an edge or a vertex\n";
// Boucle d'attente waitpick.
Standard_Integer argc3 = 5;
const char *buf3[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1087,7 +1087,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
ShapeC = TheAISContext()->SelectedShape();
}
di<<" Select an edge or a vertex"<<"\n";
di<<" Select an edge or a vertex\n";
// Boucle d'attente waitpick.
Standard_Integer argc4 = 5;
const char *buf4[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1104,7 +1104,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
// C et D sont des edges ils doivent etre paralleles
BRepExtrema_ExtCC myDeltaEdge2 (TopoDS::Edge(ShapeC) ,TopoDS::Edge(ShapeD) );
// on verifie qu'ils sont pas paralleles.
if (!myDeltaEdge2.IsParallel() ) {di<<"vequaldist error: non parallel edges."<<"\n";return 1; }
if (!myDeltaEdge2.IsParallel() ) {di<<"vequaldist error: non parallel edges.\n";return 1; }
}
@@ -1182,7 +1182,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vequalrad error: no arguments allowed."<<"\n";return 1;}
if (argc!=2) {di<<" vequalrad error: no arguments allowed.\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1193,7 +1193,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
// On active les modes de selections Edges.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select an circled edge "<<"\n";
di<<" Select an circled edge \n";
// Boucle d'attente waitpick.
Standard_Integer argc1 = 5;
@@ -1207,7 +1207,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
ShapeA = TheAISContext()->SelectedShape();
}
di<<" Select the last circled edge."<<"\n";
di<<" Select the last circled edge.\n";
// Boucle d'attente waitpick.
Standard_Integer argc2 = 5;
const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1255,7 +1255,7 @@ static int VFixRelation(Draw_Interpretor& di, Standard_Integer argc, const char*
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vfix error: no arguments allowed."<<"\n";return 1;}
if (argc!=2) {di<<" vfix error: no arguments allowed.\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1266,7 +1266,7 @@ static int VFixRelation(Draw_Interpretor& di, Standard_Integer argc, const char*
// On active les modes de selections edge.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select an edge. "<<"\n";
di<<" Select an edge. \n";
// Boucle d'attente waitpick.
Standard_Integer argc1 = 5;
@@ -1316,7 +1316,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" videntity error: no arguments allowed."<<"\n";return 1;}
if (argc!=2) {di<<" videntity error: no arguments allowed.\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1329,7 +1329,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select an edge, a face or a vertex. "<<"\n";
di<<" Select an edge, a face or a vertex. \n";
// Boucle d'attente waitpick.
Standard_Integer argc1 = 5;
@@ -1343,7 +1343,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
ShapeA = TheAISContext()->SelectedShape();
}
di<<" Select an edge, a face or a vertex. "<<"\n";
di<<" Select an edge, a face or a vertex. \n";
// Boucle d'attente waitpick.
Standard_Integer argc2 = 5;
const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1468,7 +1468,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4));
// First shape picking
di << " Select an edge, a face or a vertex. " << "\n";
di << " Select an edge, a face or a vertex. \n";
// Loop that will handle the picking.
Standard_Integer argc1 = 5;
const char *buf1[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1489,7 +1489,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
}
// Second shape picking
di << " Select an edge, a face or a vertex. " << "\n";
di << " Select an edge, a face or a vertex. \n";
// Loop that will handle the picking.
Standard_Integer argc2 = 5;
const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1519,7 +1519,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
if (!myDeltaEdge.IsParallel())
{
di << argv[0] << " error: non parallel edges." << "\n";
di << argv[0] << " error: non parallel edges.\n";
return 1;
}
@@ -1571,7 +1571,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
if (!aDeltaEdgeFace.IsParallel())
{
di << argv[0] << "error: the edge isn't parallel to the face;can't compute the distance." << "\n";
di << argv[0] << "error: the edge isn't parallel to the face;can't compute the distance.\n";
return 1;
}
@@ -1669,7 +1669,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
if (!aDeltaEdgeFace.IsParallel())
{
di << argv[0] << " error: the edge isn't parallel to the face;can't compute the distance. " << "\n";
di << argv[0] << " error: the edge isn't parallel to the face;can't compute the distance. \n";
return 1;
}
@@ -1715,7 +1715,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
if (!aDeltaFaceFace.IsParallel())
{
di << argv[0] << " error: the faces are not parallel. "<<"\n";
di << argv[0] << " error: the faces are not parallel. \n";
return 1;
}
@@ -1744,7 +1744,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// Verification
if (argc != 2)
{
di << argv[0] << " error: wrong number of parameters." << "\n";
di << argv[0] << " error: wrong number of parameters.\n";
return 1;
}
@@ -1758,7 +1758,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// Current selection modes - faces and edges
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2));
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4));
di << " Select a circled edge or face." << "\n";
di << " Select a circled edge or face.\n";
// Loop that will be handle picking.
Standard_Integer argcc = 5;
@@ -1776,13 +1776,13 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
if (aShape.IsNull())
{
di << argv[0] << ": no shape is selected." << "\n";
di << argv[0] << ": no shape is selected.\n";
return 1;
}
if (aShape.ShapeType() != TopAbs_EDGE && aShape.ShapeType() != TopAbs_FACE)
{
di << argv[0] << " error: the selection of a face or an edge was expected." << "\n";
di << argv[0] << " error: the selection of a face or an edge was expected.\n";
return 1;
}
@@ -1803,7 +1803,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
BRepAdaptor_Curve aCurve (anEdge);
if (aCurve.GetType() != GeomAbs_Circle)
{
di << argv[0] << " error: the edge is not a circular one." << "\n";
di << argv[0] << " error: the edge is not a circular one.\n";
return 1;
}
// Close the context
@@ -1830,7 +1830,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
Standard_Real theDist;
// Verification
if (argc!=2) {di<<" voffsetdim error"<<"\n";return 1;}
if (argc!=2) {di<<" voffsetdim error\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1841,7 +1841,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// On active les modes de selections Faces.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select a face."<<"\n";
di<<" Select a face.\n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -1855,7 +1855,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
ShapeA = TheAISContext()->SelectedShape();
}
di<<" Select a face."<<"\n";
di<<" Select a face.\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1877,7 +1877,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
BRepExtrema_ExtFF myDeltaFaceFace (FaceA ,FaceB );
// On verifie que les deux faces sont bien parelles.
if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. "<<"\n";return 1; }
if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. \n";return 1; }
// On saisit la distance et on l'arrondit!
theDist=Round (sqrt (myDeltaFaceFace.SquareDistance(1))*10. )/10.;
@@ -1896,7 +1896,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
}
else {
di<<" voffsetdim error: the selection of a face was expected."<<"\n";return 1;
di<<" voffsetdim error: the selection of a face was expected.\n";return 1;
}
return 0;
@@ -1917,7 +1917,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vparallel error"<<"\n";return 1;}
if (argc!=2) {di<<" vparallel error\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -1929,7 +1929,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
// On active les modes de selections Edges.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select an edge or a face "<<"\n";
di<<" Select an edge or a face \n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -1949,7 +1949,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
// desactivation du mode face
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1967,7 +1967,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
TopoDS_Edge EdgeB=TopoDS::Edge(ShapeB);
BRepExtrema_ExtCC myDeltaEdge (EdgeA ,EdgeB );
// on verifie qu'ils ne sont pas paralleles.
if (!myDeltaEdge.IsParallel() ) {di<<"vparallel error: non parallel edges."<<"\n";return 1; }
if (!myDeltaEdge.IsParallel() ) {di<<"vparallel error: non parallel edges.\n";return 1; }
// On recupere les vertexes extremites des edge A et B.
@@ -1997,7 +1997,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
// desactivation du mode edge
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2015,7 +2015,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
BRepExtrema_ExtFF myDeltaFaceFace (FaceA ,FaceB );
// On verifie que les deux faces sont bien parelles.
if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. "<<"\n";return 1; }
if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. \n";return 1; }
// recuperation des edges des faces.
TopExp_Explorer FaceExpA(FaceA,TopAbs_EDGE);
@@ -2065,7 +2065,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vortho error"<<"\n";return 1;}
if (argc!=2) {di<<" vortho error\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -2077,7 +2077,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
// On active les modes de selections Edges.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select an edge or a face "<<"\n";
di<<" Select an edge or a face \n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -2097,7 +2097,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
// desactivation du mode face
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2145,7 +2145,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
// desactivation du mode edge
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2207,7 +2207,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vtangent error"<<"\n";return 1;}
if (argc!=2) {di<<" vtangent error\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -2219,7 +2219,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
// On active les modes de selections Edges.
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select two coplanar edges(First the circular edge then the tangent edge) or two faces "<<"\n";
di<<" Select two coplanar edges(First the circular edge then the tangent edge) or two faces \n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -2239,7 +2239,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
// desactivation du mode face
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2284,7 +2284,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
// desactivation du mode edge
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2345,7 +2345,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
Standard_Integer myCurrentIndex;
// Verification
if (argc!=2) {di<<" vSymmetric error"<<"\n";return 1;}
if (argc!=2) {di<<" vSymmetric error\n";return 1;}
// Fermeture des contextes locaux
TheAISContext()->CloseAllContexts();
@@ -2356,7 +2356,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// On active les modes de selections
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select an edge:the axis of symetry "<<"\n";
di<<" Select an edge:the axis of symetry \n";
// Boucle d'attente waitpick.
Standard_Integer argcc = 5;
@@ -2375,7 +2375,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// On active les modes de selections
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
di<<" Select two edges or two vertices. "<<"\n";
di<<" Select two edges or two vertices. \n";
// Boucle d'attente waitpick.
Standard_Integer argcc2 = 5;
@@ -2399,7 +2399,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// desactivation du mode vertex
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(1) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2419,8 +2419,8 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
BRepExtrema_ExtCC myDeltaEdgeAB (EdgeA ,EdgeB );
BRepExtrema_ExtCC myDeltaEdgeAC (EdgeA ,EdgeC );
// on verifie qu'ils sont paralleles.
if (!myDeltaEdgeAB.IsParallel() ) {di<<"vsymetric error: non parallel edges."<<"\n";return 1; }
if (!myDeltaEdgeAC.IsParallel() ) {di<<"vsymetric error: non parallel edges."<<"\n";return 1; }
if (!myDeltaEdgeAB.IsParallel() ) {di<<"vsymetric error: non parallel edges.\n";return 1; }
if (!myDeltaEdgeAC.IsParallel() ) {di<<"vsymetric error: non parallel edges.\n";return 1; }
// on recupere les vertexs
TopoDS_Vertex Va,Vb,Vc,Vd;
TopExp::Vertices(EdgeB,Va,Vb );
@@ -2449,7 +2449,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
// desactivation du mode edge
TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
di<<" Select a second edge"<<"\n";
di<<" Select a second edge\n";
// Boucle d'attente waitpick.
Standard_Integer argccc = 5;
const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2638,7 +2638,7 @@ static int VMoveDim (Draw_Interpretor& theDi, Standard_Integer theArgNum, const
}
if (!isPicked)
{
theDi << theArgVec[0] << ": no dimension or relation is selected." << "\n";
theDi << theArgVec[0] << ": no dimension or relation is selected.\n";
return 1;
}
}