Changesets: occt

master 7b3f255f

2022-03-31 09:21:08

ddzama


Committer: smoskvin Details Diff
0032917: Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your function may not throw, declare it noexcept)

Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20

Get rid of warning C26440: "If your function may not throw, declare it noexcept"

"If code is not supposed to cause any exceptions,
it should be marked as such by using the 'noexcept' specifier.
This would help to simplify error handling on the client code side,
as well as enable compiler to do additional optimizations."
Affected Issues
0032917
mod - src/NCollection/NCollection_AliasedArray.hxx Diff File
mod - src/Poly/Poly_ArrayOfNodes.hxx Diff File
mod - src/Poly/Poly_ArrayOfUVNodes.hxx Diff File
mod - src/Standard/Standard_Handle.hxx Diff File
mod - src/TCollection/TCollection_AsciiString.hxx Diff File
mod - src/TCollection/TCollection_ExtendedString.hxx Diff File
mod - src/TopLoc/TopLoc_SListOfItemLocation.hxx Diff File

master d31e5dbb

2022-03-31 09:19:35

ddzama


Committer: smoskvin Details Diff
0032916: Coding Rules - eliminate MSVS warning C26451 on VS2019/C++20 (Arithmetic overflow: Using operator '+' on a 4 byte value...)

Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20

Get rid of `Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value
and then casting the result to a 8 byte value.
Cast the value to the wider type before calling operator '+' to avoid overflow (io.2)`
Affected Issues
0032916
mod - src/QANCollection/QANCollection_Stl.cxx Diff File

master 878ea8cd

2022-03-31 07:26:39

ddzama


Committer: smoskvin Details Diff
0032910: Coding Rules - fix uninitialized class fields in constructor initialization block reported by VS2019/C++20

Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20

Get rid of warnings about uninitialized class fields in constructor initialization block.
Affected Issues
0032910
mod - src/NCollection/NCollection_BaseVector.hxx Diff File
mod - src/SelectMgr/SelectMgr_BVHThreadPool.hxx Diff File

master 2491eec3

2022-03-30 21:38:14

kgv


Committer: smoskvin Details Diff
0032897: Tests - include elapsed time into test log

Added "ELAPSED TIME" to test case log.
Improved syntax of chrono/dchrono command:
added -elapsed, -userCPU, -sysCPU options printing individual values in seconds.

OSD_Chronometer::IsThisThreadOnly() - added missing accessors to the property.
Affected Issues
0032897
mod - src/Draw/Draw_BasicCommands.cxx Diff File
mod - src/Draw/Draw_Chronometer.cxx Diff File
mod - src/Draw/Draw_Chronometer.hxx Diff File
mod - src/DrawResources/TestCommands.tcl Diff File
mod - src/OSD/OSD_Chronometer.cxx Diff File
mod - src/OSD/OSD_Chronometer.hxx Diff File
mod - tests/perf/mesh/bug27626 Diff File
mod - tests/perf/modalg/bug25742_2 Diff File

master 7021de2f

2022-03-30 12:30:01

ddzama


Committer: smoskvin Details Diff
0032909: Coding Rules - replace (removed from C++17) `std::random_shuffle` with `std::shuffle` for random permutation algorithm

Since C++17 the accessible version of permutation function left the function:

template< class RandomIt, class URBG >
void shuffle( RandomIt first, RandomIt last, URBG&& g );

See details and example of use: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
Affected Issues
0032909
mod - src/QANCollection/QANCollection_Stl.cxx Diff File

master 73035770

2022-03-30 11:40:11

ddzama


Committer: smoskvin Details Diff
0032908: Coding Rules - fix E0349 MSVC compilation error on VS2019/C++20

Get rid of raw C strings in error code to avoid error 0349.
Use std::string instead.
Affected Issues
0032908
mod - src/XSDRAW/XSDRAW.cxx Diff File

master 9416ba5f

2022-03-30 10:06:01

ddzama


Committer: smoskvin Details Diff
0032907: Coding Rules - eliminate MSVC warning C5054 on VS2019/C++20 (operator &,|: deprecated between enumerations of different types)

