occt.git
8 years agoIncrementation of OCCT version up to 7.0.0
bugmaster [Thu, 31 Mar 2016 09:11:20 +0000 (12:11 +0300)]
Incrementation of OCCT version up to 7.0.0

8 years ago0027337: [Regression vs. 6.9.1] Selection highlight is poor in ray traced mode with...
duv [Mon, 4 Apr 2016 09:16:49 +0000 (12:16 +0300)]
0027337: [Regression vs. 6.9.1] Selection highlight is poor in ray traced mode with FSAA

For FSAA mode we now store the depth values from first sample in myRaytraceFBO1 and do not modify it while collecting the rest of samples.
When all samples are gathered we fetch color from myRaytraceFBO2 and depth from myRaytraceFBO1 and display it to the current FBO.

Test bugs vis bug27337 added.

8 years ago0027338: Minor corrections in Tcl samples and documentation
abv [Sat, 2 Apr 2016 13:38:09 +0000 (16:38 +0300)]
0027338: Minor corrections in Tcl samples and documentation

In samples:
- Fixed syntax error in DataExchangeDemo.tcl
- MSAA is enabled in some tests to provide better presentation
- Option to build isolines on triangulation is used in some samples to avoid artifacts in selection highlight
- Colors are corrected in cpu.tcl

In documentation:
- Reference to automake tools is removed
- Standard_OVERRIDE is expanded to "override"

