printf("Usage: %s iges_input [name]\n",argv[0]);
return(1);
}
- Standard_Character *Ch;
+ Standard_Character *Ch = NULL;
if(argc > 2) {
Ch = new Standard_Character[strlen(argv[2])+3];
di << aSStream1;
di<<"\n";
+ if (Matrix.RowNumber() > 1) {
+ Matrix(Matrix.LowerRow() + 1, Matrix.LowerCol()) += 1.;
+ }
Vector2.TMultiply(Vector, Matrix);
//Vector2.Dump(cout);
return 1;
}
- Standard_Boolean updateviewer = Standard_True, PutInCollector = Standard_True;
+ Standard_Boolean updateviewer = Standard_True;
ViewerTest_DoubleMapOfInteractiveAndName& aMap = GetMapOfAIS();
if (!aContext->HasOpenedContext()) {
aContext->OpenLocalContext();
}
- aContext->Erase(AISObj, updateviewer, PutInCollector);
+ aContext->Erase(AISObj, updateviewer);
aContext->UpdateCurrentViewer();
aContext->Display(AISObj, updateviewer);
aContext->UpdateCurrentViewer();
static char sarr[2000];
static int si=1;
+
+#ifdef WNT
static int StackOverflow(int i = -1)
{
char arr[2000];
si = 0;
memcpy(arr,sarr,2000);
arr[1999]=0;
- int n = strlen(arr), s=0;
+ int n = (int)strlen(arr), s=0;
while (n--)
s += StackOverflow(i-1);
return i + s + StackOverflow(i-1);
return i;
}
-#ifdef WNT
// this code does not work with optimize mode on Windows
#pragma optimize( "", off )
#endif
}
}
- // ObjectsInCollector
- AIS_ListOfInteractive ListOfIO_2;
- AISContext->ObjectsInCollector(ListOfIO_2);
- di<< "ObjectsInCollector = " << ListOfIO_2.Extent() <<"\n";
- if (!ListOfIO_2.IsEmpty() ) {
- AIS_ListIteratorOfListOfInteractive iter;
- for (iter.Initialize(ListOfIO_2); iter.More() ; iter.Next() ) {
- Handle(AIS_InteractiveObject) aIO=iter.Value();
- di<< GetMapOfAIS().Find1(aIO).ToCString() <<"\n";
- }
- }
-
return 0;
}
return 0;
}
-Standard_Integer OCC23429(Draw_Interpretor& di,
+Standard_Integer OCC23429(Draw_Interpretor& /*di*/,
Standard_Integer narg, const char** a)
{
if (narg < 4) return 1;
{
aisContext->CloseAllContexts();
aisContext->RemoveAll(false);
- aisContext->EraseSelected(false, false);
+ aisContext->EraseSelected(false);
}
- aisContext->EraseAll(false,false);
+ aisContext->EraseAll(false);
Handle(Geom_Axis2Placement) trihedronAxis = new Geom_Axis2Placement(gp::XOY());
Handle(AIS_Trihedron) trihedron = new AIS_Trihedron(trihedronAxis);
if (aMode)