1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

689 Commits

Author SHA1 Message Date
abv
935f8c002e 0023610: checkshape command does not detect mismatch of the tolerance values among the sub-shapes of the shape
In BRepCheck, added check for tolerance of face to be not greater than tolerance of edge, and tolerance of edge not greater than tolerance of its vertices
2012-12-11 19:28:38 +04:00
abv
d27ea0ef51 Adjusting testing cases for current state of OCCT 2012-12-10 17:03:37 +04:00
abv
c2f5c74815 Corrections for tests after integration of 2012-12-07
1. Fixed tests bugs caf bug350 and bug352 failing in Debug mode due to errors in QA code (removing items from the map during iteration).
2. Debug output messages are ignored in parse.rules in heal and bugs group to avoid false failures in Debug mode after changes made for  and last integration of new tests.
3. Test bugs moddata buc60654 removed as duplicate of bug143.
4. Test bugs moddata bug143 fixed to compare real values properly. New command checkreal added for comparing reals with tolerance.
6. Test bugs caf bug114 is fixed to avoid use of OS-specific commands (command meminfo is used instead). Command checktrend is used to check for possible memory leak.
2012-12-10 16:32:18 +04:00
abv
a87752f31e Adding test cases from grid chl 2012-12-07 16:29:17 +04:00
abv
8a262fa13d 0023586: The test execution process should correctly stop on user demand
Possibility to break DRAW commands by user break (Control-C) is implemented as follows:

- Treatment of Control-C (SIGINT signal) on UNIX in OSD::SetSignal() is made coherent with Windows implementation: instead of attempt to raise exception (simulated by longjump, does not work anyway), signal handler just sets a flag which can be later checked by OSD::ControlBreak()

- Call to OSD::ControlBreak() is added to common entry point for OCCT DRAW commands; this causes command interruption if Control-C has been pressed before its start.

- Command "dbreak" added allowing to check Control-Break status from Tcl script (raises Tcl exception if break was signaled)

- Command "dversion" added printing information on OCCT version, used build options, compiler, etc.

- Test system modified to properly handle and report user breaks and add version info in the summary log

Fix compiler error on Linux
2012-12-07 16:12:01 +04:00
aba
3994ec417f 0021985: Vista/WIndows 7 compatibility issues reported by the community
WNT_Window::Dump method calls were replaced with V3dView::Dump calls
Type casts were removed
Added supported image formats in file filters of Export methods, edited documentation for Image_AlienPixMap  class
Supported image formats filter for 2dsample was extended
2012-12-07 14:21:46 +04:00
abv
2210f3484a 0023546: Test report failure in Debug mode due to debug messages
Adding IGNORE for debug output messages in test groups heal, pipe, mesh, offset, xcaf
2012-12-07 14:16:13 +04:00
nbv
de8791eebc 0023535: Exception in BSplCLib::BuildCache()
Preliminary result. It was tested with spl_2.brep file only.
Add "const"
Adding test cases for this fix
2012-12-07 14:12:54 +04:00
abv
23bbd9d392 0023599: Some MFC samples are crached during launching
Fixing compiler warnings in MFC samples (MSVC compiler)
File .gitignore modified to ignore files generated by VS 2012
2012-12-07 14:09:39 +04:00
kgv
bf75be9867 0023544: Texture management in TKOpenGl should be redesigned
Structures Graphic3d_CView, Graphic3d_CStructure, Graphic3d_CGroup become classes and their definitions moved from InterfaceGraphic to Graphic3d.
Introduced new class OpenGl_Texture as replacement for OpenGl_ResourceTexture class and static functions in OpenGl_TextureBox.
Graphic3d_TextureRoot now no more communicate within Graphic3d_GraphicalDriver.
Instead class returns image through GetImage() method.
OpenGl_AspectFace - avoid possible NULL-dereference
OpenGl_Texture::Init() - check gluBuild2DMipmaps() return value
OpenGl_Texture - check GL_BGRA_EXT for compatibility
OpenGl_Texture - scale NPOT image when required
Added more description to Graphic3d_TextureRoot class
OpenGl_Texture - added missing break statement for ImgBGR32 case
OpenGl_Workspace::setTextureParams() - fixed local variable aFilterMin overrides visibility of early declared variable
OpenGl_Workspace::DisableTexture() - reset texture matrix
FTGL do not reset texture matrix and corrupt text could be rendered if custom texture has not identity texture matrix.
2012-12-07 13:58:30 +04:00
abv
ab8fcacf28 0023546: Test report failure in Debug mode due to debug messages
Adding IGNORE for debug output messages in test groups heal, pipe, mesh, offset
2012-12-07 13:51:59 +04:00
abv
2857a8acd8 0023561: stepwrite and brepiges dont work with big path (over 150 simbols) of writing file
DRAW commands stepwrite and brepiges modified to never ask for interactive input of file name or write mode; the behavior is completely defined by input arguments. String buffers causing access violation due to overflow are eliminated.

Test case bugs xde bug23561 added for this issue; TODO 23651 in related test cases removed.