8 years ago0027325: [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExi...
nbv [Fri, 1 Apr 2016 11:54:12 +0000 (14:54 +0300)]
0027325: [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExistingPCurve doesn't work

1. Check, if edge is same-range, is now made with some tolerance (not strictly) in GeomLib_CheckCurveOnSurface class. Default value of this tolerance is Precision::PConfusion(). However, this value can be changed with corresponding interface.

2. DRAW-command "attachpcurve" has been added to BOPTest_UtilityCommands.cxx file. This command creates p-curve of given edge on given face. It can assign 2D-curve of one of the edge already included in the face or (if it is not possible) rebuilds new 2D-curve.

Creation of test case for this issue.
Adjusting test case boolean volumemaker A8 according to its new behavior on Windows.

8 years ago0027318: Memory is not released in Select3D_SensitiveSet when destroying AIS_Interact...
vpa [Wed, 30 Mar 2016 15:06:52 +0000 (18:06 +0300)]
0027318: Memory is not released in Select3D_SensitiveSet when destroying AIS_InteractiveContext without removing objects

- destructor was added to SelectMgr_SelectableObject to clean up selections;
- test case for issue #27318

Warnings elimination

8 years ago0027209: CMake - warnings on configuration step for VTK when using vc14 target
ski [Fri, 25 Mar 2016 12:03:55 +0000 (15:03 +0300)]
0027209: CMake - warnings on configuration step for VTK when using vc14 target

Added check for existence of VTK library target.

Removal of hard-coded path to Direct 3D import library is generalized and amended for VTK built with VC12 and VC14.

8 years ago0027290: CMake configuration files for OCCT
ski [Thu, 24 Mar 2016 07:23:03 +0000 (10:23 +0300)]
0027290: CMake configuration files for OCCT

CMake scripts are improved to install CMake configuration files for OpenCASCADE product.

8 years ago0027051: BRepBuilderAPI_GTransform produces invalid result
msv [Tue, 29 Mar 2016 07:08:04 +0000 (10:08 +0300)]
0027051: BRepBuilderAPI_GTransform produces invalid result

Test case for the bug.

Small correction of vprops reference value.

8 years ago0027167: Boolean operations produce an invalid shape
apn [Wed, 30 Mar 2016 09:36:41 +0000 (12:36 +0300)]
0027167: Boolean operations produce an invalid shape

Added test case bugs/modalg_6/bug27167.
Modified shape name in bugs/modalg_6/bug27190.

8 years ago0026929: Extrema_ECC hang/crash
msv [Sat, 26 Mar 2016 17:42:49 +0000 (20:42 +0300)]
0026929: Extrema_ECC hang/crash

Comparator functor corrected to return false in the case of equal elements.
Test case added.

8 years ago0027305: Using undefined variables, which causes devide by zero
nbv [Fri, 25 Mar 2016 12:57:49 +0000 (15:57 +0300)]
0027305: Using undefined variables, which causes devide by zero

Initialization of the boundaries of the function "FuncPreciseSeam" in IntPatch_ImpPrmIntersection.cxx.

8 years ago0025813: regression in Hidden Line Removal
jgv [Wed, 9 Mar 2016 14:46:55 +0000 (17:46 +0300)]
0025813: regression in Hidden Line Removal
Regressions that appeared in OCCT 6.6.0 are fixed.

Correction of test cases for issue #25813

Reference data update for test case bugs/mnodalg_6 /bug25908

8 years ago0027291: Command File->New crashes Import Export Qt sample on Linux
ski [Fri, 25 Mar 2016 09:34:28 +0000 (12:34 +0300)]
0027291: Command File->New crashes Import Export Qt sample on Linux

Crash on Qt 4.8.6 was fixed.

8 years ago0027306: Incorrect documentation for BRepOffsetAPI_NormalProjection class
aml [Fri, 25 Mar 2016 11:32:25 +0000 (14:32 +0300)]
0027306: Incorrect documentation for BRepOffsetAPI_NormalProjection class

Incorrect sentence is deleted to avoid misunderstanding.

8 years ago0027282: [Regression to 6.9.1] smesh/bugs_00/A6: Cut produces an empty shape
nbv [Wed, 24 Feb 2016 09:59:36 +0000 (12:59 +0300)]
0027282: [Regression to 6.9.1] smesh/bugs_00/A6: Cut produces an empty shape

1. The reason of the regression is not-closed intersection result. This problem has been solved (in this fix) by adding joint point to the both neighbors intersection lines (lines were extended to the this intersection point). It is made in IntPatch_WLineTool::ExtendTwoWlinesToEachOther(...) method.

2. Interface of IntPatch_PointLine and inherited classes has been changed. Methods ChangeVertex(...) and RemoveVertex(...) have been added.

Test cases for this issue have been created.

Small correction in the code.

8 years ago0027179: The algorithm of sharing edges in Boolean operation should be improved
nbv [Mon, 29 Feb 2016 14:52:20 +0000 (17:52 +0300)]
0027179: The algorithm of sharing edges in Boolean operation should be improved

1. New sharing algorithm has been implemented. If intermediate point of some edge is included in the tube with center taken in another edge and radius equaled to maximal vertex-tolerance of both edges then these two edges are considered to be shared. This know-how touches edges only, which have common blocks with interfered faces. If they do not have any common-blocks the algorithm will work as before.

2. Interface of BOPAlgo_PaveFiller::IsExistingPaveBlock(...) method has been changed.

Creation of test case for issues #27128 and #27179

Adjusting some test cases according to their new behavior, because they are IMPROVEMENTS really (TODOs have been deleted).

8 years ago0027283: Regression vs 6.9.1: smesh/bugs_11/L9: invalid result of General Fuse
msv [Mon, 21 Mar 2016 15:39:49 +0000 (18:39 +0300)]
0027283: Regression vs 6.9.1: smesh/bugs_11/L9: invalid result of General Fuse

Get rid of hard-coded tolerance 0.0001 for intersection with a conical surface.

Small correction of test case for issue CR27283

Adjusting test cases

8 years ago0027273: The computation of linear properties on shared shapes is not correct
ifv [Tue, 22 Mar 2016 11:41:43 +0000 (14:41 +0300)]
0027273: The computation of linear properties on shared shapes is not correct

New flag is inserted in parameters of static methods LinearProperties(...), surfaceProperties(...), volumeProperties(...). This flag defines to skip or not to skip second and next appearance shared topology entities (edges, faces, shells) in properties calculation.
Corresponding Draw commands is modified to take in account new parameter.

Test case for issue CR27273

Add option -skip into checkprops command

8 years ago0027175: Intersection algorithm with increased tolerance works incorrect with some...
nbv [Wed, 9 Mar 2016 06:54:42 +0000 (09:54 +0300)]
0027175: Intersection algorithm with increased tolerance works incorrect with some shapes

1. Algorithm of coincidence check between Walking and Restriction line has been improved in IntPatch_ImpPrmIntersection.
2. Creation of test case for this issue.

8 years ago0027133: Incorrect result of the normal projection algorithm
aml [Mon, 8 Feb 2016 08:39:54 +0000 (11:39 +0300)]
0027133: Incorrect result of the normal projection algorithm

Topological tolerances changed to geometric tolerances.
Protection from the usage of invalid result is added to restore good projection.
Test cases are updated.
Test case added.

Correction of test case for issue CR27133

8 years ago0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL progr...
kgv [Wed, 23 Mar 2016 09:42:17 +0000 (12:42 +0300)]
0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL programs for simplest configuration

OpenGl_ShaderManager::stdComputeLighting() - handle single directional light specifically
for compatibility with broken OpenGL ES drivers.

Added test cases using built-in GLSL shading programs.

8 years ago0026293: Error opening the document
apn [Tue, 22 Mar 2016 12:43:35 +0000 (15:43 +0300)]
0026293: Error opening the document

Added test cases bugs/caf/bug26293_1 bug26293_2

Unnecessary catch were deleted.

8 years ago0027274: Regression vs 6.9.1: Wrong result of General Fuse operation on two cylinders
emv [Thu, 17 Mar 2016 14:10:11 +0000 (17:10 +0300)]
0027274: Regression vs 6.9.1: Wrong result of General Fuse operation on two cylinders

When reducing the tolerance values of the vertices put on section curves take into
account all section curves, not only those for which the tolerance have been reduced
(method void BOPAlgo_PaveFiller::CorrectToleranceOfSE()).
The new protection has been added to avoid reducing of tolerance values of vertices
to the values less than the tolerance values of edges containing these vertices.

Adjusting of test case bugs/modalg_5/bug25232_9

8 years ago0027293: Add debug function to save a list of shapes into a compound
msv [Mon, 21 Mar 2016 15:45:29 +0000 (18:45 +0300)]
0027293: Add debug function to save a list of shapes into a compound

8 years agoAdjusting test case after changes of issue 27270
apv [Mon, 21 Mar 2016 11:56:33 +0000 (14:56 +0300)]
Adjusting test case after changes of issue 27270

8 years ago0027281: Some classes in GCPnts are not const-correct
Benjamin Bihler [Thu, 17 Mar 2016 13:19:37 +0000 (14:19 +0100)]
0027281: Some classes in GCPnts are not const-correct

const keyword has been added to the method parameters

8 years ago0027285: Visualization - selection of AIS_MultipleConnectedInteractive is broken
vpa [Fri, 18 Mar 2016 11:26:07 +0000 (14:26 +0300)]
0027285: Visualization - selection of AIS_MultipleConnectedInteractive is broken

- method SelectMgr_SelectableObject::HasSelection became virtual, unnecessary variable was removed;
- redefined HasSelection method for multiple connected interactives;
- AIS_InteractiveContext::AddOrRemoveSelected was corrected to use global selection owner;
- test case for issue #27285

8 years ago0027270: Boolean operations: incorrect assembling of sub-shapes in container shapes...
emv [Thu, 17 Mar 2016 09:04:59 +0000 (12:04 +0300)]
0027270: Boolean operations: incorrect assembling of sub-shapes in container shapes (wires, shells, compsolids)

The map to protect the result of Boolean operation from duplicating parts in containers has been removed (method void BOPAlgo_BOP::BuildShape()).
The results of Boolean operations on containers will be the following:
1. For the arguments of collection type (WIRE, SHELL, COMPSOLID) containing overlapping parts the overlapping parts
passed into result will be repeated for each container from the input shapes containing such parts.
2. The result of the operation Fuse for the arguments of collection type (WIRE, SHELL, COMPSOLID) will contain
the same number of containers as the arguments. The overlapping parts (EDGES/FACES/SOLIDS) will be shared among them.
For example, the result of Fuse operation between two wires will be two wires sharing coinciding edges if any.
3. The result of the operation Common for the arguments of collection type (WIRE, SHELL, COMPSOLID) will consist
of the containers containing the same overlapping parts. For example, the result of Common operation between two
fully/partially overlapping wires will be two wires containing the same edges.

Style correction.

Added test case bugs/modalg_1/bug13538
Modified boolean test cases according to new begavior

8 years ago0027261: Incorrect bounding boxes computed for the b-spline faces
aml [Tue, 15 Mar 2016 11:57:15 +0000 (14:57 +0300)]
0027261: Incorrect bounding boxes computed for the b-spline faces

Protection from the out of bounds parameters is added.
Test cases are added.

8 years ago0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install...
ski [Fri, 18 Mar 2016 05:25:53 +0000 (08:25 +0300)]
0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install variables

Possibility to customize layout of installation of OCCT is introduced by:
- variable INSTALL_DIR_LAYOUT - select one of the two predefined layouts: either Windows (classic OCCT layout) or Unix (Linux standard)
- variables INSTALL_DIR_* (BIN, LIB, INCLUDE, RESOURCE, DOC, TESTS, SCRIPT, SAMPLES, DATA) - specify locations of relevant components
- variable INSTALL_DIR_WITH_VERSION (bool) - specifies whether full version of OCCT should be used in paths in Unix layout

Files LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt are always installed.

Environment is extended to support non-default layouts.
For that, environment variables "CSF_OCCT*Path" are defined, corresponding to CMake variables INSTALL_DIR_* described above.
Visual Studio environment, DRAW, tests, samples are amended to use these variables instead of (or as alternative to) CASROOT.

Settings of Products-specific vars are removed from environment scripts.

File genconf.bat was corrected to avoid error message for the case when path to TCL contains spaces.

Product name in rc files changed to "Open CASCADE Technology".

8 years ago0027253: Boolean cut produces invalid result shape
msv [Fri, 11 Mar 2016 13:28:31 +0000 (16:28 +0300)]
0027253: Boolean cut produces invalid result shape

Add test case for this bug.

8 years ago0027263: Regression vs 6.9.1: Exception is raised during intersection of two faces
nbv [Tue, 15 Mar 2016 12:26:11 +0000 (15:26 +0300)]
0027263: Regression vs 6.9.1: Exception is raised during intersection of two faces

1. Protection against getting access to null-handle has been entered.

2. Function AreSamePoints() has been substituted by appropriate method IntSurf_PntOn2S::IsSame(...)

Test cases for issues #27262 and #27263 have been created.

8 years ago0027190: IntPatch_ImpPrmIntersection algorithm does not split intersection curve...
nbv [Wed, 24 Feb 2016 09:59:36 +0000 (12:59 +0300)]
0027190: IntPatch_ImpPrmIntersection algorithm does not split intersection curve by the seam-edge of the quadric

1. Processing when IntPatch_WLine/IntPatch_RLine goes through the seam edge has been improved in DecomposeResult(...) function (see IntPatch_ImpPrmIntersection.cxx).
2. Incorrect initialization of last point of IntPatch_WLine/IntPatch_RLine has been eliminated. Earlier it was the reason of exception.

Creation of test case for this issue.

Adjusting some test cases according to their new behavior. Namely:

1) tests\bugs\modalg_4\bug825 (bug825_2)
Details are described in issue #25915. In short, new intersection algorithm works better than old (WLine without "jumping"). However, Boolean operation loses degenerated edges of the sphere. Consequently, we get the result with Not-closed face.

2) tests\bugs\modalg_6\bug26684_2
TolReached of intersection curve has become smaller. Consequently, intersection algorithm works better than earlier.