operator `&`,`|`: deprecated between enumerations of different types
Affected Issues
0032907
mod - src/AIS/AIS_ViewController.cxx Diff File
mod - src/HLRAlgo/HLRAlgo_EdgesBlock.hxx Diff File
mod - src/HLRBRep/HLRBRep_FaceData.lxx Diff File
mod - src/Message/Message_ExecStatus.hxx Diff File
mod - src/Standard/Standard_TypeDef.hxx Diff File
mod - src/ViewerTest/ViewerTest_EventManager.cxx Diff File

master 8af9bbd5

2022-03-30 09:24:49

ddzama


Committer: smoskvin Details Diff
0032906: Coding Rules - get rid of std::iterator inheritance (deprecated since C++17) Affected Issues
0032906
mod - src/NCollection/NCollection_StlIterator.hxx Diff File
mod - src/OSD/OSD_Parallel.hxx Diff File

master 1f45f213

2022-03-30 04:28:02

jgv


Committer: smoskvin Details Diff
0032721: Modeling Algorithms - BOP wrong results on a cone and an extrusion

1. Modify method IntPatch_ALineToWLine::MakeWLine: add correction of end points of each line on 2 surfaces if an end point is a pole on a surface.
2. Modify method IntPatch_WLine::ComputeVertexParameters: adjust a point on curve to corresponding vertex the following way: set 3D point as the point of the vertex and 2D points as the points of the point on curve.
mod - src/IntPatch/IntPatch_ALineToWLine.cxx Diff File
mod - src/IntPatch/IntPatch_ALineToWLine.hxx Diff File
mod - src/IntPatch/IntPatch_WLine.cxx Diff File
mod - src/IntSurf/IntSurf_LineOn2S.hxx Diff File
mod - src/IntSurf/IntSurf_LineOn2S.lxx Diff File
mod - tests/bugs/modalg_7/bug29807_b3a Diff File
mod - tests/bugs/modalg_7/bug29807_b5a Diff File
add - tests/bugs/modalg_8/bug32721 Diff File
mod - tests/lowalgos/intss/bug29807_i1002 Diff File
mod - tests/lowalgos/intss/bug29807_i1003 Diff File
mod - tests/lowalgos/intss/bug29807_i1004 Diff File
mod - tests/lowalgos/intss/bug29807_i1005 Diff File
mod - tests/lowalgos/intss/bug29807_i3002 Diff File
mod - tests/lowalgos/intss/bug29807_i3004 Diff File
mod - tests/lowalgos/intss/bug29807_i3005 Diff File

master 4e1b5fcb

2022-03-29 16:32:46

ddzama


Committer: smoskvin Details Diff
0032903: Coding Rules - eliminate MSVC warning C26451 on VS2019/C++20

Put explicit type casting to avoid:
Warning C26451 Arithmetic overflow: Using operator '-' on a 4 byte
value and then casting the result to a 8 byte value.
Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
Affected Issues
0032903
mod - src/AIS/AIS_ViewController.cxx Diff File
mod - src/Graphic3d/Graphic3d_ArrayOfPrimitives.hxx Diff File
mod - src/Message/Message_ProgressScope.hxx Diff File
mod - src/Standard/Standard_Real.hxx Diff File

master e4753a7d

2022-03-24 22:21:06

azv


Committer: smoskvin Details Diff
0032863: Cone surface returns wrong v derivative

* Fix error on computing V first derivative on a cone (take into account the slope of the conical generatrix).
* Add DRAW command 'sderivative' to compute certain derivative on a surface.
Affected Issues
0032863
mod - src/ElSLib/ElSLib.cxx Diff File
mod - src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx Diff File
add - tests/bugs/modalg_7/bug32863 Diff File

master fe12f15c

2022-03-24 17:36:11

AndreyLA


Committer: smoskvin Details Diff
0024657: 2dintersect returns different number of intersect points in curve intersecting the polygon points is never replaced by line

Test for 2d intersection is added
Affected Issues
0024657
add - tests/bugs/modalg_5/bug24657 Diff File

master d7f50721

2022-03-21 16:55:55

ifv


Committer: smoskvin Details Diff
0032882: Modeling Data - Extrema curve/curve cannot find all solutions

Extrema/Extrema_GenExtCC.gxx - estimation of Lipchitz constant is improved
Extrema_GlobOptFuncCC.cxx - function value is changed

LocOpe/LocOpe_WiresOnShape.cxx - small correction to fix regression

