]> OCCT Git - occt.git/log
occt.git
2 years agoUpdate version up to 7.6.3 OCCT-763 V7_6_3
smoskvin [Wed, 20 Jul 2022 11:24:50 +0000 (14:24 +0300)]
Update version up to 7.6.3

2 years ago0033074: Visualization, TKOpenGl - PBR shader compilation error on Mesa OpenGL 3...
kgv [Fri, 22 Jul 2022 07:55:28 +0000 (10:55 +0300)]
0033074: Visualization, TKOpenGl - PBR shader compilation error on Mesa OpenGL 3.10033074

Graphic3d_ShaderManager::getPBREnvBakingProgram() - fix setting Graphic3d_ShaderProgram::SetPBR()
before defining GLSL version via defaultGlslVersion() that relies on this property.

2 years ago0032882: Modeling Data - Extrema curve/curve cannot find all solutions (OCCT 7.6...
ifv [Mon, 21 Mar 2022 13:55:55 +0000 (16:55 +0300)]
0032882: Modeling Data - Extrema curve/curve cannot find all solutions (OCCT 7.6 backport)

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

3 years ago0032744: Modeling Algorithms - Endless loop in GCPnts_UniformDeflection
asuraven [Mon, 20 Dec 2021 16:27:09 +0000 (19:27 +0300)]
0032744: Modeling Algorithms - Endless loop in GCPnts_UniformDeflection

fixed finish criteria in CPnts_UniformDeflection::Perform()

3 years ago0029406: Foundation Classes - gp_Ax3 fails setting direction
isn [Thu, 11 Jan 2018 16:03:03 +0000 (19:03 +0300)]
0029406: Foundation Classes - gp_Ax3 fails setting direction

Avoid exception in gp_Ax3::SetDirection(), SetAxis(): check if XDir of Ax3 is parallel to newly given direction.

3 years ago0032914: Data Exchange - Some parts of compound are lost while writing STEP in nonman...
snn [Wed, 20 Apr 2022 11:56:21 +0000 (14:56 +0300)]
0032914: Data Exchange - Some parts of compound are lost while writing STEP in nonmanifold mode

Code related to supporting of single SDR for a non-manifold group, which prevents writing all translation results except the first one, is removed.
SDRs with null used representation object are excluded from writing.

3 years ago0031661: Modeling Data - Exception when projecting parabola or hyperbola to plane
ifv [Thu, 3 Mar 2022 12:05:23 +0000 (15:05 +0300)]
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

3 years ago0032679: Data Exchange - STEP writer loses assembly instance name
msv [Mon, 22 Nov 2021 00:28:24 +0000 (03:28 +0300)]
0032679: Data Exchange - STEP writer loses assembly instance name

In STEPCAFControl_Writer::WriteNames, write the names of components
even if the name of the assembly is absent.

In STEPControl_ActorWrite::TransferSubShape, move assembly structure
information to the beginning of the list of results, so that CDSR
information of this assembly became preceding CDSR of any sub shapes.

3 years ago0032692: Mesh - In BRepMesh_ModelPreProcessor avoid crashes with problematic topology
oan [Tue, 28 Jun 2022 08:43:49 +0000 (11:43 +0300)]
0032692: Mesh - In BRepMesh_ModelPreProcessor avoid crashes with problematic topology

Improved the processing for the case where Failure flag for the meshing face is set. Specific tests added.
Check triangulation consistency even for shapes with problematic topology given that they are suitable for keeping it.

3 years ago0032864: Modeling Algorithms - Normal projection of a wire on a cylinder produces...
jgv [Thu, 21 Apr 2022 07:02:51 +0000 (10:02 +0300)]
0032864: Modeling Algorithms - Normal projection of a wire on a cylinder produces wrong result

Minor correction in method BRepAlgo_NormalProjection::Build: correct mixed up first and last parameters of the projected curve.

3 years ago0032915: Geom2dAPI_InterCurveCurve, The algorithm lost an intersection point.
azv [Fri, 8 Apr 2022 08:03:53 +0000 (11:03 +0300)]
0032915: Geom2dAPI_InterCurveCurve, The algorithm lost an intersection point.

Get rid of strange code: preliminary check of self-intersections is made on a polygonal representation of a curve, it is able to find possible intersections, but after that it filter out segments neighbor to the pair of non-intersected segments.

Test case de step_4 I1 has been marked BAD, because the self-intersection is treated correctly, but the projection algorithm generates such crooked 2D curve.

Reference data in test cases heal split_angle_advanced ZA5 and ZA6 has been updated, because those shapes have self-intersected edges, which are being detected now.

3 years ago0032929: Modeling Algorithms - Crash in PerformIntersectionAtEnd after deletion of...
Charlemagne Lasse [Wed, 13 Apr 2022 09:54:30 +0000 (11:54 +0200)]
0032929: Modeling Algorithms - Crash in PerformIntersectionAtEnd after deletion of surfdata

When creating a fillet, num is calculated via ChFi3d_IndexOfSurfData. If it
returns just the number of entries in surfdata, it can happen that this
value becomes invalid when handling the case "two faces common to the edge
are found". When both components are on an arc, there will be num removed
from the surfdata.

num would then be larger than the number of entries surfdata. The derived
num1 is therefore also incorrect. The subsequent usage of this
value will either:

* Debug build: cause an out of bounds exception in ChangeValue
  (`SeqFil.ChangeValue(num)`)
* Release build: cause a segfault when retrieving it via index num1
  (`SeqFil(num1)`)

num + num1 must be recalculated after the deletion happens to correctly
calculate the fillet.

Signed-off-by: Charlemagne Lasse <charlemagnelasse@gmail.com>
3 years ago0032930: Modeling Algorithms - Crash in PerformIntersectionAtEnd when no face was...
Charlemagne Lasse [Wed, 13 Apr 2022 09:54:30 +0000 (11:54 +0200)]
0032930: Modeling Algorithms - Crash in PerformIntersectionAtEnd when no face was found

The PerformIntersectionAtEnd code is currently not handling all the faces
correctly. If it retrieves Face[0] as F, it can happen that the previously
ran code didn't actually retrieve any faces in this array at all.

For example when:

* "if (nface==3)" is true
  - "if (!findonf1)" is true (doesn't assign any faces to this array)
  - "if (!findonf2)" is true (doesn't assign any faces to this array)
  - "if (state == ChFiDS_OnSame)" is not true (because it is
    ChFiDS_AllSame)
  - "if (findonf1 && !isOnSame1)" cannot be true (see above, but would
    handle faces)
  - "if (findonf2 && !isOnSame2)" cannot be true (see above, but would
    handle faces)
  - "if (isOnSame2)" is false (but would also handle faces)

Since no faces were assigned here, F would be a NULL face. As result, the
function will crash when trying to access the Surface behind the face via
`BRep_Tool::Surface(F);`.

While the best approach would be to identify the implementation bug in the
algorithm behind PerformIntersectionAtEnd, a check + exception is used
instead because the actual algorithm is not known.

Signed-off-by: Charlemagne Lasse <charlemagnelasse@gmail.com>
3 years ago0032931: Modeling Algorithms - Crash in ChFi3d_IsInFront when no face was found
Charlemagne Lasse [Wed, 13 Apr 2022 09:54:30 +0000 (11:54 +0200)]
0032931: Modeling Algorithms - Crash in ChFi3d_IsInFront when no face was found

The ChFi3d_IsInFront code is currently not handling all the combinations
correctly. For example, if `if(fd1->IndexOfS2() == fd2->IndexOfS2())` is
true, it can happen that the `TopoDS::Face(DStr.Shape(fd1->Index(jf1)))`
returns a Face with entity == NULL. The subsequent usage of this NULL face
in `BRep_Tool::Parameters( Vtx, face )` will then cause a segfault.

While the best approach would be to identify the implementation bug in the
algorithm behind PChFi3d_IsInFron, a check + exception is used instead
because the actual algorithm is not known.

Signed-off-by: Charlemagne Lasse <charlemagnelasse@gmail.com>
3 years ago0033028: Standard_ConstructionError while using ShapeUpgrade_UnifySameDomain
azv [Mon, 27 Jun 2022 06:57:42 +0000 (09:57 +0300)]
0033028: Standard_ConstructionError while using ShapeUpgrade_UnifySameDomain

Additional check if the sequence of circular edges is a closed chain.

3 years ago0033060: [Regression to 7.4.0] Mesh - Sub-precisional links provoke failure on face
oan [Fri, 8 Jul 2022 10:49:11 +0000 (13:49 +0300)]
0033060: [Regression to 7.4.0] Mesh - Sub-precisional links provoke failure on face

Slightly increase exact resolution so to cover links with approximate length equal to resolution itself on sub-resolution differences.

3 years ago0032991: Visualization, TKOpenGl - OpenGl_Window::Resize() ignores window virtual...
kgv [Mon, 13 Jun 2022 07:13:53 +0000 (10:13 +0300)]
0032991: Visualization, TKOpenGl - OpenGl_Window::Resize() ignores window virtual flag on macOS

Added handling of Aspect_Window::IsVirtual() flag on macOS platform (7.6.x backport).

3 years ago0032990: Configuration - compilation errors since Emscripten 3.1.11 due to time_t...
kgv [Fri, 27 May 2022 06:56:50 +0000 (09:56 +0300)]
0032990: Configuration - compilation errors since Emscripten 3.1.11 due to time_t redefined long->int

Add std::is_same filter to IsEqual(time_t, time_t) definition.

3 years ago0032973: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape compared...
ifv [Mon, 16 May 2022 08:37:40 +0000 (11:37 +0300)]
0032973: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape compared with 7.5

BRepExtrema/BRepExtrema_ExtCF.cxx - set correct using BRepAdaptor_Curve in Extrema
tests/bugs/modalg_8/bug32973 - new test case added

3 years agoUpdate version up to 7.6.3dev
kgv [Fri, 29 Apr 2022 08:24:40 +0000 (11:24 +0300)]
Update version up to 7.6.3dev

3 years ago0032721: Modeling Algorithms - BOP wrong results on a cone and an extrusion OCCT-762 V7_6_2
jgv [Wed, 30 Mar 2022 01:28:02 +0000 (04:28 +0300)]
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.

3 years ago0032701: Modeling Algorithms - 2d curve has bending near the degenerated edge of...
ifv [Thu, 2 Dec 2021 14:02:17 +0000 (17:02 +0300)]
0032701: Modeling Algorithms - 2d curve has bending near the degenerated edge of the face

ApproxInt_Approx, ApproxInt_KnotTools, BRepApprox_Approx,
GeomInt_IntSS, IntTools_FaceFace:
  Analysis of curvature is added for adjusting ParametrizationType

IntPatch_Intersection.cxx - adding methods for estimation of UV max step depending on used surfaces

GeomInt_IntSS.cxx, IntTools_FaceFace.cxx - using methods for max step estimation

Approx_SameParameter.cxx - adding control against big values.

BOPAlgo_PaveFiller_6.cxx - adjusting position of faces before intersection

3 years agoUpdate version up to 7.6.2
smoskvin [Sat, 23 Apr 2022 13:03:19 +0000 (16:03 +0300)]
Update version up to 7.6.2

3 years ago0032870: Tests - bugs/caf/bug31918_1 is unstable
mpv [Wed, 6 Apr 2022 08:08:20 +0000 (11:08 +0300)]
0032870: Tests - bugs/caf/bug31918_1 is unstable

# Make the compared values more stable.

3 years ago0032870: Tests - bugs/caf/bug31918_1 is unstable
mpv [Mon, 14 Mar 2022 15:03:59 +0000 (18:03 +0300)]
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.

3 years ago0032814: Modeling algorithms - Unifysamedom produces invalid result
jgv [Mon, 14 Feb 2022 21:41:00 +0000 (00:41 +0300)]
0032814: Modeling algorithms - Unifysamedom produces invalid result

Minor correction in ShapeUpgrade_UnifySameDomain::IntUnifyFaces: correct collecting splitting vertices in the new wire

3 years ago0032796: Modeling Data - Calculation of distance between two circles crashes
vro [Tue, 22 Feb 2022 14:00:09 +0000 (17:00 +0300)]
0032796: Modeling Data - Calculation of distance between two circles crashes

Modified:
- Extrema_ExtCC.cxx, the method PrepareParallelResult() - angular tolerance is increased.

Added:
- A test: lowalgos extcc bug32796

3 years ago0031585: Access Violation while creating fillet - ChiFi3d_Builder::PerformIntersectio...
Chris Hennes [Sun, 13 Feb 2022 00:52:19 +0000 (18:52 -0600)]
0031585: Access Violation while creating fillet - ChiFi3d_Builder::PerformIntersectionAtEnd

There is one case in PerformIntersectionAtEnd that did not test whether
an array access exceeded the length of the array, in rare cases
resulting in a segmentation fault. That error-handling behavior is
replaced by the exception code used elsewhere in the function. For
consistency, the code is copied exactly as implemented elsewhere. This
code has the same effect as that proposed by the bug submitter.

3 years ago0032767: Mesh - incorrect splitting of edges of seams leading to hang [since OCCT...
knosulko [Thu, 13 Jan 2022 00:17:50 +0000 (03:17 +0300)]
0032767: Mesh - incorrect splitting of edges of seams leading to hang [since OCCT 7.4.0]

- fix step by parameter of the edge while split curve in case of seam edges

3 years ago0032810: Coding - missing Standard_EXPORT in Standard_ErrorHandler
aml [Fri, 28 Jan 2022 15:39:49 +0000 (18:39 +0300)]
0032810: Coding - missing Standard_EXPORT in Standard_ErrorHandler

3 years ago0032874: IsParallel() method of Extrema_ExtCC does not give same results in OCC 7...
azv [Thu, 7 Apr 2022 11:28:03 +0000 (14:28 +0300)]
0032874: IsParallel() method of Extrema_ExtCC does not give same results in OCC 7.6.0 vs OCC 7.5.0

Use precision depending on radii of participating circles.

3 years ago0032874: IsParallel() method of Extrema_ExtCC does not give same results in OCC 7...
azv [Fri, 18 Mar 2022 20:46:44 +0000 (23:46 +0300)]
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

3 years ago0032912: Visualization - crash when displaying an OBJ file with missing texture file
kgv [Tue, 5 Apr 2022 22:26:00 +0000 (01:26 +0300)]
0032912: Visualization - crash when displaying an OBJ file with missing texture file

Fix NULL dereference within Graphic3d_TextureRoot::convertToCompatible() due to wrong order of checks.

3 years ago0032066: Modeling Algorithms - Incorrect result of Boolean CUT operation
azv [Fri, 19 Feb 2021 19:34:56 +0000 (22:34 +0300)]
0032066: Modeling Algorithms - Incorrect result of Boolean CUT operation

Do not limit the normalization factor of the highly anisotropic parametric space when filtering start points in the algorithm of walking line construction.
Additionally check the knots are in the increasing orders when merging two B-spline curves

3 years ago0032719: Modelling Algorithms - UnifySameDomain result has incorrect triangulation
jgv [Sat, 12 Mar 2022 19:35:55 +0000 (22:35 +0300)]
0032719: Modelling Algorithms - UnifySameDomain result has incorrect triangulation

Correct method ShapeUpgrade_UnifySameDomain::UnionPCurves: reparametrize unified pcurves to fit the new range of 3D-curve.

3 years ago0032715: Modelling Algorithms - UnifySameDomain does incomplete union
jgv [Mon, 14 Feb 2022 13:36:39 +0000 (16:36 +0300)]
0032715: Modelling Algorithms - UnifySameDomain does incomplete union

    Add the case of closed, smooth but not periodic surface (unification of faces lying on it if the flag "myConcatBSplines" is true - modify the underlying surface to make it periodic).

3 years ago0032840: Application Framework, copying of a scaled shape fails
vro [Thu, 17 Feb 2022 05:35:26 +0000 (08:35 +0300)]
0032840: Application Framework, copying of a scaled shape fails

A flag not to raise an exception is set for a copying shape. A reason: if a shape is already in the model, the user should have an opportunity to copy it.

Modified files:
TNaming_CopyShape.cxx, the method Translate(). A false-flag is used on copying of location of the shape.

3 years agoUpdate version up to 7.6.2dev
kgv [Mon, 7 Feb 2022 09:03:52 +0000 (12:03 +0300)]
Update version up to 7.6.2dev

3 years agoUpdate version up to 7.6.1 OCCT-761 V7_6_1
inv [Tue, 1 Feb 2022 12:05:58 +0000 (15:05 +0300)]
Update version up to 7.6.1

3 years ago0032747: Modeling Algorithms - Exact HLR algorithm gives wrong result
jgv [Fri, 24 Dec 2021 04:12:49 +0000 (07:12 +0300)]
0032747: Modeling Algorithms - Exact HLR algorithm gives wrong result

Modify the method IntWalk_IWalking::TestArretCadre: correct the value of scalar product of two vectors according to the tolerances in U and V.

3 years ago0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode "Compl...
emv [Tue, 11 Jan 2022 15:10:23 +0000 (18:10 +0300)]
0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode "Complete" join type "Intersection"

Add more faces for intersection in rebuilding process basing on the connection of the splits of offset faces (special treatment for the artificially invalid faces).
When rebuilding faces add vertices common for faces for trimming the new intersection edges.

Adjust existing and create new test cases.

3 years ago0032484: Configuration, CMake fails to find EGL and GLES2 include directory on iOS...
kgv [Mon, 13 Dec 2021 21:25:36 +0000 (00:25 +0300)]
0032484: Configuration, CMake fails to find EGL and GLES2 include directory on iOS platform

Fixed configuration errors and compilation errors on iOS target due to unexpected EGL usage (non-existing on iOS).

3 years ago0032748: Data Exchange, Step Import - xstep.cascade.unit doesn't work [regression...
atychini [Fri, 21 Jan 2022 18:55:45 +0000 (21:55 +0300)]
0032748: Data Exchange, Step Import - xstep.cascade.unit doesn't work [regression since OCCT 7.6.0]
Added new condition in STEPControl_ActorRead::Transfer: if StepData_StepModel is not an initialized Unit - we set unit to this step model

3 years ago0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored...
Dzmitry Razmyslovich [Tue, 18 Jan 2022 13:52:39 +0000 (14:52 +0100)]
0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored location

A flag not to raise an exception is used on reading of an XCAF document. If such a shape with scaling transformation is stored in the document, it should be read.

3 years ago0032757: Application Framework, scaling transformation - loading of an OCAF XML docum...
vro [Wed, 29 Dec 2021 08:00:06 +0000 (11:00 +0300)]
0032757: Application Framework, scaling transformation - loading of an OCAF XML document fails

A flag not to raise an exception is used on reading of an OCAF document. If such a shape with scaling transformation is stored in the document, it should be read.

Modified files:
XmlMNaming\XmlMNaming_NamedShapeDriver.cxx: not checking of the type of transformation for a read shape

3 years ago0031087: Configuration - make FreeType dependency optional [part 2]
Dzmitry Razmyslovich [Thu, 25 Nov 2021 16:46:56 +0000 (17:46 +0100)]
0031087: Configuration - make FreeType dependency optional [part 2]

3 years ago0032652: Visualization - Select3D_SensitiveCylinder returns wrong 3D point on transfo...
kgv [Tue, 9 Nov 2021 12:17:43 +0000 (15:17 +0300)]
0032652: Visualization - Select3D_SensitiveCylinder returns wrong 3D point on transformed shape

SelectMgr_RectangularFrustum::OverlapsCylinder() - added missing 3D point transformation.
StdSelect_BRepSelectionTool::ComputeSensitive() - fixed cylinder height computation on TopoDS_Shape with scale transformation.
SelectMgr_AxisIntersector::OverlapsCylinder(),::OverlapsSphere() - added missing computations of surface normal.

3 years ago0032661: Coding - Forward class declaration in ProjLib collides with typeref
dipts [Sat, 13 Nov 2021 11:49:17 +0000 (12:49 +0100)]
0032661: Coding - Forward class declaration in ProjLib collides with typeref

Removed redundant forward declarations from ProjLib.hxx.

3 years ago0032649: Bug in BRepLib::EnsureNormalConsistency()
Xu Zhongxing [Thu, 4 Nov 2021 05:15:49 +0000 (13:15 +0800)]
0032649: Bug in BRepLib::EnsureNormalConsistency()

Fix a typo in variable name.

3 years ago0032654: Data Exchange - fix misprint in RWGltf_TriangulationReader::readDracoBuffer()
kgv [Wed, 10 Nov 2021 09:38:56 +0000 (12:38 +0300)]
0032654: Data Exchange - fix misprint in RWGltf_TriangulationReader::readDracoBuffer()

Added missing break.
Fixes reading of glTF files with Normal attributes preceding Position
(and eliminates redundant / erroneous copy when Position attributes precede Normal).

3 years agoUpdate version up to 7.6.1dev.
kgv [Fri, 19 Nov 2021 07:11:21 +0000 (10:11 +0300)]
Update version up to 7.6.1dev.

3 years agoUpdate version up to 7.6.0 OCCT-760 V7_6_0
inv [Fri, 29 Oct 2021 14:31:15 +0000 (17:31 +0300)]
Update version up to 7.6.0

3 years ago0032156: Documentation, gendoc.tcl - wrong processing of 'mathjax' option
kgv [Mon, 1 Nov 2021 06:53:12 +0000 (09:53 +0300)]
0032156: Documentation, gendoc.tcl - wrong processing of 'mathjax' option

Fixed handling of -s=<search_mode> option.
Fixed handling of -mathjax=<path> option.

3 years ago0032444: Modeling Algorithm - BRepOffsetAPI_MakePipeShell crash when using -DT mode...
akaftasev [Wed, 20 Oct 2021 10:02:09 +0000 (13:02 +0300)]
0032444: Modeling Algorithm - BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide on the spine

Added checking for null edges in BRepFill_TrimShellCorner::ChooseSection()

3 years ago0032551: Documentation - Novice user guide for OCCT Documentation
btokarev [Tue, 26 Oct 2021 11:18:56 +0000 (14:18 +0300)]
0032551: Documentation - Novice user guide for OCCT Documentation

Added novice guide.
Improved structure of Tutorials & Samples.

3 years ago0028104: Data Exchange - Extract sub-assembly (XDE)
dpasukhi [Tue, 26 Oct 2021 20:45:42 +0000 (23:45 +0300)]
0028104: Data Exchange - Extract sub-assembly (XDE)

- Added getting and setting Material, VisMaterial and Props to XCAFDoc_Editor::Expand.
- Added XCAFDoc_Editor::Extract to transfer part to a new location
  - XCAFDoc_Editor::Extract allows to extract a part as a component or simply extract to an empty label with attached colors, layers, materials, vismaterials and props
- Added XCAFDoc_Editor::CloneMetaData to clone shape's attributes to new location
- Added XCAFDoc_Editor::CloneShapeLabel to clone shape to new document
- Added XCAFDoc_DocumentTool::Check*Tool methods to check an existing of an any tool
- Protected against creating a new label for non-existent tools via extract or expand process

3 years ago0024975: Improve of preprocessor directives in header files to be equal to the file...
ski [Mon, 18 Oct 2021 08:52:10 +0000 (11:52 +0300)]
0024975: Improve of preprocessor directives in header files to be equal to the file name

Preprocessor directives were changed or created by function "check_headers" from script adm/upgrade.tcl (CR24816)

3 years ago0032640: Coding Rules - fix misprints in GeomliteTest_API2dCommands.cxx
kgv [Sun, 24 Oct 2021 09:09:02 +0000 (12:09 +0300)]
0032640: Coding Rules - fix misprints in GeomliteTest_API2dCommands.cxx

3 years ago0032641: Coding - get rid of unused forward declarations [IGESAppli to LDOM]
aml [Mon, 25 Oct 2021 04:50:25 +0000 (07:50 +0300)]
0032641: Coding - get rid of unused forward declarations [IGESAppli to LDOM]

3 years ago0032031: Analyze Precise HLR behaviour in Draw/AIS
asuraven [Fri, 29 Jan 2021 08:31:33 +0000 (11:31 +0300)]
0032031: Analyze Precise HLR behaviour in Draw/AIS

- Set "Algo" as default HLR algorithm in MFC HLR sample

3 years ago0030046: Modeling Algorithms - Cannot find necessary projection of the curve
knosulko [Fri, 20 Aug 2021 09:39:26 +0000 (12:39 +0300)]
0030046: Modeling Algorithms - Cannot find necessary projection of the curve

move algorithm of obtaining results from function gproject to method ProjLib_CompProjectedCurve::Perform;
fix tolerances in ProjLib_PrjResolve::ProjLib_PrjResolve;
new treatment of myMaxDist;
use extend bounds in approximation;
add test;
test case "bugs modalg_5 bug25980", "bugs modalg_7 bug24185" have been changed according to new behavior.

3 years ago0032557: Modeling Data - Use of BRepBuilderAPI_NurbsConvert create 2d p-curves with...
ifv [Mon, 4 Oct 2021 11:48:03 +0000 (14:48 +0300)]
0032557: Modeling Data - Use of BRepBuilderAPI_NurbsConvert create 2d p-curves with gaps

GeomConvert/GeomConvert_1.cxx - method CheckAndSegment is added to adjust surface periodic boundaries
bug32557 - test is updated by new cases

3 years ago0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect] CR0-WEEK-42 IR-2021-10-22
aml [Mon, 18 Oct 2021 06:46:19 +0000 (09:46 +0300)]
0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect]

3 years ago0032638: Draw Harness, ViewerTest - HTML input range misbehavior in WebAssembly
kgv [Fri, 22 Oct 2021 12:59:19 +0000 (15:59 +0300)]
0032638: Draw Harness, ViewerTest - HTML input range misbehavior in WebAssembly

ViewerTest_EventManager - added tracking of EMSCRIPTEN_EVENT_FOCUSOUT event.
onWasmMouseCallback() has been adjusted to return FALSE for EMSCRIPTEN_EVENT_TARGET_WINDOW
target to avoid misbehavior of other HTML controls.

WNT_Window::ProcessMessage() now handles WM_SETFOCUS/WM_KILLFOCUS instead of WM_ACTIVATE to track focus changes.

AIS_ViewController::ProcessFocus() now redirects to AIS_ViewController::ResetViewInput() on focus loss.
This fixes issues when key action (like WASD navigation) keep working even after releasing key if window has been switched.

3 years ago0032632: Visualization, AIS_ViewCube - the class AIS_ViewCubeSensitive is hidden...
vro [Tue, 19 Oct 2021 15:57:23 +0000 (18:57 +0300)]
0032632: Visualization, AIS_ViewCube - the class AIS_ViewCubeSensitive is hidden inside CXX file

3 years ago0032631: Draw Harness - add DRAWEXE.evalAsync() to WebAssembly
kgv [Mon, 18 Oct 2021 22:56:18 +0000 (01:56 +0300)]
0032631: Draw Harness - add DRAWEXE.evalAsync() to WebAssembly

3 years ago0032633: Draw Harness - extend command incmesh to apply default visualization parameters
kgv [Tue, 19 Oct 2021 18:34:18 +0000 (21:34 +0300)]
0032633: Draw Harness - extend command incmesh to apply default visualization parameters

incmesh - added -prs option to use StdPrs_ToolTriangulatedShape::GetDeflection() as meshing parameters.
vdisplay, XDisplay - added -autoTriangulation option to manage meshing behavior before displaying a shape.
trinfo - added output of meshing parameters.
Fixed broken incmesh syntax usage in several test cases.

3 years ago0032629: Configuration, scripts - add USE_PTHREADS building option to wasm_build.bat
kgv [Mon, 18 Oct 2021 13:26:59 +0000 (16:26 +0300)]
0032629: Configuration, scripts - add USE_PTHREADS building option to wasm_build.bat

3 years ago0026981: Application Framework - read a BinOcaf document from С++ stream sequentially
mpv [Tue, 31 Aug 2021 11:46:23 +0000 (14:46 +0300)]
0026981: Application Framework - read a BinOcaf document from С++ stream sequentially

The current version of the document supports partial reading. So, as a result, the shapes section is dispersed into attributes and it becomes easy avoid any seekg call during the reading.
But this will work only in case whole document is opened. For partial reading seekg functions could be naturally called.

3 years ago0032623: [Regression] Modelling Algorithms - UnifySameDomain invalid result only...
jgv [Mon, 18 Oct 2021 17:00:20 +0000 (20:00 +0300)]
0032623: [Regression] Modelling Algorithms - UnifySameDomain invalid result only in release mode

Correct local function ReconstructMissedSeam: use copy of existing pcurve for seam edge reconstruction to prevent possible corruption of another edges.

3 years ago0032626: Samples - add Qt::WA_NativeWindow attribute to Qt IESample
kgv [Sat, 16 Oct 2021 09:22:12 +0000 (12:22 +0300)]
0032626: Samples - add Qt::WA_NativeWindow attribute to Qt IESample

3 years ago0032624: Configuration, genproj - add support for VS 2022 / vc143
kgv [Fri, 15 Oct 2021 18:29:43 +0000 (11:29 -0700)]
0032624: Configuration, genproj - add support for VS 2022 / vc143

3 years ago0032310: Data Exchange - Invalid STEP export/import of backslashes in names [Regressi... CR0-WEEK-41 IR-2021-10-15
dpasukhi [Sun, 10 Oct 2021 12:33:15 +0000 (15:33 +0300)]
0032310: Data Exchange - Invalid STEP export/import of backslashes in names [Regression since OCCT 7.5.0]

Fixed a problem with handling slashes and apostrophes
Changed cleaning of the 'TEXT' fields of the step entity to direct order w/o removing operations
Changed converting text locale to covert before cleaning directives and specials symbols (all directives and sp. symbols encoded in ASCII[0-125] and haven't any differ with any locals)
Special case, when directives have two slashes before name changed to don't handle directives value and converts as is (combine two slashes as one and write, for example "\\X2\00C3" as "X2\00C3")

3 years ago0032619: [Regression] Modelling Algorithms - UnifySameDomain ignores shared face
jgv [Fri, 15 Oct 2021 04:53:48 +0000 (07:53 +0300)]
0032619: [Regression] Modelling Algorithms - UnifySameDomain ignores shared face

Correct method ShapeUpgrade_UnifySameDomain::UnifyFaces: exclude free boundary edges from unification.

3 years ago0030747: Modeling Algorithms - 2d Curves concatenator doesn't properly process closed...
abulyche [Mon, 4 Oct 2021 01:00:55 +0000 (04:00 +0300)]
0030747: Modeling Algorithms - 2d Curves concatenator doesn't properly process closed contours.

Corrected Geom2dConvert_CompCurveToBSplineCurve::Add in Geom2dConvert_CompCurveToBSplineCurve.cxx;
Added the test for this problem;
Corrected "gluing" curves in ProjLib_ProjectedCurve.cxx.

3 years ago0032622: Draw Harness - writebrep "-version 3" is unrecognized
kgv [Wed, 13 Oct 2021 18:53:32 +0000 (21:53 +0300)]
0032622: Draw Harness - writebrep "-version 3" is unrecognized

Fixed version range check.
Added description of -normals argument.

3 years agoCR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
aml [Tue, 12 Oct 2021 04:44:06 +0000 (07:44 +0300)]
CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]

Packages from Adaptor2d to GccAna are processed.

3 years ago0032612: Data Exchange, RWGltf_CafReader - lost hierarchy of two nested compounds
kgv [Mon, 11 Oct 2021 19:05:58 +0000 (22:05 +0300)]
0032612: Data Exchange, RWGltf_CafReader - lost hierarchy of two nested compounds

RWGltf_GltfJsonParser::gltfParseSceneNode() - prevent flattering of Scene nodes
(allow flattering only of Mesh nodes).

Added command XAutoNaming managing XCAFDoc_ShapeTool::SetAutoNaming().
Added comparisons with reference Xdump data to glTF tests.

3 years ago0032613: Samples - glfw compilation error on Linux
kgv [Tue, 12 Oct 2021 06:36:40 +0000 (09:36 +0300)]
0032613: Samples - glfw compilation error on Linux

GlfwOcctWindow - added cast to Aspect_XDisplay*.
Added auxiliary OCCT searching script as alternative to CMake config files.

3 years ago0032607: Modeling Algorithms - BOPAlgo_BOP returns incomplete result CR0-WEEK-40 IR-2021-10-08
ifv [Mon, 4 Oct 2021 14:25:56 +0000 (17:25 +0300)]
0032607: Modeling Algorithms - BOPAlgo_BOP returns incomplete result

IntPatch/IntPatch_ImpPrmIntersection.cxx - decreasing step for some conditions
tests/lowalgos/intss/bug32607 - test case added

3 years ago0029405: Modeling Algorithms - Check normal define status in HLRBRep_Data
vkuzin [Fri, 13 Aug 2021 11:43:22 +0000 (14:43 +0300)]
0029405: Modeling Algorithms - Check normal define status in HLRBRep_Data

Fixed exception when trying to calculate line and edge normal in methods HLRBRep_Data::OrientOutLine and HLRBRep_Data::OrientOthEdge, added a check for the existence of the normal before subsequent calculations. A correct check for zero derivative, correction of floating point error and division by zero determinant directly in HLRBRep_EdgeFaceTool::CurvatureValue was set.

3 years ago0032609: Visualization, Wasm_Window - handle mouse movements outside canvas element
kgv [Wed, 6 Oct 2021 20:55:43 +0000 (23:55 +0300)]
0032609: Visualization, Wasm_Window - handle mouse movements outside canvas element

Wasm_Window::ProcessMouseEvent() - removed redundant check on EMSCRIPTEN_EVENT_MOUSEUP event.
ViewerTest and WebGL sample - mouse movements are now tracked on window element
to allow tracking updates when mouse with clicked button is moved outside canvas element.

3 years ago0032604: Visualization, AIS_LightSource - improve dragging robustness
kgv [Mon, 4 Oct 2021 10:26:35 +0000 (13:26 +0300)]
0032604: Visualization, AIS_LightSource - improve dragging robustness

3 years ago0032591: Visualization, V3d_View - improve corner gradient
achesnok [Sat, 2 Oct 2021 13:33:48 +0000 (16:33 +0300)]
0032591: Visualization, V3d_View - improve corner gradient

- Added new shader for correct Aspect_GradientFillMethod_Corner mode shading.

3 years ago0032603: Coding - get rid of unsused forward declarations
aml [Sat, 2 Oct 2021 06:38:32 +0000 (09:38 +0300)]
0032603: Coding - get rid of unsused forward declarations

Packages from Adaptor2d to BRepMesh are processed.

3 years ago0032602: Configuration, genconf - reduce window height with empty error log
kgv [Fri, 1 Oct 2021 21:17:17 +0000 (00:17 +0300)]
0032602: Configuration, genconf - reduce window height with empty error log

Font height is reduced to 1 for empty error labels is empty to win some space.

3 years ago0032601: Foundation Classes - Poly_Connect hangs on the given incorrect triangulation
msv [Fri, 1 Oct 2021 19:23:36 +0000 (22:23 +0300)]
0032601: Foundation Classes - Poly_Connect hangs on the given incorrect triangulation

3 years ago0032539: Modeling Algorithms - Parallelize BRepExtrema_DistShapeShape algorithm CR0-WEEK-39 IR-2021-10-01
asuraven [Wed, 18 Aug 2021 17:23:07 +0000 (20:23 +0300)]
0032539: Modeling Algorithms - Parallelize BRepExtrema_DistShapeShape algorithm

3 years ago0032596: [REGRESSION] Data Exchange, STEP Reader - OCCT 7.6.0dev does not open file...
dpasukhi [Wed, 29 Sep 2021 19:03:26 +0000 (22:03 +0300)]
0032596: [REGRESSION] Data Exchange, STEP Reader - OCCT 7.6.0dev does not open file correctly

Fixed typo in the StepToTopoDS_TranslateFace.cxx after #29564 issue

3 years ago0032550: Documentation - Proofreading for "Tutorials and Samples -> Tutorial"
btokarev [Wed, 1 Sep 2021 13:29:33 +0000 (16:29 +0300)]
0032550: Documentation - Proofreading for "Tutorials and Samples -> Tutorial"

New images added for better representation of solid model;
Minor fixes for misprints and old classes;
Proofreading done.

3 years ago0032581: Modelling Algorithms - UnifySameDomain produces invalid result
jgv [Mon, 27 Sep 2021 16:00:37 +0000 (19:00 +0300)]
0032581: Modelling Algorithms - UnifySameDomain produces invalid result

1. Correct local function TransformPCurves of ShapeUpgrade_UnifySameDomain: take into account the case of seam edge.
2. Correct local function ReconstructMissedSeam of ShapeUpgrade_UnifySameDomain: use previously stored seam edge in some cases.

3 years ago0032595: Documentation - revise "Build OCCT" structure to highlight CMake usage
kgv [Wed, 29 Sep 2021 09:24:26 +0000 (12:24 +0300)]
0032595: Documentation - revise "Build OCCT" structure to highlight CMake usage

"Building with CMake tool" subsection has been moved out from "Windows" to a dedicated top-level section.
genproj sections have been merged and restructured.
Added description of some new CMake configuration options.
Updated URL to 3rd-party components on Development Portal.

3 years ago0032597: Coding Rules, Wasm_Window - add missing setter for DevicePixelRatio property
kgv [Wed, 29 Sep 2021 13:47:56 +0000 (16:47 +0300)]
0032597: Coding Rules, Wasm_Window - add missing setter for DevicePixelRatio property

3 years ago0032593: Documentation - get rid of unused file in the documentation.
aml [Tue, 28 Sep 2021 10:59:56 +0000 (13:59 +0300)]
0032593: Documentation - get rid of unused file in the documentation.

3 years ago0030148: Modeling Algorithms - exception in BRepOffestAPI_MakePipe for some periodic...
abulyche [Wed, 22 Sep 2021 09:56:33 +0000 (12:56 +0300)]
0030148: Modeling Algorithms - exception in BRepOffestAPI_MakePipe for some periodic BSpline spines

This problem was solved by fix for 0030597.
Added the non-regression test for this problem.

3 years ago0032557: Modeling Data - Use of BRepBuilderAPI_NurbsConvert create 2d p-curves with...
ifv [Fri, 24 Sep 2021 13:24:34 +0000 (16:24 +0300)]
0032557: Modeling Data - Use of BRepBuilderAPI_NurbsConvert create 2d p-curves with errors

BRepTools/BRepTools_NurbsConvertModification.cxx -
 Checking domain of 2dCurves if surfaces are periodic is improved

tests/bugs/moddata_3/bug32557 - test case added

3 years ago0032569: Modeling Algorithm - Section not found
ifv [Tue, 14 Sep 2021 14:11:17 +0000 (17:11 +0300)]
0032569: Modeling Algorithm - Section not found

IntPatch/IntPatch_WLineTool.cxx - adding control of maximal ratio of distances between 3 sequential points.
tests/bugs/modalg_7/bug32569 - new test case added
tests/lowalgos/intss/bug29972_1 test case is modified according new behavior of intersection algorithm

3 years ago0032578: Modeling Algorithms - Splitting face by set of edges fails
emv [Mon, 20 Sep 2021 15:07:30 +0000 (18:07 +0300)]
0032578: Modeling Algorithms - Splitting face by set of edges fails

Update information about ON/IN sub-shapes for all touched faces when intersection with shapes of lower types (edges and vertices) complete.
Previously only the faces participating in the Face/Face intersection were updated.

3 years ago0032590: Visualization, V3d_View - improve API for setting Image Based Lighting
kgv [Sun, 26 Sep 2021 10:03:25 +0000 (13:03 +0300)]
0032590: Visualization, V3d_View - improve API for setting Image Based Lighting

Added method V3d_View::SetImageBasedLighting() for managing IBL.
OpenGl_View implementation has been revised to handle IBL updates in a more straightforward way,

3 years ago0031039: Visualization - add elliptical gradient background style
achesnok [Tue, 21 Sep 2021 15:42:21 +0000 (18:42 +0300)]
0031039: Visualization - add elliptical gradient background style

Added new elliptical gradient fill method and updated vbackground command.
Renamed enum values of Aspect_GradientFillMethod and defined aliases for old ones.
Changed draw mode in OpenGl_BackgroundArray from triangle-strip to GL_TRIANGLES.