8 years ago0027267: [Regression to 6.9.1] geom/boolean_operations_06/G3: Cut produces invalid...
nbv [Wed, 16 Mar 2016 14:49:16 +0000 (17:49 +0300)]
0027267: [Regression to 6.9.1] geom/boolean_operations_06/G3: Cut produces invalid shape

Calling IntPatch_WLineTool::ComputePurgedWLine() algorithm is forbidden if Walking-line is obtained from analytic line.

Creation of test case for this issue.

8 years ago0027277: geom/extruded_00/A0: OCAF document is not opened correctly
abv [Thu, 17 Mar 2016 12:04:19 +0000 (15:04 +0300)]
0027277: geom/extruded_00/A0: OCAF document is not opened correctly

Reading of attribute TDataStd_ExtStringList from CSFDB format is corrected for null strings: empty value is used.

Test bugs caf bug27277 added.

8 years ago0027266: Coding, TKOpenGl - drop unused files OpenGl_telem_util.hxx and OpenGl_tgl_fu...
kgv [Tue, 15 Mar 2016 18:02:32 +0000 (21:02 +0300)]
0027266: Coding, TKOpenGl - drop unused files OpenGl_telem_util.hxx and OpenGl_tgl_funcs.hxx

8 years ago0027241: Create a complete test case to verify reading of all attribute types from...
myn [Fri, 11 Mar 2016 19:08:01 +0000 (22:08 +0300)]
0027241: Create a complete test case to verify reading of all attribute types from MDTV-Standard document

