16 months ago0029611: Misprint in the formula of Hessian computation in the file GeomLib_CheckCurv...
nbv [Thu, 22 Mar 2018 06:53:48 +0000]
0029611: Misprint in the formula of Hessian computation in the file GeomLib_CheckCurveOnSurface.cxx

The formula of Hessian computation has been corrected

16 months ago0029526: Test Harness command "ReadIges" does not support "read.iges.onlyvisible...
gka [Tue, 27 Feb 2018 10:50:47 +0000]
0029526: Test Harness command "ReadIges" does not support "read.iges.onlyvisible" mode

Modification Test Harness command "ReadIges" to take into account value of the parameter "read.iges.onlyvisible" was made.

16 months ago0029631: Samples: build AndroidQt sample together with OCCT on Windows platform IR-2018-03-23
nds [Fri, 23 Mar 2018 07:36:07 +0000]
0029631: Samples: build AndroidQt sample together with OCCT on Windows platform

- _WIN32 definition provides functionality for sample on Windows
- CMake procedure is changed to have Qt5_FOUND variable defined before compilation modules. Searching of Qt packages is moved into qt.cmake.

16 months ago0029627: BRepOffsetAPI_NormalProjection class changes orientation of the result
emv [Fri, 23 Mar 2018 04:50:13 +0000]
0029627: BRepOffsetAPI_NormalProjection class changes orientation of the result

The problem is fixed by the fix for the issue #0029234.

16 months ago0029369: ShapeFix_Face algorithm does not heal properly the face lying on a surface...
jgv [Mon, 11 Dec 2017 15:28:07 +0000]
0029369: ShapeFix_Face algorithm does not heal properly the face lying on a surface of revolution

Add field of class <myCheckMissingEdges> to ShapeFix_Wire to be able not to take into account possibility of missing edges.

16 months ago0029602: Visualization, TKOpenGl - Size Culling is not properly handled within Perspe...
kgv [Thu, 22 Mar 2018 10:05:06 +0000]
0029602: Visualization, TKOpenGl - Size Culling is not properly handled within Perspective projection

OpenGl_BVHTreeSelector::isTooSmall() now takes into account distance
the distance between camera Eye and object Center
within perspective projection.

16 months ago0029595: Visualization - Wrong validation of Anchor point for Radius Dimension
vsv [Tue, 20 Mar 2018 12:26:28 +0000]
0029595: Visualization - Wrong validation of Anchor point for Radius Dimension

16 months ago0027732: Visualization - AIS_ConnectedInteractive crashes on NULL handle returned...
kgv [Tue, 13 Mar 2018 14:54:11 +0000]
0027732: Visualization - AIS_ConnectedInteractive crashes on NULL handle returned by MeshVS_CommonSensitiveEntity::GetConnected()

Added NULL-check to AIS_ConnectedInteractive::ComputeSelection().
Added missing interface methods MeshVS_Mesh::AcceptDisplayMode()
and MeshVS_CommonSensitiveEntity::GetConnected().

16 months ago0029590: Coding - avoid usage of Standard_EXPORT attribute for inline methods
abv [Mon, 19 Mar 2018 07:07:06 +0000]
0029590: Coding - avoid usage of Standard_EXPORT attribute for inline methods

All occurrences of Standard_EXPORT attached to inline methods in OCCT code are eliminated.
Some unused classes and C++ files producing no code are deleted.

16 months ago0029589: Configuration - allow MFC samples to be built when OCCT is linked statically
abv [Mon, 19 Mar 2018 06:04:17 +0000]
0029589: Configuration - allow MFC samples to be built when OCCT is linked statically

CMake scripts are corrected to do perform search of libs and dlls of third-party libraries even for static builds of OCCT.
Treatment of errors in this case is relaxed: not found DLLs are reported as warnings, and not found libs as warning for static build, and continuable error for shared build.

Code of samples is corrected to allow building with OCCT linked statically.
Implementation of main application class is corrected to ensure that initialization is done after all global objects are created.
Note however that samples still fails to start for unclear reason (creation of MFC frame window fails).

16 months ago0029571: Samples: build qt samples together with OCCT
nds [Sun, 18 Mar 2018 12:34:17 +0000]
0029571: Samples: build qt samples together with OCCT

Extending CMake procedure by 'BUILD_MODULE_QtSamples' variable to switch on qt samples build.
Implementation required:
- union of occt_toolkit_tool.cmake and occt_toolkit.cmake files;
- correction of qt samples sources by adding path to Qt 'plugins' folder. It helps to avoid definition of additional variable (QT_QPA_PLATFORM_PLUGIN_PATH) when staring sample.bat for qt samples;
- executable processing is extended in cmake procedure by providing 'EXECUTABLE_PROJECT' variable. Now we need not specify custom processing for DRAWEXE in occt_toolkit.cmake

16 months ago0029580: Regression: invalid result of BOP Fuse
emv [Thu, 15 Mar 2018 14:02:46 +0000]
0029580: Regression: invalid result of BOP Fuse

Boolean Operation - avoid creation of INTERNAL solid from unclassified faces in Solid Builder algorithm.
Instead warn the user that some of the faces have been unclassified and not used for solids creation.

Adjustment of the test cases.
Test cases for the issue.

16 months ago0028090: Configuration - DRAWHOME environment variable missing in CMake
apn [Thu, 15 Mar 2018 09:12:10 +0000]
0028090: Configuration - DRAWHOME environment variable missing in CMake