lowalgos/extcc/bug32882 - new test case is added

some test were updated according new behavior of extrema algo
mod - src/Extrema/Extrema_GenExtCC.gxx Diff File
mod - src/Extrema/Extrema_GlobOptFuncCC.cxx Diff File
mod - src/IntTools/IntTools_FaceFace.cxx Diff File
mod - src/IntTools/IntTools_WLineTool.cxx Diff File
mod - src/IntTools/IntTools_WLineTool.hxx Diff File
mod - src/LocOpe/LocOpe_WiresOnShape.cxx Diff File
mod - tests/bugs/modalg_5/bug23706_10 Diff File
mod - tests/bugs/modalg_5/bug23706_11 Diff File
mod - tests/bugs/modalg_6/bug27665 Diff File
mod - tests/lowalgos/extcc/bug29858_03 Diff File
add - tests/lowalgos/extcc/bug32882 Diff File

master 9b337ad8

2022-03-18 23:46:44

azv


Committer: smoskvin Details Diff
0032874: IsParallel() method of Extrema_ExtCC does not give same results in OCC 7.6.0 vs OCC 7.5.0

Improve tolerance criteria to check values of extremas for equality: use multiplier, which depends on the value, instead of magic number
Affected Issues
0032874
mod - src/Extrema/Extrema_ExtCC.cxx Diff File
add - tests/bugs/modalg_7/bug32874 Diff File

master 3425e83f

2022-03-17 15:10:01

AndreiLA


Committer: smoskvin Details Diff
0023820: Wrong result of projection algorithm when a polygon geometry is projected on a set of multiple faces

The tests are added to verify the correctness of the projection algorithm's work in two cases.
Affected Issues
0023820
add - tests/bugs/modalg_5/bug23820_1 Diff File
add - tests/bugs/modalg_5/bug23820_2 Diff File

master 5ae6f08c

2022-03-16 13:13:15

knosulko


Committer: smoskvin Details Diff
0024772: Modeling Algorithms - Intersection of cylinder and cone produces incorrect results

GeomInt/GeomInt_IntSS.cxx - handle flat cone case
IntPatch/IntPatch_Intersection.hxx, IntPatch/IntPatch_Intersection.cxx - method for preparing surfaces is added
bugs/lowalgos/intss/bug24772 - test case is changed according new behavior
Affected Issues
0024772
mod - src/Adaptor3d/Adaptor3d_TopolTool.cxx Diff File
mod - src/Adaptor3d/Adaptor3d_TopolTool.hxx Diff File
mod - src/GeomInt/GeomInt_IntSS.cxx Diff File
mod - src/IntPatch/IntPatch_Intersection.cxx Diff File
mod - src/IntPatch/IntPatch_Intersection.hxx Diff File
mod - tests/lowalgos/intss/bug24772 Diff File

master 7573a45d

2022-03-14 18:03:59

mpv


Committer: smoskvin Details Diff
0032870: Tests - bugs/caf/bug31918_1 is unstable

Improved the test stability: created 10 iterations of measurements and take the minimum to
minimize the affect of other processes and threads; increased the compare range of
the quarter and the whole of the document load.
Affected Issues
0032870
mod - tests/bugs/caf/bug31918_1 Diff File

master 802180e1

2022-03-12 22:35:55

jgv


Committer: smoskvin Details Diff
0032719: Modelling Algorithms - UnifySameDomain result has incorrect triangulation

Correct method ShapeUpgrade_UnifySameDomain::UnionPCurves: reparametrize unified pcurves to fit the new range of 3D-curve.
mod - src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx Diff File
add - tests/bugs/heal/bug32719 Diff File

master e7201578

2022-03-10 11:57:41

mpv


Committer: smoskvin Details Diff
0032442: Application Framework - Problems of testing on MacOS arm64 platform

Fixed the problem of reading XML files on MacOS. 'errno' was not reseted
even the 'strtol' function produced a good value. So, now it is erased
forcibly before the call.
Affected Issues
0032442
mod - src/LDOM/LDOMBasicString.cxx Diff File
mod - src/OSD/OSD_Directory.cxx Diff File

master 8ca58a51

2022-03-07 02:13:22

kgv

Details Diff
0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters are displayed