Added test case that works in one of two modes:
1) create synthetic document (in old version of OCCT) containing all possible attributes.
2) open the document and compare all attributes with expected values.

Fixed reading of TDataStd_NamedData, TDataXtd_PatternStd, and PColStd_HArray2OfReal.
Point and curve representations are created even from NULL geometry handles.
The code is simplified by abandoning usage of templates from StdObjMgt_ContentTypes class for persistent data elements.

Fixed SetAsciiString Draw command failed when the target label contained NamedData attribute.

8 years ago0027237: genproj file does not take into account any arguments
abv [Mon, 14 Mar 2016 14:45:32 +0000 (17:45 +0300)]
0027237: genproj file does not take into account any arguments

Arguments of genproj tool are revised:
* -path option eliminated (current directory is always used);
* IDE should be always indicated by first argument (instead of -target=<ide> option);
* second argument can be used to specify non-default platform (wnt, mac, lin, ios, qnx);
* option -h, -help, --help can be used to get help
* option -static can be used to build static libs with XCode

README.txt and docs on building are updated.
codeblocks.bat is corrected to be able to detect 32-bit installation of Code::Blocks on 64-bit Windows.
Remains of support of OpenCL (obsolete) are commented out in genconf.tcl
genproj.tcl will not copy env.bat if it already exists.

8 years ago0027242: Configuration - add missing Standard_EXPORT to OpenGl_TextBuilder class...
kgv [Thu, 10 Mar 2016 06:53:35 +0000 (09:53 +0300)]
0027242: Configuration - add missing Standard_EXPORT to OpenGl_TextBuilder class constructor

8 years ago0027231: Obsolete OCCT features still mentioned in the documentation
abv [Tue, 8 Mar 2016 11:12:45 +0000 (14:12 +0300)]
0027231: Obsolete OCCT features still mentioned in the documentation

A few remaining places mentioning .cdl files are corrected to mention only .hxx
Obsolete description of storage in old format is revised in OCAF User's Guide.

8 years ago0027247: Eliminate remaining compiler warnings in MFC samples and with OCCT_DEBUG
abv [Fri, 11 Mar 2016 04:23:55 +0000 (07:23 +0300)]
0027247: Eliminate remaining compiler warnings in MFC samples and with OCCT_DEBUG

Unsafe and useless casts of handles are eliminated

8 years ago0027250: Samples - define proper file header for pathtrace.tcl
kgv [Fri, 11 Mar 2016 08:33:08 +0000 (11:33 +0300)]
0027250: Samples - define proper file header for pathtrace.tcl

Sample "Path tracing" is corrected to be shown in Visualization section, and to explain what it does during execution

8 years ago0027254: [Regression] 7.0 types initialization mechanism is not thread-safe on VS2013
Roman Lygin [Fri, 11 Mar 2016 13:44:55 +0000 (17:44 +0400)]
0027254: [Regression] 7.0 types initialization mechanism is not thread-safe on VS2013

The code in Standard_Type::type_instance<T>::get() distinguishes between compilers supporting and not supporting N2660. VS2013 was incorrectly considered as supporting, although the comment stated the opposite.

The fix makes VS2013 treated as not supporting N2660.

8 years ago0027233: Configuration - do not include version in SONAME for Android target
kgv [Sat, 5 Mar 2016 13:51:26 +0000 (16:51 +0300)]
0027233: Configuration - do not include version in SONAME for Android target

8 years ago0027232: Configuration - fix mblen missing building issue on Android
kgv [Sat, 5 Mar 2016 12:46:42 +0000 (15:46 +0300)]
0027232: Configuration - fix mblen missing building issue on Android

Assume UTF-8 as the only locale supported on Android.

8 years ago0027206: Inconsistent and obsolete information in persistence documentation and Relea... V7_0_0rc
abv [Fri, 4 Mar 2016 11:42:53 +0000 (14:42 +0300)]
0027206: Inconsistent and obsolete information in persistence documentation and Release Notes

Technical docs are reviewed to:
* update references to page with third-party products
* update description of persistence, handles, and RTTI according to changes in OCCT 7.0
* remove references to CDL, WOK, and WOK-generated stuff
* update the list of environment variables

8 years agoIncrementation OCCT version up to 7.0.0 rc
bugmaster [Fri, 4 Mar 2016 06:56:28 +0000 (09:56 +0300)]
Incrementation OCCT version up to 7.0.0 rc

8 years ago0027218: Add information about porting from earlier versions in update guide
ysn [Thu, 3 Mar 2016 15:37:41 +0000 (18:37 +0300)]
0027218: Add information about porting from earlier versions in update guide

Added:
- porting notes for earlier versions starting with 6.5;
- section about zoom persistent selection

8 years ago0027193: Describe building OCCT with genproj tool
abv [Thu, 3 Mar 2016 17:25:01 +0000 (20:25 +0300)]
0027193: Describe building OCCT with genproj tool

Description of building OCCT with WOK and automake scripts is removed from documentation.
Use of genproj utility is described in pages on building with MSVC, Code::Blocks, and XCode projects.

