1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

863 Commits

Author SHA1 Message Date
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
apn
7d0a4e205c 0022835: IncrementalMesh generates FLT exceptions when running in parallel mode
Adding test case
2012-11-15 15:38:51 +04:00
gka
a7493ad47d 0023475: Wrong result of Geom_BSpline_Surface::IsVClosed()
Modifications:
Definition closure surface by U and V by distance between isolines on bounds
Comparison to isolines on identity
Implementation of short dump of surface and curves
Change order of comparison

Fix and test script for bug 0023475
Modification of script to restore surface
Modification for correction regression ( UIso and VIso were confused)
Modified test case and test surface for bug 0023475
2012-11-15 15:35:03 +04:00
vro
80e49d4396 0022927: Regression with OCCT652 on Windows. DRAWEXE crashes during offsetcomshape.
Check was added to avoid a crash if result is not reachable.
Modified test case
2012-11-15 15:19:42 +04:00
ika
f2fd3809c5 0023291: GccAna_Circ2d3Tan_8.cxx, suspicious if
one of the duplicate conditions has been removed
Code was changed to be more obvious.
Unite if blocks into one block
Small correction of coding style
2012-11-15 15:14:58 +04:00
omy
999c0ca132 0022506: Wrong factor for elapsed time mesaured with GetTickCount() in OSD_Timer
Commit details: set the proper factor value.
2012-11-15 14:38:07 +04:00
aba
dc9b6d23b6 0022522: Small BUG in DRAWEXE - vtrihedron command
Add condition to check if shape name is already bound
Used VDisplayAISObject() to display an object
vtrihedron - fixed parsing of arguments with Z direction definition
2012-11-15 14:35:21 +04:00
ilv
be53be81ae 0023329: Edit comment of function Epsilon (Standard_Real.hxx) 2012-11-15 14:10:33 +04:00
aba
f163f612f9 0022970: Incorrect array use in Graphic3d_StructureManager.cxx
Corrected bounds of loops and initialisation error message.
2012-11-15 14:07:45 +04:00
aba
bcfa72e4b3 0022832: Not documented limitation of Graphic3d_StructureManager
Added information about viewers count limitation in CDL documentation.
2012-11-15 13:30:35 +04:00
kgv
792c785cfb 0023432: Connected Interactive Objects computed without Interactive Context
Setup interactive context for reference(s) in Compute() method of classes AIS_ConnectedInteractive and AIS_MultipleConnectedInteractive
Extend vconnectsh and vconnect to process several input objects, added displaying color for result object
Fixed errors in QAGetPixelColor DRAW command
Edit QAGetPixelColor command and test case
ViewerTest::GetColorFromName() - fixed iteration bounds
QAAISGetPixelColor() - removed redundant conversions
Turn back QAGetPixelColor output syntax in case of 3 arguments
Integration of test script to new test system
2012-11-15 13:27:18 +04:00
ilv
f6f03db9d0 0023361: Bug in gp_Trsf::Multiply
Bug in gp_Trsf::Multiply fixed.
If we multiply 2 gp_Trsf objects (shape == gp_Rotation), for example, t1 * t2, and t2.loc = 0
(t2.loc.x == 0 and t2.loc.y == 0 and t2.loc.z == 0)
then t1.loc will not change (you can verify it from the matrix multiplication)
Adding test case
2012-11-15 13:23:11 +04:00
aba
3d8539a3e5 0023292:The variable 'k' is being used for this loop and for the outer loop.
New variable 'm' was defined for the inner loop in line 212 of gccana_circ2d3tan_2.cxx.

Rebased on current master.
2012-11-15 13:20:13 +04:00
Roman Lygin
0ac0c8b4ae 0022545: Improved exception handling 2012-11-15 13:17:30 +04:00
aba
06c23d6a33 0023141: Suspicious if (2)
Fixed condition which was always true
2012-11-15 13:13:03 +04:00
omy
8f905bca47 0023144: Suspicious if (3)
Fixed mistake in Standard_Boolean IntCoCo ( ... ) function of IntPatch_ImpImpIntersection_5.gxx file.
Fixed this condition because of the opposite parametrisation direction of the intersection line.
2012-11-15 13:01:32 +04:00
omy
3fa7e3e72f 0023143: Suspicious else
Changes description:
In src\IntPatch\IntPatch_ImpPrmIntersection.cxx , in ForcedPurgePoints function changed
ParametersOnS2() to ParametersOnS1() in cases of
Standard_Boolean IsReversed == false in lines 1522 & 1540
Got rid from duplicated code in function static void ForcedPurgePoints(...)
2012-11-15 12:59:23 +04:00
kgv
3c3131a05d 0022591: Migration to FreeImage: texture management
Graphic3d_TextureRoot - migrate to Image_AlienPixMap
OpenGl_View::CreateBackgroundTexture() - migrate to Image_AlienPixMap
Fixed Graphic3d_TextureRoot::LoadTexture() method.
2012-11-15 12:52:57 +04:00
ika
33a085531a 0023142: GccAna : suspicious else
the else should be signe = +1
2012-11-15 12:49:32 +04:00
kgv
43c34303a7 0023281: Removed unused OpenGl_ImageBox 2012-11-15 10:12:02 +04:00
aba
26920f3892 0023312: Suspicious for loop in BiTgte_Blend.cxx
Deleted line 'NbS=0;' to allow next loop be executable
2012-11-14 14:07:33 +04:00
abv
351bbcba7e 0023161: Select publicly accessible data files for OCCT tests
Duplicated data files are removed.
New command testfile added for automation of analysis of the new data files before adding to the data base.
V6_5_4
2012-11-13 13:45:16 +04:00
ibs
5853bf66cd 0023500: MFC texture example is crashed when view closed
x64 sample build directory has been changed to win64
2012-11-13 13:40:43 +04:00
bugmaster
f254eed001 Update version for OCCT 6.5.4 official release 2012-11-13 10:31:17 +04:00
Roman Lygin
deb26df7c0 0023489: Memory leak in TNaming_NamedShape
Added test for memory leak (bugs/ocaf/bug23489)
Missing return added in QANewBRepNaming_BooleanOperationFeat::IsWRCase2()
Adding test case and general procedure for trend checking for detection of memory leaks
2012-11-09 16:55:48 +04:00
abv
22db40ebf1 0023372: "diffimage" using in tests commands
Comparison of images is implemented in testdiff command; output in HTML form generated
Add measurement of memory (working set) delta in test case execution
Add memory statistics to output of testdiff command
Treatment of parameter -outdir of command testgrid corrected.
Function locate_data_file and code to run tests in parallel revised to be usable with Tcl 8.4.
Added function testsummarize: regenerate summary log of tests from test case logs
Command testdiff is protected against exception raised by diffimage if images have different formats
2012-11-09 16:41:36 +04:00
apn
9ced84ff2d 0023193: Some triangles are inverted when writing an STL file
Adding test case
2012-11-09 16:03:27 +04:00