OpenGl_View::MinMaxValues() - added missing theToIncludeAuxiliary check.
Affected Issues
0032866
mod - src/OpenGl/OpenGl_View.cxx Diff File

master 1f37f1d5

2022-03-03 15:05:23

ifv


Committer: smoskvin Details Diff
0031661: Modeling Data - Exception when projecting parabola or hyperbola to plane

ProjLib/ProjLib_ProjectOnPlane.cxx - formatting

0031661: Modeling Data - Algorithm crashes when projecting parabola or hyperbola to plane

ProjLib/ProjLib_ProjectOnPlane.cxx - building of analytical parabola and hyperbola is added
bugs/moddata_3/bug31661_* - new test cases are added
Affected Issues
0031661
mod - src/ProjLib/ProjLib_ProjectOnPlane.cxx Diff File
mod - src/ProjLib/ProjLib_ProjectOnPlane.hxx Diff File
add - tests/bugs/moddata_3/bug31661_1 Diff File
add - tests/bugs/moddata_3/bug31661_2 Diff File

master 633084b8

2022-03-02 15:21:22

kgv


Committer: smoskvin Details Diff
0032862: Visualization, Graphic3d_TextureMap - add 3D texture definition

Image_PixMap has been extended to support definition of 3D bitmap (as an array of 2D slices).

Graphic3d_TypeOfTexture enumeration values have been renamed to include full enum prefix.
Added Graphic3d_TypeOfTexture_3D redirecting to GL_TEXTURE_3D.
OpenGl_Texture::Init() has been extended to allow initialization of 3D texture.

Graphic3d_Texture2Dmanual merged into Graphic3d_Texture2D and marked as deprecated alias.
Graphic3d_TOT_2D_MIPMAP has been deprecated in favor of dedicated Graphic3d_TextureRoot::SetMipMaps().

Added Graphic3d_Texture3D class.
vtexture - added argument -3d for uploading 3D texture.
Affected Issues
0032862
mod - samples/OCCTOverview/code/Sample2D_Image.cxx Diff File
mod - src/AIS/AIS_TexturedShape.cxx Diff File
mod - src/AIS/AIS_TexturedShape.hxx Diff File
mod - src/AIS/AIS_XRTrackedDevice.cxx Diff File
mod - src/D3DHost/D3DHost_FrameBuffer.cxx Diff File
mod - src/Graphic3d/FILES Diff File
mod - src/Graphic3d/Graphic3d_CubeMap.cxx Diff File
mod - src/Graphic3d/Graphic3d_CubeMap.hxx Diff File
mod - src/Graphic3d/Graphic3d_MediaTexture.cxx Diff File
mod - src/Graphic3d/Graphic3d_Texture1Dmanual.cxx Diff File
mod - src/Graphic3d/Graphic3d_Texture1Dmanual.hxx Diff File
mod - src/Graphic3d/Graphic3d_Texture1Dsegment.cxx Diff File
mod - src/Graphic3d/Graphic3d_Texture2D.cxx Diff File
mod - src/Graphic3d/Graphic3d_Texture2D.hxx Diff File
rm - src/Graphic3d/Graphic3d_Texture2Dmanual.cxx Diff File
mod - src/Graphic3d/Graphic3d_Texture2Dmanual.hxx Diff File
mod - src/Graphic3d/Graphic3d_Texture2Dplane.cxx Diff File
add - src/Graphic3d/Graphic3d_Texture3D.cxx Diff File
add - src/Graphic3d/Graphic3d_Texture3D.hxx Diff File
mod - src/Graphic3d/Graphic3d_TextureEnv.cxx Diff File
mod - src/Graphic3d/Graphic3d_TextureRoot.cxx Diff File
mod - src/Graphic3d/Graphic3d_TextureRoot.hxx Diff File
mod - src/Graphic3d/Graphic3d_TypeOfTexture.hxx Diff File
mod - src/Image/Image_PixMap.cxx Diff File
mod - src/Image/Image_PixMap.hxx Diff File
mod - src/Image/Image_PixMapData.hxx Diff File
mod - src/MeshVS/MeshVS_NodalColorPrsBuilder.cxx Diff File
mod - src/OpenGl/OpenGl_AspectsSprite.cxx Diff File
mod - src/OpenGl/OpenGl_Context.cxx Diff File
mod - src/OpenGl/OpenGl_Font.cxx Diff File
mod - src/OpenGl/OpenGl_FrameBuffer.cxx Diff File
mod - src/OpenGl/OpenGl_PBREnvironment.cxx Diff File
mod - src/OpenGl/OpenGl_Sampler.cxx Diff File
mod - src/OpenGl/OpenGl_Texture.cxx Diff File
mod - src/OpenGl/OpenGl_Texture.hxx Diff File
mod - src/OpenGl/OpenGl_TileSampler.cxx Diff File
mod - src/OpenGl/OpenGl_View.cxx Diff File
mod - src/OpenGl/OpenGl_View_Raytrace.cxx Diff File
mod - src/QABugs/QABugs_1.cxx Diff File
mod - src/V3d/V3d_View.cxx Diff File
mod - src/ViewerTest/ViewerTest.cxx Diff File
mod - src/ViewerTest/ViewerTest_OpenGlCommands.cxx Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
mod - src/XCAFPrs/XCAFPrs_Texture.cxx Diff File
mod - src/XCAFPrs/XCAFPrs_Texture.hxx Diff File
mod - tests/opengl/data/textures/cubemap_jpg Diff File
add - tests/opengl/data/textures/texture_3d Diff File