New script genconf allows starting configuration GUI explicitly; dialog is slightly revised.
Script genproj.sh is renamed to genproj; permissions for scripts are corrected for Linux.

Script env.bat does not set anymore environment required for Products.

8 years ago0026961: Recover possibility to read files in old persistence format
myn [Wed, 2 Mar 2016 20:04:30 +0000 (23:04 +0300)]
0026961: Recover possibility to read files in old persistence format

Possibility to read shapes and OCAF documents from old persistence format (Std and StdL schema) is restored.

Test cases used old persistent files on input are restored with suffix "_std"

Removing toolkit from OS package

8 years ago0026571: Visualization, TKOpenGl - write depth values within RayTracing program
duv [Mon, 29 Feb 2016 14:11:34 +0000 (17:11 +0300)]
0026571: Visualization, TKOpenGl - write depth values within RayTracing program

View-projection matrix was added to raytrace shaders (as uniform) in order to compute correct depth values for OpenGL.
For path tracing the additional depth buffer sampler was added to Display.fs program. It allows propagation of depth values from internal FBO to resulting FBO.
The old approach of mixing of OpenGL and ray-tracing graphics was kept in order to keep correct blending of transparent ray-traced objects with non-transparent OpenGL objects.

8 years ago0027216: Review the documentation before the final release.
ysn [Thu, 3 Mar 2016 10:33:48 +0000 (13:33 +0300)]
0027216: Review the documentation before the final release.

Some pre-release updates, reviewing and implementation of some adequate remarks from JMA:
- redundant chapters in IGES and STEP guides
- proofreading of recent insertions in Draw, and tests guides
- mathjax information
- data, version, addresses, system requirements in overview.md

Corrections

8 years ago0027197: Configuration - fix compilation issues when using mingw
kgv [Sat, 27 Feb 2016 23:07:27 +0000 (02:07 +0300)]
0027197: Configuration - fix compilation issues when using mingw

AIS_ColorScale, AIS_Dimension - the protected method DrawText()
has been renamed to drawText() to avoid name collisions with macros.

_MSC_VER/_WIN32 misuse has been fixed in several places.
Header <malloc.h> is now included where alloca() is used.
Draw_Window - dllimport flag has been dropped from inline methods.

TKernel - mandatory dependencies Winspool.lib and Psapi.lib
are now linked explicitly (instead of msvc-specific pragma syntax).

CMake scripts - the option -std=c++0x has been replaced by -std=gnu++0x
for mingw to allow extensions (like _wfopen() and others).
The minimum Windows version has been set to _WIN32_WINNT=0x0501.
Invalid options "-z defs" and "-lm" have been dropped for mingw.
Flag --export-all-symbols has been added to CMAKE_SHARED_LINKER_FLAGS
to workaround missing vtable symbols when using mingw.
FreeType is now linked explicitly on Windows.

Draw::Load() - "lib" suffix is now prepended on mingw as well.

Drop redundant declaration of _TINT from OSD_WNT_1.hxx.
NCollection_UtfString::FromLocale() - platform-specific code has been moved to .cxx file.
Draw_BasicCommands - fixed incorrect mingw64 version macros.

genproj, cbp - added workaround for process argument list limits on Windows.
TKSTEP linkage is failing on this platform due to too long list of files.
The list of object files to link is now stored in dedicated file which is passed to gcc.

Option "-z defs" removed from CMake linker options to avoid problems when building with different configurations of VTK on Linux

Some MinGW-specific compiler warnings (potentially uninitialized vars, use of NULL, parentheses in conditional expressions) are fixed (speculatively)

8 years ago0027198: OSD_Environment - use wide characters API on Windows
kgv [Mon, 22 Feb 2016 19:07:45 +0000 (22:07 +0300)]
0027198: OSD_Environment - use wide characters API on Windows

8 years ago0026827: Position and orientation for GD&T frames
gka [Mon, 18 Jan 2016 16:32:22 +0000 (19:32 +0300)]
0026827: Position and orientation for GD&T frames

Implementation of graphical annotations of the PMI read from STEP

8 years ago0027196: CMake - avoid setting option -EHa for compilers other than MSVC
abv [Mon, 22 Feb 2016 08:03:27 +0000 (11:03 +0300)]
0027196: CMake - avoid setting option -EHa for compilers other than MSVC

Option -EHa is now added only if MSVC is defined.

Descriptions of option -fp:precise in CMake and method OSD::SetSignal() in header file are updated.

8 years ago0027180: Visualization - improve selection logic of MeshVS_Mesh
vpa [Wed, 2 Mar 2016 17:27:42 +0000 (20:27 +0300)]
0027180: Visualization - improve selection logic of MeshVS_Mesh

MeshVS_Mesh selection logic in MeshVS_SMF_Mesh mode (entire mesh) has been optimized.
MeshVS_Mesh::ComputeSelection() now creates single sensitive entity
MeshVS_CommonSensitiveEntity (new class) instead of small sensitive entity on each element.
MeshVS_SensitiveQuad (new class) and Select3D_SensitiveTriangle are used instead of Select3D_SensitiveFace for local selection to reduce memory consumption when possible.

8 years ago0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm
jgv [Fri, 26 Feb 2016 12:20:32 +0000 (15:20 +0300)]
0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm

New method HLRBRep_HLRToShape::CompoundOfEdges with options:
- type of resulting edge
- visibility
- 3d/2d
has been added.

Minor correction of comments

8 years ago0026969: Visualization - support custom vertex attributes in GLSL program
kgv [Sat, 20 Feb 2016 10:10:41 +0000 (13:10 +0300)]
0026969: Visualization - support custom vertex attributes in GLSL program