Replace variable DRAWHOME by CSF_OCCTResourcePath for successfully running DFBrowse command in Draw launched from Visual Studio.
Added missed icons of folders, attributes and named shapes used in DFOpenImage command in src\DrawResources\dftree.tcl.

17 months ago0022651: Impossible to build OCC as static library due to using Standard_EXPORT inste...
abv [Thu, 15 Mar 2018 10:07:48 +0000]
0022651: Impossible to build OCC as static library due to using Standard_EXPORT instead of Standard_API

All library-specific macros for defining export / import properties of symbols on Windows (like Standard_API, __Draw_API, _math_API etc.) are eliminated.
Common macro Standard_EXPORT is used in all places where it is necessary.

New macro OCCT_STATIC_BUILD is defined for disabling Standard_EXPORT, to be used instead of HAVE_NO_DLL, though the latter is still supported as well (for compatibility).

To allow building OCCT in static mode on Windows after these changes:
- Files OSD_WNT_1.hxx and OSD_WNT_BREAK.hxx are removed; useful declarations are moved to OSD_WNT.hxx
- In the class IVtkVTK_ShapeData, static fields ARRNAME_MESH_TYPES and ARRNAME_SUBSHAPE_IDS are converted to static inline functions
- Global array ChoixRef defined in IntImp_ComputeTangence.cxx is converted to static function returning element of the array by index
- Unused class Quantity_Convert is removed (it had static field accessed by inline method)
- Struct Approx_Data defined in the same way in BRepApprox_Approx.hxx and GeomInt_WLApprox.hxx is made private member of these classes to avoid name clash
- Some C++ files producing no object code are removed
- In NCollection_EBTree.hxx and StdLPersistent_Collectio.hxx, definition of template virtual method is moved to class definition to avoid MSVC linker warnings on unused symbols

17 months ago0029582: Coding Rules, Bnd_Range - inconsistent methods pair GetMin()/GetMAX() IR-2018-03-16 IR-2018-03-16-GLES TEST-DISTR
kgv [Thu, 15 Mar 2018 19:38:19 +0000]
0029582: Coding Rules, Bnd_Range - inconsistent methods pair GetMin()/GetMAX()

Cosmetics - removed redundant semicolons.
Method ::GetMAX() has been renamed to ::GetMax().
Added method ::Add() taking another Bnd_Range as argument.
Added methods ::IsOut() mimicing a Bnd_Box interface.
Methods ::Shift() and ::Shifted() no more modify Void range.

17 months ago0029576: Coding Rules - remove unused declarations from package Aspect
kgv [Wed, 14 Mar 2018 18:51:11 +0000]
0029576: Coding Rules - remove unused declarations from package Aspect

The following unused declarations have been removed:
  Aspect_TypeOfPrimitive, Aspect_TypeOfLayer, Aspect_TypeOfEdge,
  Aspect_TypeOfDrawMode, Aspect_TypeOfConstraint,
  Aspect_DriverDefinitionError, Aspect_BadAccess.

17 months ago0029531: Exception on Redo
mpv [Mon, 5 Mar 2018 08:11:52 +0000]
0029531: Exception on Redo

17 months ago0029310: Coding - multiple compiler warnings in Inspectors
nds [Sun, 4 Mar 2018 16:10:56 +0000]
0029310: Coding - multiple compiler warnings in Inspectors

1. Added specific header files to disable and restore compiler warnings: Standard_WarningsDisable.hxx, Standard_WarningsRestore.hxx.
   (Currently only MSVC compiler is handled.)
2. Inspector: compiler warnings are disabled for all includes of Qt headers.
3. Inspector: minor code correction to avoid warning due to use of floating point values in integer calculations.

17 months ago0029140: Samples - Viewer is not updated in MFC Modeling and Viewer3D samples
inv [Thu, 15 Mar 2018 15:00:29 +0000]
0029140: Samples - Viewer is not updated in MFC Modeling and Viewer3D samples

OCC_3dBaseDoc::OnUpdateObjectDisplayall() - allow re-displaying hidden presentation of non-Shape types.
OCC_3dBaseDoc::OnObjectErase() - removed redundant call AIS_InteractiveContext::ClearSelected().

CModelingDoc::OnFuse(),::OnCommon(),::OnExplorer() - removed redundant
viewer updates and add missing ones.

17 months ago0029412: Huge Memory leak since I upgraded to OC 6.9.0
abv [Thu, 15 Mar 2018 07:39:55 +0000]
0029412: Huge Memory leak since I upgraded to OC 6.9.0

Added non-regression test bugs vis bug29412

17 months ago0029266: CMake install does not copy pdb files in Debug mode due to the changes in...
apn [Wed, 29 Nov 2017 12:46:54 +0000]
0029266: CMake install does not copy pdb files in Debug mode due to the changes in 0028287