Compiler warning (unrelated) is fixed in QABugs_11.cxx
2012-12-07 13:50:06 +04:00
abv
60874ff8b6 0023550: Variable imagedir is not defined in interactive run of tests
When test is run interactively, imagedir is set to temporary directory (search order: environment variables TempDir, Temp, Tmp, upper and lower case, in  this order, then $HOME/tmp)
Update testing case with imagedir variable
2012-12-07 13:44:58 +04:00
dbv
aff395a36d 0023415: OSD_FontMgr can't idenify aspect for fonts with names dependant on system locale.
Added function DetectFontsAspects to Font_FontMgr class. This function uses workaround from OpenGl_FontMgr with FreeType for detecting font aspect.
Removed font name parsing from Font_FontMgr::InitFontDataBase(). Now the font name and font style we get through the FreeType.
Fixed Unix part of Font_FontMgr::InitFontDataBase() method. Font name and font style now detected through the FreeType.
Remarks fix. Added recursive default font directories scanning .
Fixed adding fonts folders recursively from configuration files.
Moved fonts aliases map from OpenGl_Display_1 to Font_FontMgr.
Moved fonts name definition from Graphic3d_NameOfFont.hxx to Font_NameOfFont.hxx.
Added new methods to Font_FontMgr: GetAvailableFontsNames, GetFont and FindFont.
Modified Font_SystemFont creation from XLFD. Added method IsEqual to Font_SystemFont.
Modified methods OpenGl_Display::FindFont, OpenGl_FontMgr::request_font in accordance to the new functionality of the Font_FontMgr.
OpenGl_FontMgr now stores only generated fonts instead of duplication of available fonts list.
Removed method OpenGl_FontMgr::requestFontList. Its function now performs Font_FontMgr::GetAvailableFontsNames.
Documentation was fixed
Adjusting testing cases for current state of OCCT
2012-12-07 13:42:37 +04:00
abv
cb9292ed80 0023609: Tests should handle output containing word error as failure regardless of case
File parse.rules modified to handle word "error" case insensitive
2012-12-07 13:03:12 +04:00
Roman Lygin
72ae989503 0023597: Failed to export ellipse into STEP with units other than mm
Test case for this bug
2012-12-07 12:47:03 +04:00
Roman Lygin
0d167958d9 CR23589: performance improvements in curve-curve intersection 2012-12-07 12:20:39 +04:00
Roman Lygin
337a0f4e30 0023601: Member fields of BRepTools_ReShape made protected 2012-12-07 12:18:31 +04:00
Roman Lygin
576ab3945d 0023596: Extending XCAFPrs_AISObject to enable customization of default color 2012-12-07 12:16:03 +04:00
Roman Lygin
a28d577831 0023594: XCAFDoc_LayerTool extended to work with layer defined by its label, not string 2012-12-07 12:14:14 +04:00
Roman Lygin
f898928aa0 0023593: XCAFDoc_DocumentTool label must be removed from internal map upon closing the XDE document 2012-12-07 12:12:24 +04:00
Roman Lygin
a0d8a9fc54 0023592: Enabling TBB allocator by default for OCC built with -DHAVE_TBB
Implementation updated based on discussion with OCC team
2012-12-07 12:08:09 +04:00
Roman Lygin
1db4f07b79 CR23590: IGESCAFControl_Writer extended to accept TDF_LabelSequence 2012-12-07 12:05:27 +04:00
bugmaster
82cbc512df Reorganization of bugs testing group 2012-12-05 17:17:05 +04:00
bugmaster
075b21ec8a Adjusting testing cases 2012-12-04 16:10:52 +04:00
apn
22698ad7ad Adjusting testing cases for current state of OCCT 2012-12-04 11:17:20 +04:00
apn
0e94a94ee9 Integration part of tests of grid chl 2012-11-30 17:53:40 +04:00
omy
c2ae831c12 0023237: OSD_PerfMeter reports wrong (zero) times
Commit details:
1) in OSD_PerfMeter, use static functions of OSD_Chronometer class for time measurements instead of specific code to avoid incorrect results on CentOS (due to wrong valus of CLK_TCK);
2) changed definition of OSD_PerfMeter from .c to .cxx to avoid problems with C-functions;
3) fixed OSD_PerfMeter.h for building on Unix systems;
4) removed platform-specific #defines;
5) added test case for OSD_PerfMeter as bugs fclasses bug23237;
6) Removed DebugTools package (duplicates OSD_PerfMeter)
7) Avoid compiler (GCC) error casting BRepPrimAPI_Make* instances to TopoDS_Shape
2012-11-30 16:17:28 +04:00
Roman Lygin
ed9161a431 0023569: Adding NCollection_StdAllocator
Adding NCollection_StdAllocator
Adding NCollection_StdAllocator (correcting previous commit)
- addressed code review comment by kgv with using 2 (vs 4) spaces and amending max_size()