Graphic3d_TypeOfData - added Graphic3d_TOD_FLOAT for passing single-float vertex attributes.
Graphic3d_TOA_CUSTOM - changed value to increase the range for custom vertex attributes locations (to fit into hardware limits).
Graphic3d_ShaderProgram::SetVertexAttributes() - introduced API for defining custom vertex attributes.

For compatibility with automated wrappers:
- Graphic3d_Buffer::Init() - added prototype taking NCollection_Array1<Graphic3d_Attribute> instead of C array
- Graphic3d_IndexBuffer::InitInt32() - added typed initialization method.
- Graphic3d_ShaderProgram::PushVariableVec3() and others - added typed methods to push uniform varibales.

8 years ago0027208: Show method in Message_ProgressIndicator::NewScope should not be commented out
Benjamin Bihler [Fri, 26 Feb 2016 13:07:28 +0000 (14:07 +0100)]
0027208: Show method in Message_ProgressIndicator::NewScope should not be commented out

Undone commenting out of Show method

8 years ago0026338: STL export (especially binary) needs a lot of time if selected export path...
abv [Thu, 25 Feb 2016 04:30:18 +0000 (07:30 +0300)]
0026338: STL export (especially binary) needs a lot of time if selected export path is not local

Method StlAPI_Writer::Write() is reimplemented to write triangulation directly, without conversion to StlMesh_Mesh.

New DRAW command "tessellate" is added to generate rapidly triangulation of prescribed size (on surface).

Command "tricheck" is protected to deal correctly with triangulation without UV data.

New tests added: perf de bug26338_1 and _2; bugs stlvrml bug26338

Correction of testing environment

8 years ago0024665: A sample for advanced function mechanism
bugmaster [Thu, 25 Feb 2016 14:08:20 +0000 (17:08 +0300)]
0024665: A sample for advanced function mechanism
Update for Linux platform

8 years agoCorrection misprinting
bugmaster [Sun, 21 Feb 2016 05:39:14 +0000 (08:39 +0300)]
Correction misprinting

8 years ago0027135: Incorrect result of the normal projection algorithm
aml [Thu, 11 Feb 2016 10:38:55 +0000 (13:38 +0300)]
0027135: Incorrect result of the normal projection algorithm

New check for possible local traps was added to build correct projection cache.

8 years ago0027152: Undefined symbols in library TKernel.so using clang compiler
apn [Wed, 17 Feb 2016 12:59:12 +0000 (15:59 +0300)]
0027152: Undefined symbols in library TKernel.so using clang compiler

Added ldl dependency for TKernel only (other toolkits were checked, no undefined symbols)
Added  option "-z defs" for linking on Linux
Added lm dependency for all toolkits

8 years ago0024594: Missing surfaces from STL output (second example)
oan [Fri, 19 Feb 2016 12:10:18 +0000 (15:10 +0300)]
0024594: Missing surfaces from STL output (second example)

Added test case
Small corrections of test case

8 years ago0027159: Section between two faces is lost
jgv [Mon, 15 Feb 2016 11:20:40 +0000 (14:20 +0300)]
0027159: Section between two faces is lost

Minor correction of test case

Another small correction of test case

One more correction of test case

8 years ago0027177: Review of recent additions in tests.md
ysn [Thu, 18 Feb 2016 08:56:58 +0000 (11:56 +0300)]
0027177: Review of recent additions in tests.md

Document corrected, warnings fixed.

8 years ago0025045: STEP Import fails to find all surfaces
oan [Fri, 19 Feb 2016 11:58:49 +0000 (14:58 +0300)]
0025045: STEP Import fails to find all surfaces

Added test case
Small corrections in test case

8 years ago0024593: Missing surfaces from STL output
oan [Fri, 19 Feb 2016 11:56:06 +0000 (14:56 +0300)]
0024593: Missing surfaces from STL output

Added test cases
Small corrections of test cases

8 years ago0026985: Wrong section between two faces: it has a gap
jgv [Tue, 16 Feb 2016 12:43:13 +0000 (15:43 +0300)]
0026985: Wrong section between two faces: it has a gap

8 years ago0027138: Configuration, Cmake - incorrect binaries installation path for single gener...
ibs [Fri, 5 Feb 2016 16:14:56 +0000 (19:14 +0300)]
0027138: Configuration, Cmake - incorrect binaries installation path for single generators

specify a path for toolkit shared library

8 years ago0027035: General fuse algorithm loses face
nbv [Mon, 15 Feb 2016 10:51:12 +0000 (13:51 +0300)]
0027035: General fuse algorithm loses face

The main reason of the bug is incorrect check, if the edge is seam-edge or not.
In the fix it is determined with new methods in GeomLib class.

The bug is fixed.

Creation of test case for this fix

Small correction in the code

8 years ago0024665: A sample for advanced function mechanism
vro [Wed, 10 Feb 2016 05:04:45 +0000 (08:04 +0300)]
0024665: A sample for advanced function mechanism

PRO file is added + a description of how to generate the Visual Studio projects and compile.
In addition, the sample folder is renamed to FuncDemo.

Adding 64 bit configuration to VC projects

8 years ago0026231: Visualization - Update description of selection algorithm in the user's...
vpa [Wed, 17 Feb 2016 14:57:33 +0000 (17:57 +0300)]
0026231: Visualization - Update description of selection algorithm in the user's guide

- updated description of selection mechanism in sections occt_visu_2_2, occt_visu_3_2_4 and occt_visu_3_6;
- unnecessary images were removed.

New Selection section  reviewed.

Semantic corrections

