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

4009 Commits

Author SHA1 Message Date
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.
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
aba
5d3515528f 0023289: IntCurve_IntPolyPolyGen.gxx, suspicious else
if-else blocks in lines 805 and 822 were removed.
Corrected initialization of 'nbsamples' variable
2012-11-09 15:47:10 +04:00
abv
b725d7c50a 0023468: Include current branch name into default name of directory for test results
Default name for results directory is generated as "results_<branch>_<timestamp>".

In the HTML log of test execution references to script files are made HTML links to relevant files

Aded possibility to put data file for use by test script into subdirectory data of the script folder (function locate_data_file is extended to find such files).

Test demo/testsystem/A1 renamed to locate_data_file and corrected to account for the recent changes.

Default value of CSF_TestDataPath is defined pointing to $CASROOT/data

File psrse.rules corrected in accordance with changed message on missing data file

Interface of command testgrid changed:
- output directory (formerly required argument) is now defined by optional parameter -outdir
- by default tests are run in parallel mode with number of processes equal to number of system CPUs
- check for input arguments is made more strict
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.
Adjusting testing case demo draw getsource for current state of master
2012-11-09 15:41:29 +04:00
ibs
1c4ff5c647 0023500: MFC samples are crached on 3D visualisation
void FreeTexture() in OpenGl_TextureBox.cxx - avoid possible NULL-pointer dereference

after debug x64 compilation the executable viewer3d had been moved to the bin folder. now executable viewer3d located in bind folder.
2012-11-09 15:28:40 +04:00
vsr
dbf33db17a 0023139: BRepFilletAPI_MakeFillet algorithm builds edges with wrong first and last parameters: out of pcurve
- Revert previous integration
2012-11-09 15:24:58 +04:00
abv
1598ec0e46 0023275: restore command set name of result variable incorrectly if absolute path is used
Command restore corrected to set default name of the shape equal to filename without extension
Test case added (demo draw restore)
2012-11-02 16:08:20 +04:00
aba
3d8969b13b 0022779: Pixel format should be chosen to support stencil buffer
Missing code in find_pixel_format() function was restored.
Coding rules applied
Added changes in GLX part
2012-11-02 16:05:16 +04:00
aba
9edc5e12b6 0023383: Bugs in CDL documentation of visualization classes
Added lines in CDL documentation for SetDisplayPriority and SetViewingVolume.
2012-11-02 16:02:19 +04:00
kgv
16fa0dfb08 0023488: Make video recording functionality (OpenGl_AVIWriter) optional
CSF_AviLibs missing in EXTERNLIB of TKOpenGl toolkit. This cause incorrect project generation.
HAVE_VIDEOCAPTURE now should be defined to enable video recording capabilities on Windows.
2012-11-02 15:56:36 +04:00
ilv
5fec2f774c 0023116: Add Standard_EXPORT declaration to method Poly_MakeLoops::GetHangingLinks 2012-11-02 15:52:09 +04:00
ilv
0ad0f66b8c 0022754: Add forgotten include to BRepBlend_BlendTool.lxx 2012-11-02 15:47:18 +04:00
omy
9046e4fc55 0023147: Suspicious if (5)
Removed non-executed parts of code because

   Standard_Boolean s1Point = Standard_False;
   Standard_Boolean s2Point = Standard_False;
   Standard_Boolean vClosed = Standard_False;