master a9e5f650

2022-03-02 08:58:10

kgv


Committer: smoskvin Details Diff
0032837: Documentation, Geom_Surface - add references to GeomLib::NormEstim() for Normal computations

References to GeomLib::NormEstim() have been put to Geom_Surface, Adaptor3d_Surface and BRepAdaptor_Surface.
Improved documentation of GeomLib::NormEstim().
Affected Issues
0032837
mod - src/Adaptor3d/Adaptor3d_Surface.hxx Diff File
mod - src/BRepAdaptor/BRepAdaptor_Surface.hxx Diff File
mod - src/Geom/Geom_Surface.hxx Diff File
mod - src/GeomLib/GeomLib.cxx Diff File
mod - src/GeomLib/GeomLib.hxx Diff File

master b5204c6c

2022-03-02 08:18:29

kgv


Committer: smoskvin Details Diff
0032860: Coding Rules, Extrema_GenExtPS - add exported destructor

Added eplicit destructors to classes Extrema_GenExtCS, Extrema_GenExtPS and Extrema_GenExtSS.
Affected Issues
0032860
mod - src/Extrema/Extrema_GenExtCS.cxx Diff File
mod - src/Extrema/Extrema_GenExtCS.hxx Diff File
mod - src/Extrema/Extrema_GenExtPS.cxx Diff File
mod - src/Extrema/Extrema_GenExtPS.hxx Diff File
mod - src/Extrema/Extrema_GenExtSS.cxx Diff File
mod - src/Extrema/Extrema_GenExtSS.hxx Diff File

master b9a372bb

2022-03-01 22:34:31

kgv


Committer: smoskvin Details Diff
0032841: Visualization - add 16-bit grayscale pixel format to Image_PixMap

Added Image_Format_Gray16 pixel format definition, which could be uploaded into GL_R16 texture.
Added Image_Format_GrayF_half mapped to GL_R16F texture.
Affected Issues
0032841
mod - src/Image/Image_AlienPixMap.cxx Diff File
mod - src/Image/Image_Format.hxx Diff File
mod - src/Image/Image_PixMap.cxx Diff File
mod - src/Image/Image_PixMap.hxx Diff File
mod - src/Media/Media_Frame.cxx Diff File
mod - src/OpenGl/OpenGl_Context.cxx Diff File
mod - src/OpenGl/OpenGl_Context.hxx Diff File
mod - src/OpenGl/OpenGl_FrameBuffer.cxx Diff File
mod - src/OpenGl/OpenGl_GlFunctions.cxx Diff File
mod - src/OpenGl/OpenGl_GlTypes.hxx Diff File
mod - src/OpenGl/OpenGl_TextureFormat.cxx Diff File
 First  Prev  1 2 3 4 5 6 ... 20 ... 40 ... 60 ... 80 ... 100 ... 120 ... 140 ... 160 ... 180 ... 200 ... 220 ... 240 ... 244 245 246  Next  Last