8 years ago0027104: DownCast() cannot return null for mismatched handle
abv [Mon, 25 Jan 2016 07:14:20 +0000 (10:14 +0300)]
0027104: DownCast() cannot return null for mismatched handle

Method DownCast() is made template, to be available only when argument is actually a pointer or handle to a base class.

For compatibility with existing code, method DownCast() that can be used for the same type, derived, or unrelated class (i.e. where there is no actual down casting) is still available, its use shall cause "deprecated" compiler warning.

OCCT code is updated to remove meaningless DownCast()s; a few places where DownCast() was used with argument of unrelated type are corrected.

DRAW command QAHandleCast is removed (it was useful only during redesign of handles).

8 years ago0026549: Provide move constructors and operators for basic classes
abv [Tue, 11 Aug 2015 20:01:05 +0000 (23:01 +0300)]
0026549: Provide move constructors and operators for basic classes

Move constructor and operator added for opencascade::handle<>

8 years ago0027111: Add generalized copy constructor in handle class for old compilers
abv [Sat, 6 Feb 2016 12:26:26 +0000 (15:26 +0300)]
0027111: Add generalized copy constructor in handle class for old compilers

Copy constructor and assignment operator from handle of derived type is added in handle class.
They are enabled only if macro OCC_HANDLE_NOCASTS is defined, and operators of cast of handle to reference to handle to base type are disabled in that case.

Useless type casts to handle to base type are removed in GC and GCE2d classes.
Code returning reference to handle from function is corrected to return it either by value or as reference to handle of actual type.

8 years ago0026377: Passing Handle objects as arguments to functions as non-const reference...
abv [Wed, 17 Feb 2016 14:33:18 +0000 (17:33 +0300)]
0026377: Passing Handle objects as arguments to functions as non-const reference to base type is dangerous

Operator of cast to non-const reference is declared deprecated to produce compiler warning if used (usually implicitly).

OCCT code is updated to avoid that cast, occurring when function accepting non-const reference to handle is called with handle to derived type.
For that, local variable of argument type is passed instead, and down-cast is used to get it to desired type after the call.
A few occurrences of use of uninitialized variable are corrected.

8 years ago0027118: Configuration - do not suppress deprecation warnings when using msvc
kgv [Sat, 30 Jan 2016 12:51:35 +0000 (15:51 +0300)]
0027118: Configuration - do not suppress deprecation warnings when using msvc

Patch removes option -wd4996 from VS project settings (which suppresses old deprecation warnings).
Instead, macros _CRT_SECURE_NO_WARNINGS (suppresses 444 warnings) and _CRT_NONSTDC_NO_DEPRECATE (suppresses 17 warnings) have been added.

Deprecation warning on GetVersionEx() has been suppressed locally in OSD_Host.cxx.
In STEPConstruct_AP203Context.cxx, OSD_Host is used instead of low-level system functions.
This eliminates dependency of TKSTEP on winsock32.lib on Windows.

8 years ago0027113: Coding - add macros Standard_DEPRECATED for marking deprecated functionality
kgv [Sat, 30 Jan 2016 11:54:12 +0000 (14:54 +0300)]
0027113: Coding - add macros Standard_DEPRECATED for marking deprecated functionality

Macro Standard_DEPRECATED("message") can be used in declarations to mark a method deprecated and generate compiler warning when it is used.
If OCCT_NO_DEPRECATED is defined, Standard_DEPRECATED is disabled (defined empty).

8 years ago0027107: ShapeAnalysis_Surface should use GeomAdaptor_Surface for surface evaluation
abv [Sun, 14 Feb 2016 08:16:24 +0000 (11:16 +0300)]
0027107: ShapeAnalysis_Surface should use GeomAdaptor_Surface for surface evaluation

ShapeAnalysis_Surface is improved to use adaptor for evaluation of points on a surface.
Useless field myExtSur is removed.
DE tests are amended according to induced changes (number of edges varied).

8 years ago0026384: Add explicit check for null magnitude instead of catching of exception in...
oan [Wed, 17 Feb 2016 14:17:54 +0000 (17:17 +0300)]
0026384: Add explicit check for null magnitude instead of catching of exception in BRepMesh_FastDiscretFace::control()

Check normal for null magnitude using gp::Resolution ()

8 years ago0027131: [Regression to 6.7] DistShapeShape performance loss
aml [Tue, 9 Feb 2016 12:19:25 +0000 (15:19 +0300)]
0027131: [Regression to 6.7] DistShapeShape performance loss

Lipchitz constant approximation and fixes in global optimization algorithm added to improve performance.
Test case added.

Possibility to freeze Lipchitz constant is added to improve performance.

8 years ago0027156: Doxygen warnings on overview docs
abv [Fri, 12 Feb 2016 17:14:27 +0000 (20:14 +0300)]
0027156: Doxygen warnings on overview docs

Documentation corrected to avoid Doxygen warnings

8 years ago0027162: Draw command "(2d)extrema" incorrectly represent underlying algorithm results
aml [Tue, 16 Feb 2016 12:47:38 +0000 (15:47 +0300)]
0027162: Draw command "(2d)extrema" incorrectly represent underlying algorithm results

Correct handling of infinity solutions added for Curve / Curve case.
Unused code deleted.
Test cases updated to the new behavior.

8 years ago0027172: Visualization - avoid signed integer overflow within Graphic3d_ArrayOfPrimitives
kgv [Wed, 17 Feb 2016 14:37:43 +0000 (17:37 +0300)]
0027172: Visualization - avoid signed integer overflow within Graphic3d_ArrayOfPrimitives