Add new draw-commands
Adding test case for this bug
2012-11-30 16:06:46 +04:00
kgv
4ad91217b5 0023241: DRAWEXE crash on startup in Mac OS X
Fixing problem with Draw starting
Added problem description into the sources.
Cosmetic fix. Replaced tabs with spaces.
2012-11-30 16:01:48 +04:00
abv
c4ecd2574b 0023584: Tests in group geometry generate gif images instead of png
File end in group geometry modified to produce PNG images instead of GIF
2012-11-30 15:57:36 +04:00
bugmaster
fc3a37cda1 23563: Introduce support of MS Visual Studio 2012
unused Mapiwi.h commented
Update of OCCT samples for vc11
Update of target folders for vc11
Update of generation-vc-projects.bat files
2012-11-30 15:43:13 +04:00
aba
86325709af 0023418: Crash on the object displaying when running DRAW on remote station. OpenGL version determination was corrected
Small style changes
Comments were corrected
2012-11-30 15:40:17 +04:00
Pawel
08b86c1dfc 0023532: Mismatching allocation and deallocation: anAsciiString, CDM_COutMessageDriver.cxx
Replaced 'delete' with 'delete []' when deallocating array.
2012-11-30 15:35:12 +04:00
abv
529b95df0d 0023498: Comparison always true in Units_Lexicon::Creates()
Method Units_Lexicon::Creates refactored
Further refactoring of Units_Lexicon::Creates() and Units_UnitsDictionary::Creates()
2012-11-30 15:31:27 +04:00
bugmaster
bba0504021 Adjusting testing cases for current state of OCCT 2012-11-27 13:47:01 +04:00
Pawel
bd7ad48c54 0023556: Identical sub-expressions to the left and to the right of the '||' operator
The second condition changed to: (allMovePenToY->Lower() != 1 || allMovePenToY->Length() != Len)
2012-11-23 15:57:25 +04:00
abk
b9e76f0570 0023560: Redundant copying in Geom_OffsetCurve::Geom_OffsetCurve constructor
Eliminating redundant copying of 'C' in Geom_OffsetCurve::Geom_OffsetCurve
  const Handle(Curve)& C,
  const Standard_Real Offset,
  const Dir & V) constructor was removed.
2012-11-23 15:50:56 +04:00
vsr
e9c15c4cec 0023567: Wrong STEP unit is returned by STEPControl_Reader.FileUnits() function
Fix bug with using of uninitialized variable.
New version of patch: pass unit object to the getSiName() function directly.
Test case for this bug
2012-11-23 15:44:47 +04:00
omy
4e76d93bf1 0023132: Suspicious code snippets
1) Warning in Aspect.cxx couldn't be reproduced
2) Description of changes: added 'return' statements into ReadStep(...) functions of RWStepBasic_* classes.
3) BRepFill_OffsetWire.cxx - removed dead code;
4) IFSelect_WorkSession.cxx - swapped arguments;
5) TopOpeBRep_ShapeIntersector2d.cxx - removed 'brake' statement and changed loop to if-statement because of
     void TopOpeBRep_ShapeIntersector2d::FindFFIntersection() function's call features.
6) V2d_RectangularGraphicGrid.cxx - left constants instead of functions beacuse of faster perfomance.
7) Commented unreachable code in files GeomFill_LocationGuide.cxx and TopOpeBRepTool_mkTondgE.cxx
2012-11-23 15:41:20 +04:00
omy
49f38e37fc 0023286: Standard_Mutex behavior depends on platform
Implemented recursive POSIX mutex instead of non-recursive,
Removed SentryNested class, implemented it's features into Sentry class
Added second constructor to Sentry class
2012-11-23 15:38:27 +04:00
nbv
581971fef3 0023130: command "maxtolerance" doesn't work on Windows
maxtol command returns incorrect values of variables nbFaces, nbEdges and nbVtx.
Test case for this bug
2012-11-23 15:33:47 +04:00
ilv
2f0109b77d 0023487: Remove obsolete BRepTools::OuterShell() function
All corresponding calls to BRepTools::OuterShell() replaced by function BRepClass3d::OuterShell()
Changed function BRepClass3d::OuterShell
2012-11-23 15:01:28 +04:00
ika
66d6976f7a 0023379: Exporting single point into STEP produces a compound with two points
Adding single vertex for second time was removed.
Adding single vertex in first time was removed, but for second time was returned.
Duplication of vertex compound in STEPControl_GeometricCurveSet mode was removed.
Some cosmetic changes
Test case for this bug
2012-11-23 14:57:23 +04:00
san
e84189c512 0023120: Transform persistence is not restored
Updating myTransPers field in any case in OpenGl_View::BeginTransformPersistence()
Test case for this bug
2012-11-23 14:47:11 +04:00
bugmaster
cfb698b93a 0023572: Wrong line endings in *.yacc and *.lex files on Linux 2012-11-22 18:20:49 +04:00
bugmaster
808b3f9f34 Adjusting testing cases for current state of OCCT 2012-11-16 12:48:24 +04:00
epa
2de84aa22f 0023473: Top face of imported STEP part is missing
Fix for constraints for case of complex internal wires
Test case for this bug
2012-11-15 16:37:23 +04:00
pkv
d642ddf565 0023548: Boolean operation between two faces fails 2012-11-15 16:34:22 +04:00
ika
1c418d0e12 0023290: IntCurve_IntPolyPolyGen.gxx, suspicious if/for
unnecessary code was deleted
2012-11-15 16:24:08 +04:00