and never changed thus some parts of code are non-reachable.
Fixed mistake with 'else' without corresponding 'if'.
Commented unreachable code part.
2012-11-02 15:18:21 +04:00
aba
5768cd55b7 0023140: Suspicious if
Condition that is always true was replaced on assigning a variable 'Tol' to Precision::Confusion.
2012-11-02 14:30:29 +04:00
ika
9a79c9529a 0023145: Suspicious else (2)
else statement was incorrect, is has been changed.
2012-11-02 14:27:40 +04:00
aba
80cead4136 0023288: IntCurve_IntConicConic_1.cxx: if(A) {...} else if (A){...} pattern detected.
Unrealizable condition ( second condition block 'else if(d0102>AbsR1mR2-Tol)' ) was deleted.
2012-11-02 14:13:39 +04:00
abv
b9736bcc8e 0023480: New compiler warnings on MS VC 9
Unused local variables eliminated
2012-10-26 17:00:28 +04:00
ika
fb20c14374 0022871: Step Reader raises exception on invalid entity (null swept curve)
checking for null swept curve was added
Adding test case
2012-10-26 16:57:47 +04:00
jgv
bd82d4b2e9 0023464: Projection algorithm produces wrong results.
including of .hxx file added
Correction of computation of intersection point
Integration of test cases for this issue
2012-10-26 16:04:01 +04:00
jgv
07782e0ce6 0023472: BRepAlgoAPI_Section algorithm fails with exception while intersecting two faces 2012-10-19 18:53:19 +04:00
gka
45c0ba3664 0023338: The 'then' statement is equivalent to the 'else' statement. IGEStoBRep_TopoSurface.cxx 2012-10-19 18:33:42 +04:00
jgv
7416e83cf6 0023367: New functionality restoring the middle path of pipe-like shape 2012-10-19 18:28:46 +04:00
pkv
24def445c3 0023470: Boolean Fuse between two edges fails 2012-10-19 18:22:12 +04:00
ika
418118960f 0023354: The use of 'if (A) {...} else if (A) {...}' pattern was detected.
second else was deleted, now "D" is hotkey for reset view and removing selected object is impossible by hotkeys
help message was rewrited according to these changes, also hotkeys "R","L" and "B" added to help
Minor remarks: viewer commands help fulfilled with U; Z; ","; "." . Comments revised.
2012-10-19 18:19:18 +04:00
omy
7da2a6ab87 0023351: The use of 'if (A) {...} else if (A) {...}' pattern was detected.
Got rid of duplicated code.
Got rid of redundant conditions' checks in Standard_Integer TOPOC(Draw_Interpretor& interpretor,Standard_Integer na,const char** a) function.
2012-10-19 18:09:57 +04:00
jgv
2277323d3a 0023367: New functionality restoring the middle path of pipe-like shape
Version 2
Small correction
Adding test cases
2012-10-16 13:12:36 +04:00
kgv
8eec45674f Update OCCT version up to 6.5.4beta1 2012-10-12 17:07:58 +04:00
kgv
dd8a4ce929 0023345: Crash when destroying OpenGl_Element
OpenGl_PrimitiveArray::Release() - avoid possible NULL-pointer dereference
OpenGl_GraphicDriver::RemoveView() - release GL resources within removing last view
Fixed OCC280 test command - do not remove old view until new one is initialized
2012-10-12 16:56:23 +04:00
dbv
eeaaaefb6f 0023466: Move OSD_FontMgr class outside TKernel
Created new package Font in TKService.
Classes FontMgr and SystemFont have been moved from OSD package to Font package.
2012-10-12 15:15:32 +04:00
dbv
f1e162f2ad 0023098: Cppcheck warnings/errors in QA files
Fix for cppcheck warnings
Warning fixes
2012-10-12 14:23:00 +04:00
ika
a7ae5c810a 0023266: cppcheck warning: Logical disjunction always evaluates to true
Logical disjunction changed to  Logical conjunction, it evaluates true only then number of parameters isn't right.
2012-10-12 14:19:50 +04:00
Pawel
8b595ab775 0023467: BRepOffsetAPI_MakeOffset throws StdFail_NotDone and not Standard_ConstructionError 2012-10-12 14:05:11 +04:00
osa
37eb478791 0023428: Extend OpenGl_Context to use Geometry Shaders extension
Additional corrective integration
2012-10-12 13:41:06 +04:00
miv
34dd4990ed 0023438: Update test cases for new organization of data files
Modifications:
1.Test cases
2. locate_data_file from DrawResources/TestCommands.tcl
Fix for mesh end
Adjusting testing cases for current state of master using new organization of data files
2012-10-11 14:24:12 +04:00
pkv
8f15a0d540 0023137: Class BRepAlgoAPI_Cut does not made correct result on attached shapes.
class ShellFaceClassifier;
   - method:
void BOP_ShellFaceClassifier::ResetElement(const TopoDS_Shape& theElement)

The order of choice a testing point for the element has been changed.
The following order is:
-point inside an edge
-point as an vertex-point
-point inside UV-range of a surface

Adding test cases
Expected sduare is corrected
2012-10-05 14:20:32 +04:00
vro
cc1d74e225 0021189: Clean up KAS:dev:ros and Products
Removal of VoxelClient
VoxelDemo sample is redesigned so that it doesn't require compilation of OpenGl classes. It refers to TKOpenGl.dll as to an external library.
Some minor bugs are fixed in OCAF and Viewer 3d standard MFC samples
2012-10-05 14:17:17 +04:00
kgv
64e2d3bd71 0023234: Incorrect behavior of AIS_Trihedron
AIS_InteractiveContext::myLocalContexts map accessed before newly created AIS_LocalContext bound to it
Minor remarks: comments revised.
Adding test case
Adding new draw command
Small correction of tests
2012-10-05 14:06:32 +04:00
abv
2478cd9d9f 0023453: Infinite loop on cut operation
In IntTools_FClass2d.cxx, do {} while {} cycle is replaced by for () cycle to avoid possible infinite loop.
Check for degeneration is made with Precision::Confusion() precision instead of comparison with 0.
Correction of misprint
2012-10-05 13:58:17 +04:00
abk
08cd2f6bb1 0023404: Create SquareConfusion function in Precision package for speed and convenience
SquareConfusion function was created in FoundationClasses module -> TKMath toolkit -> Precision package.
The function returns square of Precision::Confusion().
SquareConfusion function was corrected in FoundationClasses module -> TKMath toolkit -> Precision package.
Squares of Precision::Confusion() were replaced by Precision::SquareConfusion().
2012-10-05 13:55:16 +04:00
pkv
852a895cda 0023431: BOP Cut produces invalid shape 2012-10-05 13:52:19 +04:00
pkv
88cc4cb829 0023125: Wrong results done by classifier algorithm for a point and a solid.
class :BRepClass3d_SolidExplorer;
   - method:
Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
                               gp_Lin& L,
                               Standard_Real& _Par)

The object of the type Extrema_ExtPS is created using real parametric ranges (U,V) of the surface.
2012-10-05 13:49:32 +04:00
pkv
3f52476587 0023442: Provide the access to the functionality of Geom2dHatch_Hacher via IntTools_Context
class IntTools_Context
- the method:
Geom2dHatch_Hatcher& IntTools_Context::Hatcher(const TopoDS_Face& aF)
has been added.
The method returns the reference to 2D hatcher for given face <aF>

class IntTools_Context
- the method: IntTools_Context::~IntTools_Context()
has been modified in terms of I.1.
2012-10-05 13:45:23 +04:00
abv
5df3a117e1 0023423: Test system does not get log if DRAW crashes or gets killed
Avoid using dlog in grid tests (command testgrid), in order to get some output even if DRAW crashes.
Command test now accepts argument echo to get echo immediately (but no log processing).
Test case for checking log processing in case of premature exit of DRAW is added (demo testsystem premature_exit).
2012-10-05 13:41:07 +04:00
osa
0e26a4d0bf 0023428: Extend OpenGl_Context to use Geometry Shaders extension 2012-10-05 13:34:02 +04:00
jgv
e9a6ce8256 0023388: Boolean operations hang up trying to build section of two customer's shapes 2012-09-27 13:10:31 +04:00