8 years ago0023202: BRepMesh of face fails
apn [Wed, 17 Feb 2016 10:24:44 +0000 (13:24 +0300)]
0023202: BRepMesh of face fails

Added test case bugs/mesh/bug23202

8 years ago0026692: BRepMesh hangs on the attached shape due to tessellation points produced...
oan [Mon, 15 Feb 2016 16:33:29 +0000 (19:33 +0300)]
0026692: BRepMesh hangs on the attached shape due to tessellation points produced out of surface range

BRepMesh_EdgeTessellator: do not use points out of face range and edge tolerance.

Test cases for issue CR26692

8 years ago0026941: Building on Windows with VC14 - debug info is generated for Release build
abv [Sun, 14 Feb 2016 04:33:18 +0000 (07:33 +0300)]
0026941: Building on Windows with VC14 - debug info is generated for Release build

Generation of debug info is explicitly disabled on link step in templates of Visual Studio 10+ project files used by genproj, to avoid relying on default settings of Visual Studio.

8 years ago0027086: Samples, jniviewer - avoid duplicating viewer redraws
kgv [Mon, 18 Jan 2016 09:57:23 +0000 (12:57 +0300)]
0027086: Samples, jniviewer - avoid duplicating viewer redraws

8 years ago0026939: Configuration, NCollection_UBTreeFiller - do not use _REENTRANT in a header...
kgv [Fri, 22 Jan 2016 12:55:55 +0000 (15:55 +0300)]
0026939: Configuration, NCollection_UBTreeFiller - do not use _REENTRANT in a header file

Use std::mt19937 random number generator instead of rand() in NCollection_UBTreeFiller.

boolean gdml_private ZI7 ZJ7 - TODO "bopcheck failed" is only for Linux now, checkshape faulty is unstable (issue #27052)
boolean volumemaker B6 - Added TODO (bopcheck and checkshape faulties)
boolean volumemaker C9 - Added TODO (checkprops and checkshape faulties)
boolean volumemaker D2 - Added TODO (checkshape faulty)
boolean volumemaker H4 - Added TODO (checkprops and checkshape faulties Linux only)
boolean volumemaker D5 - IMVPROVEMENT, TODOs were deleted (bopcheck and checkshape faulties)
bugs modalg_1 buc60462_2 - modified TODOs according to new behavior
boolean gdml_private ZI7 ZJ7 - unstable case, added check for surface area and TODO

samples/tcl/ANC101.tcl - amended due to changed order of edges in BOP result

8 years agoRevert "0026314: Method SetShape working not correctly."
abv [Tue, 16 Feb 2016 11:53:16 +0000 (14:53 +0300)]
Revert "0026314: Method SetShape working not correctly."

This reverts commit e2df45413ea1d506d911c6f29dacf42c80ca8a35.

8 years agoMerge between correction test case in issue 27119 and 26939
bugmaster [Fri, 12 Feb 2016 08:33:08 +0000 (11:33 +0300)]
Merge between correction test case in issue 27119 and 26939

8 years ago0027053: Compilation fails with "fatal error RC1103: invalid option, /fp:precise"
abv [Sun, 24 Jan 2016 06:28:08 +0000 (09:28 +0300)]
0027053: Compilation fails with "fatal error RC1103: invalid option, /fp:precise"

CMake script is corrected to add compiler options (except macro definitions) to CMAKE_CXX_FLAGS and CMAKE_C_FLAGS variables directly, instead of using add_definitions() command.
This eliminates failure of build by NMake due to incorrect options passed to RC compiler.

8 years ago0026260: Tcl scripts for MBB Gehause Rohteil and ANC101 to be added to Samples
ssv [Mon, 8 Feb 2016 07:43:54 +0000 (10:43 +0300)]
0026260: Tcl scripts for MBB Gehause Rohteil and ANC101 to be added to Samples

Two new sample scripts added, modeling classic shapes from used for comparing modeling systems in 1979 and again in 1983 by Computer Aided Manufacturing International (CAM-I).

8 years ago0027137: Visualization - handle shadow structures within V3d_View::Gravity()
kgv [Wed, 10 Feb 2016 13:19:20 +0000 (16:19 +0300)]
0027137: Visualization - handle shadow structures within V3d_View::Gravity()

OpenGl_StructureShadow - copy bounding box from parent structure.
Prs3d_PresentationShadow::CalculateBoundBox() - do nothing.

V3d_View::Gravity() - skip presentations with transformation persistence flags.
Use cached presentation bounding box.

8 years ago0027119: Regression: Draw command "incmesh" hangs on the attacheced face.
oan [Mon, 1 Feb 2016 14:20:37 +0000 (17:20 +0300)]
0027119: Regression: Draw command "incmesh" hangs on the attacheced face.

BRepMesh_CircleTool: extend radius of circle by quite small value in order to classify points forming inscribed triangle as lying on it. Do not use PConfusion due to false positive result leading algorithm to hanging.

Small correction in test cases bugs/mesh/bug27119

Update of test cases according to the new behavior:
bugs/moddata_1/bug22759
mesh/data/standard/M4

8 years ago0012042: Problem with standard Qt-based Import/Export sample application
apn [Tue, 9 Feb 2016 11:30:52 +0000 (14:30 +0300)]
0012042: Problem with standard Qt-based Import/Export sample application

Front and right views in OCCT CSharp/mfc/qt samples were swapped.

8 years ago0027145: Remove redundant usage of GetPercent procedure
ski [Tue, 9 Feb 2016 13:57:15 +0000 (16:57 +0300)]
0027145: Remove redundant usage of GetPercent procedure

Usage of GetPercent procedure was replaced by checkreal procedure.