OCCT_INSTALL_BIN_LETTER is used only on Windows (isn't depended on type of generator) because bind/libd/bini/libi folders are not used on Linux (only bin and lib)

17 months ago0029560: Jenkins - Control of license statements and non-ascii characters in integrat...
bugmaster [Tue, 13 Mar 2018 15:32:32 +0000]
0029560: Jenkins - Control of license statements and non-ascii characters in integrated code

Removing non-ascii characters

17 months ago0029535: Modeling Algorithms - BRepExtrema_DistShapeShape returns only one solution...
ifv [Fri, 2 Mar 2018 13:59:08 +0000]
0029535: Modeling Algorithms - BRepExtrema_DistShapeShape returns only one solution but the wires have two intersections

The subdivision of long curve is added in algorithm GenExtCC, if length of curves are too different.
Test case added

17 months ago0029515: Foundation Classes, OSD - 'Spawn' contains function that isn't available...
abv [Wed, 14 Mar 2018 08:02:10 +0000]
0029515: Foundation Classes, OSD - 'Spawn' contains function that isn't available on iOS

Method OSD_Process::Spawn() is removed as useless (not used across OCCT or products).
Note that on Linux, macOS, and Windows standard C function "system()" can be used directly instead, while iOS apparently does not support spawning separate processes at all.

17 months ago0027070: Segfault when transferring HLR-created shapes via STEPControl_Writer
abv [Thu, 8 Mar 2018 06:56:01 +0000]
0027070: Segfault when transferring HLR-created shapes via STEPControl_Writer

Added protection against null shape on writing: status IFSelect_RetVoid will be returned in such case (instead of access violation)

17 months ago0029129: Incomplete support of MSVS2017
apn [Mon, 12 Mar 2018 13:19:21 +0000]
0029129: Incomplete support of MSVS2017

MSVC_VERSION is used instead of MSVC10, MSVC11, MSVC12, etc.

17 months ago0029559: Samples - wrong copyright statement in FuncDemo
apn [Tue, 13 Mar 2018 15:16:39 +0000]
0029559: Samples - wrong copyright statement in FuncDemo

Update FuncDemo sample according to new elasticnodes example in Qt.

17 months ago0029470: Samples - eliminate references to deprecated Local Context from MFC sample
kgv [Sun, 11 Mar 2018 10:21:01 +0000]
0029470: Samples - eliminate references to deprecated Local Context from MFC sample

AIS_InteractiveContext::MoveTo(), ::Select(), ::ShiftSelect() now throw
an exception on invalid V3d_View argument instead of returning empty results.
AIS_InteractiveContext::DetectedShape() and ::BeginImmediateDraw() now can
be called without opened Local Context.

Draw Harness - removed unused commands vsetam, vunsetam.
Removed unused methods ViewerTest::StandardModeActivation(), ::PickObject(), PickObjects().
Interactive input of Selection modes 0..7 now redirects to vselmode
instead of removed ViewerTest::StandardModeActivation().

17 months ago0029481: Implementation of the Feature Removal algorithm
emv [Tue, 6 Feb 2018 05:48:27 +0000]
0029481: Implementation of the Feature Removal algorithm

Implementation of the 3D model De-featuring algorithm intended for the removal of the unwanted parts (or features) from the model consisting of solids. The features can be the holes, protrusions, gaps, chamfers, fillets etc.
The algorithm removes all possible requested features from the shape and builds the new shape as a result. The input model is not modified.

On the API level the algorithm is implemented in the class *BRepAlgoAPI_Defeaturing*. The actual features removal is performed by the low-level algorithm *BOPAlgo_RemoveFeatures*.

Documentation of the new classes.
Implementation of the DRAW commands for working with new algorithm.
Test cases for the new functionality.

Changes in other algorithms used by De-featuring algorithm:
- Provide history support for the solids in *ShapeUpgrade_UnifySameDomain* algorithm;
- Implementation of the mechanism to merge History of any Algorithm with standard history methods such as IsDeleted(), Modified() and Generated() into *BRepTools_History*.

17 months ago0026127: Visualization - Default camera is not copied in copy constructor of V3d_View
kgv [Thu, 8 Mar 2018 10:52:01 +0000]
0026127: Visualization - Default camera is not copied in copy constructor of V3d_View

V3d_View copy constructor now copies DefaultCamera() from specified View.
Draw Harness command vinit - added new argument -cloneActive.

17 months ago0028988: Visualization - AIS_InteractiveContext::SetLocation() does not reset locatio...
kgv [Wed, 7 Mar 2018 18:22:16 +0000]
0028988: Visualization - AIS_InteractiveContext::SetLocation() does not reset location properly

SelectMgr_SelectionManager - removed broken HasTransformation() checks.

17 months ago0029545: Documentation, visualization.md - article incorrectly specifies that AIS_Con...
kgv [Mon, 5 Mar 2018 13:59:18 +0000]
0029545: Documentation, visualization.md - article incorrectly specifies that AIS_ConnectedInteractive can define own Material

17 months ago0029356: Modeling Algorithms - GCPnts_TangentialDeflection hangs on specific curve
nds [Mon, 29 Jan 2018 08:19:36 +0000]
0029356: Modeling Algorithms - GCPnts_TangentialDeflection hangs on specific curve

While UV Iso parameters are obtained in StdPrs_Isolines, UV limits should be applied only if face bounds has infinite values.
In the issue case, the UV values are greater than UVLimits and not infinite. This fix makes possible to have correct Iso lines in presentation without modification of UV limits beforehead.

17 months ago0029544: Regression vs 7.2.0: ShapeUpgrade_UnifySameDomain fails to merge linear...
emv [Mon, 5 Mar 2018 12:55:16 +0000]
0029544: Regression vs 7.2.0: ShapeUpgrade_UnifySameDomain fails to merge linear edges

When measuring the deviation of the end of the added edge from the resulting edge take the point on the curve, not from the vertex.

Test cases for the issue.

17 months ago0029542: Coding - CMake compiler warnings in Inspector
nds [Sun, 4 Mar 2018 07:33:10 +0000]
0029542: Coding - CMake compiler warnings in Inspector

Avoid using CMAKE_AUTOMOC, collect header files with Q_OBJECT iterating through a project files.

17 months ago0029547: –°onfiguration, upgrade.dat - include deprecated enums into section [rename]
kgv [Tue, 6 Mar 2018 09:42:12 +0000]
0029547: –°onfiguration, upgrade.dat - include deprecated enums into section [rename]

Added V3d_TypeOfShadingModel->Graphic3d_TypeOfShadingModel and
V3d_TypeOfLight->Graphic3d_TypeOfLightSource renames.

17 months ago0029529: Volume Rendering - crash on re-displaying the object IR-2018-03-02 IR-2018-03-02-GLES TEST-DISTR1 TEST-DISTR2 TEST-DISTR3
kgv [Thu, 1 Mar 2018 17:10:46 +0000]
0029529: Volume Rendering - crash on re-displaying the object

Added missing getters: OpenGl_TextureBufferArb::TextureFormat() and OpenGl_ShaderManager::OitState().

17 months ago0029517: Visualization - introduce AlphaMode property defining alpha value handling...
kgv [Tue, 20 Feb 2018 13:32:52 +0000]
0029517: Visualization - introduce AlphaMode property defining alpha value handling options

17 months ago0029524: Modeling Algorithms - access violation in HLRBRep_PolyAlgo while computing...
kgv [Thu, 22 Feb 2018 15:42:15 +0000]
0029524: Modeling Algorithms - access violation in HLRBRep_PolyAlgo while computing HLR for triangulation-only surface

17 months ago0029519: Visualization, TKOpenGl - fallback to Graphic3d_TOSM_FACET from Gouraud...
kgv [Tue, 20 Feb 2018 05:00:01 +0000]
0029519: Visualization, TKOpenGl - fallback to Graphic3d_TOSM_FACET from Gouraud/Phong when nodal normals are undefined

17 months ago0029097: Visualization - allow picking Graphic3d_TypeOfShadingModel per-object
anv [Thu, 8 Feb 2018 15:41:09 +0000]
0029097: Visualization - allow picking Graphic3d_TypeOfShadingModel per-object

Graphic3d_AspectFillArea3d has been extended by new property ::ShadingModel(),
which is set to Graphic3d_TOSM_DEFAULT by default.
The new API allows assigning Shading Model to specific Primitive Array groups
instead of entire Viewer, which was the only possibility before.

Graphic3d_TypeOfShadingModel has been extended with Graphic3d_TOSM_DEFAULT value
meaining that Shading Model defined as default for the Viewer should be used.
Graphic3d_TOSM_NONE has been renamed to Graphic3d_TOSM_UNLIT.
Documentation of Shading Models has been improved by more details.

V3d_TypeOfShadingModel enumeration has been merged into Graphic3d_TypeOfShadingModel
avoiding duplicated definitions and confusion.
Old values has been left for compatibility with old code and can be marked deprecated in future.

Draw Harness command vaspects has been extended by new argument -setShadingModel
for testing Shading Models assigned to entire objects.

OpenGl_SetOfShaderPrograms now holds an array of Shading Models.
OpenGl_ShaderManager interface has been modified and now requires enumeration as input
in several places where Boolean flags have been used previously
(methods ::BindFaceProgram(), ::BindLineProgram(), ::BindMarkerProgram()).

OpenGl_Workspace now defines default (undefined) OpenGl_AspectFace as Graphic3d_TOSM_UNLIT
to simplify indication of primitive groups with undefined Fill Area aspects,
and so that Graphic3d_TOSM_UNLIT set as default Shading Model will not make artifacts on Lines and Markers.

AIS_Manipulator::Axis::Compute() - added missing initialization of Fill Area aspects (leading to undefined behavior).

17 months ago0029514: Configuration, CMake - OpenGL ES should be available for Linux
apn [Mon, 19 Feb 2018 09:24:55 +0000]
0029514: Configuration, CMake - OpenGL ES should be available for Linux

Allow optionally building OCCT with GLESv2 and EGL on Linux

17 months ago0029492: Coding Rules. NCollection_IndexedDataMap - add missing documentation to...
kgv [Thu, 8 Feb 2018 13:16:45 +0000]
0029492: Coding Rules. NCollection_IndexedDataMap - add missing documentation to method ::Add()

18 months ago0029513: Replace OCC logo in user guides IR-2018-02-16
apn [Fri, 16 Feb 2018 13:08:31 +0000]
0029513: Replace OCC logo in user guides

Replace OCC logo by occ_logo.png in higher quality

18 months ago0027747: Incomplete section curves between faces
apn [Fri, 16 Feb 2018 11:54:14 +0000]
0027747: Incomplete section curves between faces

Added test case bugs/modalg_7/bug27747

18 months ago0029510: IntWalk_PWalking:: PutToBoundary(...) method results in appearing several...
nbv [Thu, 15 Feb 2018 11:38:59 +0000]
0029510: IntWalk_PWalking:: PutToBoundary(...) method results in appearing several coincident points in Walking-line

Places have been detected where coincident points are created. The problem has been fixed.

18 months ago0029494: Intersection line between two parametric surfaces is restricted incorrectly...
nbv [Thu, 8 Feb 2018 12:59:41 +0000]
0029494: Intersection line between two parametric surfaces is restricted incorrectly if it matches the surface boundary

Creation of IntPatch_Points is forbidden in tangent-zones exceptionally domain boundaries of intersected surface.

18 months ago0029496: No intersection curve between faces if starting points are given
nbv [Thu, 8 Feb 2018 13:57:36 +0000]
0029496: No intersection curve between faces if starting points are given

Now, bounded IntPatch_Points are found in case when starting points are used in intersection algorithm. Before the fix, these points were not looked for (even).

18 months ago0029509: Visualization, TKOpenGl - Weighted OIT + MSAA shader compilation errors
kgv [Wed, 14 Feb 2018 19:58:34 +0000]
0029509: Visualization, TKOpenGl - Weighted OIT + MSAA shader compilation errors

Fix implicit cast ivec2->vec2 and specify GLSL version to "320 es" on appropriate devices.

18 months ago0029508: Visualization, TKOpenGl - visual artifacts on Adreno 305/308
kgv [Wed, 14 Feb 2018 17:18:39 +0000]
0029508: Visualization, TKOpenGl - visual artifacts on Adreno 305/308

OpenGl_ShaderManager now:
- prefers GLSL ES 100 over GLSL ES 300 on devices reporting OpenGL ES 3.0;
- prefers GLSL ES 300 on devices reporting OpenGL ES 3.1+.
to workaround known buggy implementations of OpenGL ES 3.0 drivers.

18 months ago0029507: Visualization, TKOpenGl - uninitialized class field OpenGl_FrameBuffer:...
kgv [Wed, 14 Feb 2018 13:10:48 +0000]
0029507: Visualization, TKOpenGl - uninitialized class field OpenGl_FrameBuffer::myIsOwnDepth

18 months ago0029503: Visualization, TKOpenGl - fix access violation due to misprint in OpenGl_Asp...
kgv [Tue, 13 Feb 2018 21:07:48 +0000]
0029503: Visualization, TKOpenGl - fix access violation due to misprint in OpenGl_AspectMarker

Misprint mySprite->mySpriteA has been corrected.

18 months ago0029337: Visualization, TKOpenGl - visual artifacts on Intel Broadwell GPU
apl [Mon, 27 Nov 2017 12:16:21 +0000]
0029337: Visualization, TKOpenGl - visual artifacts on Intel Broadwell GPU

Enable multiple draw buffers in shader program only if its required by specific application.

occSetFragColor() - a new GLSL function has been introduced
as an alternative to setting occFragColor/occFragCoverage variables.

18 months ago0029502: Improve performance of the ShapeUpgrade_UnifySameDomain::UnifyEdges() method
emv [Tue, 13 Feb 2018 12:01:39 +0000]
0029502: Improve performance of the ShapeUpgrade_UnifySameDomain::UnifyEdges() method

Avoid repeated merging of the same chains of edges by processing all edges at once.

Test cases for the issue.

18 months ago0029500: Visualization - AIS_Point dynamic highlighting is not drawn on RedrawImmediate
dipts [Sat, 10 Feb 2018 23:31:43 +0000]
0029500: Visualization - AIS_Point dynamic highlighting is not drawn on RedrawImmediate

ZLayer for Dynamic highlighting of AIS_Point has been set to Graphic3d_ZLayerId_Top
and of Selected highlighting to Graphic3d_ZLayerId_UNKNOWN,
to follow the behavior of normal AIS object.

18 months ago0029395: Visualization, V3d_View - Grid disappears forever after enabling RayTracing
dipts [Mon, 5 Feb 2018 21:11:42 +0000]
0029395: Visualization, V3d_View - Grid disappears forever after enabling RayTracing

Custom Graphic3d_Structure implementation has been added to V3d_RectangularGrid and V3d_CircularGrid to trigger recompute in case of device lost.
Primitive arrays are no more (re)computed while grid is not actually displayed.

18 months ago0029491: Visualization, AIS_Shape - filter unsupported Display Modes within ::AcceptD... IR-2018-02-09
kgv [Thu, 8 Feb 2018 06:30:39 +0000]
0029491: Visualization, AIS_Shape - filter unsupported Display Modes within ::AcceptDisplayMode()

AIS_Shape::AcceptDisplayMode() now accepts only modes 0,1 and 2.
AIS_ColoredShape::Compute() no more computes presentation for unknown display mode.

18 months ago0029488: Regression: boolean operation " general fuse" creates solid containing 5...
emv [Wed, 7 Feb 2018 11:31:43 +0000]
0029488: Regression: boolean operation " general fuse" creates solid containing 5 not connected shells lying on the one level.

Boolean Operations - when checking two faces with the same bounds on Same Domain, take into account possible deviation of the edges from the faces surfaces.

Test cases for the issue.

18 months ago0029473: DRAW command "splitshape" produces invalid result on the cylindrical face.
gka [Fri, 2 Feb 2018 09:32:46 +0000]
0029473: DRAW command "splitshape" produces invalid result on the cylindrical face.

Added taking into account distance between edges in the UV space for periodical surfaces in the LocOpe_SplitShape.cxx method ChoixUV

18 months ago0029484: Avoid inheritance of the BRepAlgoAPI_Check from BRepBuilderAPI_MakeShape
emv [Mon, 5 Feb 2018 12:10:32 +0000]
0029484: Avoid inheritance of the BRepAlgoAPI_Check from BRepBuilderAPI_MakeShape

Inherit BRepAlgoAPI_Check class from BOPAlgo_Options instead of BRepAlgoAPI_Algo, as the latter is too excessive for checking purposes.

Implementation of the Draw command "bopapicheck" for testing the BRepAlgoAPI_Check algorithm.

18 months ago0028886: infinite loop at intersecting two faces / surfaces
nbv [Mon, 11 Dec 2017 14:04:01 +0000]
0028886: infinite loop at intersecting two faces / surfaces

The reason of constantly increasing/decreasing steps has been eliminated for the problem case.

18 months ago0029477: Visualization, TKOpenGl - MSAA FBO initialization failure on OpenGL ES 3... IR-2018-02-02
kgv [Fri, 2 Feb 2018 17:14:49 +0000]
0029477: Visualization, TKOpenGl - MSAA FBO initialization failure on OpenGL ES 3.2 device

OpenGl_View::myFboColorFormat now initialized using sized texture format GL_RGBA8
on mobile platforms (as in case of desktop platform).

18 months ago0029465: Regression relation to 691 version: Extrema_ExtCC returns IsParallel equal...
emv [Thu, 1 Feb 2018 10:10:16 +0000]
0029465: Regression relation to 691 version: Extrema_ExtCC returns IsParallel equal to true for not parallel curves

Strengthening of the criteria of the parallel status of the curves by additional checking if the ends of the curves do not diverge.
Test cases for the issue.

18 months ago0029474: Visualization, TKOpenGl - GLSL compilation errors on buggy OpenGL ES driver...
kgv [Fri, 2 Feb 2018 13:21:47 +0000]
0029474: Visualization, TKOpenGl - GLSL compilation errors on buggy OpenGL ES driver for PowerVR SGX 544MP

OpenGl_ShaderProgram::Initialize() now defines THE_MAX_LIGHTS/THE_MAX_CLIP_PLANES
to zeros to workaround issues with some buggy OpenGL drivers.

18 months ago0028599: Replacement of old Boolean operations with new ones in BRepProj_Projection...
emv [Tue, 26 Dec 2017 11:28:27 +0000]
0028599: Replacement of old Boolean operations with new ones in BRepProj_Projection algorithm

The usage of *BRepAlgo_Section* has been replaced with the usage of *BRepAlgoAPI_Section* in *BRepProj_Projection* algorithm.

The TODO statements have been removed from the failing test case in the "prj" grid as they are working correctly now.

The following changes have been made to improve the performance *BRepAlgoAPI_Section*:
1. Revision of the *IntPolyh_Intersection* class to avoid repeated calculation of the deflection of the same triangulation.
2. Small revision of the Edge/Face intersection algorithm to perform Extrema computation on the whole intersection range of the edge instead of discrete ranges.
3. Implementation of the extrema computation for the Circle and Sphere.
4. Correct computation of the parameter of the point on the Circle.

18 months ago0029069: Samples - handle UNICODE filenames within C++/CLI CSharp sample
kgv [Mon, 29 Jan 2018 08:05:20 +0000]
0029069: Samples - handle UNICODE filenames within C++/CLI CSharp sample

18 months ago0029463: Regression relation to 691 version: Method BndBox::IsOut() returns true...
msv [Tue, 30 Jan 2018 13:03:06 +0000]
0029463: Regression relation to 691 version: Method BndBox::IsOut() returns true for point lying on the planar face

Correct the method BRepBndLib::Add so that to enlarge the bounding box on the tolerance of edges which curves participate in calculation of the box.

18 months ago0028176: Draw Harness - "reshape" command usage is not properly documented
aml [Sat, 27 Jan 2018 08:20:27 +0000]
0028176: Draw Harness - "reshape" command usage is not properly documented

Help message is corrected for "reshape" command. Command implementation is corrected according OCCT coding rules.

18 months ago0029447: The constructor of Message_PrinterOStream mixes up cout and cerr
abv [Sun, 28 Jan 2018 16:49:43 +0000]
0029447: The constructor of Message_PrinterOStream mixes up cout and cerr

Use of cerr or cout is corrected in Message_PrinterOStream constructor

18 months ago0029453: Draw Harness - unclear syntax of "add" command
aml [Fri, 26 Jan 2018 06:35:19 +0000]
0029453: Draw Harness - unclear syntax of "add" command

Help message is corrected for "add" command.

18 months ago0029399: Optimize reading of floating point values from text strings IR-2018-01-26
abv [Sun, 24 Dec 2017 06:44:04 +0000]
0029399: Optimize reading of floating point values from text strings

Function Strtod() is reimplemented using open source (MIT-style license) code by David M. Gay instead of strtod() provided by standard run-time library. This improves its performance by 3-10 times.

Functions Atof(), Strtod(), Printf(), Sprintf(), Fprintf() are declared as extern "C" to be usable from C programs.

Strtod() is used in Interface_FileReaderData::Fastof() and in RWStl_Reader to accelerate their work.

DRAW command QATestAtof and test perf fclasses strtod are added to check correctness and performance of Strtod().
Test perf draw restore is added to monitor performance of reading BREP files.

Minor off-topic corrections:
- method Standard_GUID::Assign (const Standard_UUID&) is implemented (was empty);
- Precision.hxx is included in BRepMesh_Vertex.hxx that uses it.

18 months ago0029399: Optimize reading of floating point values from text strings -- base dtoa.c
abv [Wed, 10 Jan 2018 18:17:35 +0000]
0029399: Optimize reading of floating point values from text strings -- base dtoa.c

Fast implementation of strtod downloaded from www.netlib.org/fp/dtoa.c (base version) is integrated as Standard_Strtod.cxx.

18 months ago0029448: The method Extrema_FuncExtCS::GetStateNumber mixes up parameter on curve...
msv [Thu, 25 Jan 2018 09:00:46 +0000]
0029448: The method Extrema_FuncExtCS::GetStateNumber mixes up parameter on curve with parameter U on surface

The code has been corrected to eliminate the mess.

18 months ago0028102: Problem cutting a plate with several holes (670)
nbv [Fri, 19 Jan 2018 15:07:06 +0000]
0028102: Problem cutting a plate with several holes (670)

Algorithm of processing cases when point of splitting Walking-line is near to the boundary of the intersection domain but does not match this boundary has been improved.

18 months ago0029443: It is not possible to store an ExtStringArray Ocaf attribute to any previous...
vro [Tue, 23 Jan 2018 11:06:18 +0000]
0029443: It is not possible to store an ExtStringArray Ocaf attribute to any previous version in XML file format

18 months ago0029436: Data Exchange - Extend Expand compounds functionality.
ika [Fri, 19 Jan 2018 10:36:30 +0000]
0029436: Data Exchange - Extend Expand compounds functionality.

Extend permissions for expand in ShapeTool
Fix processing of subshapes
Fix misprints
Add test cases

18 months ago0028385: Improve drawing isolines (DBRep_IsoBuilder algorithm)
emv [Mon, 27 Nov 2017 12:52:55 +0000]
0028385: Improve drawing isolines (DBRep_IsoBuilder algorithm)

1. When computing the iso-lines for the face (*DBRep_IsoBuilder*) prepare the Hatching algorithm with the following elements:
a. Trimmed p-curves of edges. The trimming parameters are computed by intersection with p-curves of the neighboring edges. The trimming will be performed only if the intersection point is covered by the tolerance of common vertex.
b. 2D segments connecting the p-curves of the neighboring edges. These segments will close the 2D gaps, which are closed in 3D by the tolerance of vertices shared between edges. This will allow trimming correctly the iso-lines passing through such gaps.

2. Implementation of the additional Init() method for WireExplorer algorithm taking UV bounds of the face to avoid their repeated computation when work working with a face having multiple wires.

3. Test cases for the issue.

19 months ago0029430: [Regression] Curve evaluation at boundary point. IR-2018-01-19
nbv [Tue, 16 Jan 2018 13:03:01 +0000]
0029430: [Regression] Curve evaluation at boundary point.

Before the fix, BRepAdaptor_CompCurve considered the input wire to be periodic with period LastParameter()-FirstParameter().
Now, method IsPeriodic will always return FALSE because it is impossible to obtain correspondence between the members of BRepAdaptor_CompCurve class and its periodicity status.
New behavior has been documented in upgrade-guide.

19 months ago0029368: Incorrect intersection state of the intersection point of two 2d curves
msv [Mon, 11 Dec 2017 15:00:19 +0000]
0029368: Incorrect intersection state of the intersection point of two 2d curves

In the algorithm math_FunctionRoots, improve the case when it is needed to find the extremum of the function. Earlier, to solve this task the method of gold section was used. With the patch, firstly the algorithm tries to find zero value of the derivative function. In most cases it gives precise result. Secondly, the algorithm tries to find zero value of the function using the old approach. The algorithm chooses the best solution among two computed by different methods.

In the method PutStickPavesOnCurve of BOPAlgo_PaveFiller, forbid putting a vertex to the end of the curve if this end already has a vertex assigned to it. This allows getting rid of unwanted colliding of vertices.

In the method UpdatePaveBlocks of BOPAlgo_PaveFiller, make the check for micro edges more precise.

New category of tests "lowalgos" has been added. Tests for low level algorithms are to be put there. "2dinter" is a new group of tests in this category.

Introduction of the new key for "2dintersect" command, allowing printing the intersection state for each point.
It has the following syntax now:
"2dintersect curve1 [curve2] [-tol tol] [-state]"
-tol - allows changing the intersection tolerance (default value is 1.e-3);
-state - allows printing the intersection state for each point.

Correct the test case bugs/modalg_7/bug28274 to make proper checks of the result.

19 months ago0029385: OCAF - TDataStd_IntPackedMap lacks interface to set map as TColStd_PackedMap...
szy [Thu, 28 Dec 2017 13:53:41 +0000]
0029385: OCAF - TDataStd_IntPackedMap lacks interface to set map as TColStd_PackedMapOfInteger

Added method ChangeMap (const TColStd_PackedMapOfInteger& theMap).

19 months ago0029422: OCAF, old persistence - wrong implementation of writing a reference IR-2018-01-12
abv [Thu, 11 Jan 2018 20:23:09 +0000]
0029422: OCAF, old persistence - wrong implementation of writing a reference

19 months ago0028211: Modeling Algorithms - Boolean fuse operation produces incorrect result
msv [Fri, 29 Dec 2017 14:44:42 +0000]
0028211: Modeling Algorithms - Boolean fuse operation produces incorrect result

Correct procedure of initialization of BRepTopAdaptor_FClass2d and IntTools_FClass2d classifiers so as to produce more tight polygon in the case of self-intersections on very thin faces.

The idea is concluded in checking the condition:
defl < 2 * S / P, where S - is the surface area computed on produced polygon, P - its perimeter, defl - deflection computed on it.
If the condition is not true the polygon is discretized again using QuasiUniformDeflection tool.

19 months ago0029419: Make V3d_Viewer::PrivilegedPlane() return const reference rather than a...
kgv [Fri, 12 Jan 2018 07:36:18 +0000]
0029419: Make V3d_Viewer::PrivilegedPlane() return const reference rather than a temp object

19 months ago0028681: UnifySameDomain distorts face boundary when merges a chain of small linear...
isn [Mon, 11 Sep 2017 13:53:31 +0000]
0028681: UnifySameDomain distorts face boundary when merges a chain of small linear edges

In case of sequence of edges based on lines (which are going to be unified into one line-segment), take into account a linear tolerance  value.
Get rid of regressions.
Updates of USD-tests.

19 months ago0029409: Configuration, macOS - "Appkit" is spelled in CMake scripts using wrong...
abv [Tue, 2 Jan 2018 11:03:16 +0000]
0029409: Configuration, macOS - "Appkit" is spelled in CMake scripts using wrong case for "K"

Spelling error is corrected in name of AppKit library in CMake and genproj scripts for macOS

19 months ago0028499: Checkshape incorrectly reports BRepCheck_NotClosed when gap is covered by... IR-2017-12-29
ifv [Fri, 15 Dec 2017 07:23:29 +0000]
0028499: Checkshape incorrectly reports BRepCheck_NotClosed when gap is covered by vertex tolerance

Calculation of 2d tolerance is improved

19 months ago0029402: In OCCT7.2.1-dev the names written into a FSD_File are associated with the...
szy [Wed, 27 Dec 2017 14:28:54 +0000]
0029402: In OCCT7.2.1-dev the names written into a FSD_File are associated with the wrong shapes.

The issue of incorrect Roots indexing is fixed by changing DataMap to IndexedDataMap.
Draw command fsdread was improved to allow restoring of shapes with kept names.

19 months ago0029403: Data Exchange - subshapes names are not imported from step
ika [Tue, 26 Dec 2017 10:46:08 +0000]
0029403: Data Exchange - subshapes names are not imported from step

Fix processing of subshape names in STEP in reading and writing.
Replace creating subshapes in Document as tree (invalid) with plain subshapes structure.
Update test cases.

19 months ago0029358: Unifysamedomain is unable to merge faces with the same underlying surface
msv [Tue, 26 Dec 2017 09:14:32 +0000]
0029358: Unifysamedomain is unable to merge faces with the same underlying surface

The documentation has been updated to avoid misunderstanding of algorithm behavior.

19 months ago0029387: Incorrect result of cut a face with several shapes
emv [Thu, 21 Dec 2017 14:24:28 +0000]
0029387: Incorrect result of cut a face with several shapes

Remove section edges having no valid range.
Test case for the issue.

19 months ago0029371: The problem of the attributes constructor call
szy [Wed, 20 Dec 2017 09:20:29 +0000]
0029371: The problem of the attributes constructor call

Default Guid is assigned in constructor.
Add test case: tests\bugs\caf\bug29371.

19 months ago0029391: Invalid import of TrimmedSurface
skl [Thu, 21 Dec 2017 08:15:10 +0000]
0029391: Invalid import of TrimmedSurface

Fix and test for bug 29391.

19 months ago0029380: Delete "checknbshapes" from bugs/modalg_6/bug27341* test cases
msv [Mon, 25 Dec 2017 10:03:00 +0000]
0029380: Delete "checknbshapes" from bugs/modalg_6/bug27341* test cases

19 months ago0029400: Fuse of two edges creates self-interfered shape
emv [Mon, 25 Dec 2017 08:47:53 +0000]
0029400: Fuse of two edges creates self-interfered shape

Avoid creation of the edges with too small valid range (not allowing to split the edge) and interfering vertices.
Test case for the issue.

19 months ago0029396: Configuration, Cmake: restore 3rd-party libraries into INTERFACE_LINK_LIBRAR... IR-2017-12-22
ski [Thu, 21 Dec 2017 12:37:53 +0000]
0029396: Configuration, Cmake: restore 3rd-party libraries into INTERFACE_LINK_LIBRARIES property of installed OCCT targets

Changes from branch CR29277 were reverted.

19 months ago0029398: Configuration - list lex and yacc files in the StepFile/FILES to avoid CMake...
bugmaster [Fri, 22 Dec 2017 07:31:15 +0000]
0029398: Configuration - list lex and yacc files in the StepFile/FILES to avoid CMake warnings

Adding step.lex and step.yacc to StepFile/FILES

19 months ago0029220: Application Framework - replace CDM_MessageDriver interface by Message_Messe...
szy [Wed, 13 Dec 2017 12:27:50 +0000]
0029220: Application Framework - replace CDM_MessageDriver interface by Message_Messenger.

19 months ago0029352: Adding support of GBK and Big5 code pages
anv [Tue, 28 Nov 2017 09:31:08 +0000]
0029352: Adding support of GBK and Big5 code pages

Added methods to convert GBK and Big5 encodings to Unicode

19 months ago0028248: [Regression] HLR Algo result is retrieved from the last added shape only
msv [Tue, 19 Dec 2017 13:01:06 +0000]
0028248: [Regression] HLR Algo result is retrieved from the last added shape only

Mistakes in retrieving of HLRBRep_EdgeData by value instead of reference have been corrected.

19 months ago0029393: Samples - AndroidQt sample build fail
kgv [Tue, 19 Dec 2017 11:00:10 +0000]
0029393: Samples - AndroidQt sample build fail

AndroidQt - dropped removed arguments within V3d_View::SetWindow() usage [0024776].
AndroidQt_Window - add missing NativeFBConfig() method declared in the interface [0026732].