occt.git
7 months ago0033426: Data Exchange, VRML - Impossible to import VRML V1 CR0-WEEK-37 IR-2023-09-15
ichesnok [Mon, 24 Jul 2023 08:43:30 +0000 (09:43 +0100)]
0033426: Data Exchange, VRML - Impossible to import VRML V1

VrmlData_ShapeNode creating (for vrml v1 case) was added

7 months ago0033351: Data Exchange, Step - Improvement for thread safety of the STEP translator CR0-WEEK-36 IR-2023-09-08
ichesnok [Tue, 28 Mar 2023 12:29:44 +0000 (13:29 +0100)]
0033351: Data Exchange, Step - Improvement for thread safety of the STEP translator

Local StepData_Factors object usage for each session
Static variables isolated

7 months ago0033183: Data Exchange - Lose texture after saving XBF file
ichesnok [Thu, 31 Aug 2023 14:56:33 +0000 (15:56 +0100)]
0033183: Data Exchange - Lose texture after saving XBF file

Texture reading and writing changed in VisMaterial drivers

7 months ago0033450: Modeling algorithm - HLR algorightm stucks
akaftasev [Thu, 31 Aug 2023 11:42:05 +0000 (12:42 +0100)]
0033450: Modeling algorithm - HLR algorightm stucks

Selecting the middle point between XInf and XSup leads situation, where X values almost does not change.
To prevent this situation, select shifted point instead of middle.

7 months ago0033449: Modeling Algorithm - Crash in BRepTools_GTrsfModification::NewTriangulation... IR-2023-09-01
akaftasev [Tue, 29 Aug 2023 12:18:39 +0000 (13:18 +0100)]
0033449: Modeling Algorithm - Crash in BRepTools_GTrsfModification::NewTriangulation() method

Changed iteration limits from theTriangulation->NbTriangles() to theTriangulation->NbNodes()
Provided modification of the normals only with rotation (gp_GTrsf::Form() == gp_Other  leads to crash)

7 months ago0033446: Modeling Alghorithms - Creating offset with one of the degenerated edge... CR0-WEEK-34 IR-2023-08-25
akaftasev [Tue, 8 Aug 2023 11:52:12 +0000 (12:52 +0100)]
0033446: Modeling Alghorithms - Creating offset with one of the degenerated edge leads to crash

Added condition to prevent out of range error

8 months ago0033445: Coding - Changing binary XOR in boolean expression CR0-WEEK-32 IR-2023-08-11
akaftasev [Mon, 7 Aug 2023 08:58:01 +0000 (09:58 +0100)]
0033445: Coding - Changing binary XOR in boolean expression

Changed binary XOR to the ternary operator.

8 months ago0033420: Modeling Algorithm - Missing inner part after offset operation CR0-WEEK-31 IR-2023-08-04
akaftasev [Tue, 4 Jul 2023 13:23:22 +0000 (14:23 +0100)]
0033420: Modeling Algorithm - Missing inner part after offset operation

Added condition to not remove face image, consisting only of invalid edges for artifactically invalid face.
This face image should be connected with other image faces minimum through the edge.

8 months ago0033436: Data Exchange, DE_Wrapper - DEXCAFCascade_ConfigurationNode::BuildProvider...
oan [Thu, 27 Jul 2023 15:18:59 +0000 (16:18 +0100)]
0033436: Data Exchange, DE_Wrapper - DEXCAFCascade_ConfigurationNode::BuildProvider() not initialize provider

Pass pointer to DEXCAFCascade_ConfigurationNode to DEXCAFCascade_Provider;
Remove forcible manual reset of Provider's node in DE_Wrapper::FindProvider() to verify that all specializations of configuration node work properly without necessity of workarounds.

8 months ago0033421: Modeling Algorithms - ShapeUpgrade_UnifySameDomain throws exception
akaftasev [Tue, 1 Aug 2023 12:10:47 +0000 (13:10 +0100)]
0033421: Modeling Algorithms - ShapeUpgrade_UnifySameDomain throws exception

In method ShapeUpgrade_UnifySameDomain::IntUnifyFaces() the searched edge is finally checked that it is not empty before accessing it.

8 months ago0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when...
akaftasev [Tue, 1 Aug 2023 13:00:20 +0000 (14:00 +0100)]
0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and SectionAxis

Added protection from crashes when IsParallel

8 months ago0033398: Modeling Algorithms - ShapeUpgrade_UnifySameDomain throws exception on speci...
akaftasev [Tue, 1 Aug 2023 14:05:10 +0000 (15:05 +0100)]
0033398: Modeling Algorithms - ShapeUpgrade_UnifySameDomain throws exception on specific STEP model

Added additional checking in static method FindCoordBounds to avoid processing null pcurves

8 months ago0026578: Modeling Algorithm - Exceptions in offset operation with intersection
akaftasev [Wed, 2 Aug 2023 11:36:55 +0000 (12:36 +0100)]
0026578: Modeling Algorithm - Exceptions in offset operation with intersection

Added test cases

8 months ago0032681: Data Exchange - Missed dimension after STEP export
ichesnok [Thu, 23 Mar 2023 09:54:10 +0000 (09:54 +0000)]
0032681: Data Exchange - Missed dimension after STEP export

Changed level of detalisation (TopAbs_EDGE -> TopAbs_VERTEX by default)

9 months ago0032879: Visualization, AIS_ViewController - define separate gesture mappings for... CR0-WEEK-30 IR-2023-07-28
sshutina [Mon, 17 Jul 2023 22:14:55 +0000 (23:14 +0100)]
0032879: Visualization, AIS_ViewController - define separate gesture mappings for dragging

Fixed problem of usage of objects dragging during zoom and pan
Added new draw command to change gesture for muse buttons
Added test

9 months ago0033419: Tests - Updating test case data CR0-WEEK-27
dkulikov [Tue, 4 Jul 2023 09:29:13 +0000 (10:29 +0100)]
0033419: Tests - Updating test case data

Filenames in bug33414 are updated.

9 months ago33343: Documentation, Overview - Incorrect doxygen syntax
btokarev [Mon, 19 Jun 2023 14:41:36 +0000 (15:41 +0100)]
33343: Documentation, Overview - Incorrect doxygen syntax

Removed inclusions of empathized *text* from the titles
Text empathizers re-implemented
Reverted to no empathize style

9 months ago0033414: Modeling Algorithms - Access violation during executing BRepAlgoAPI_Section... CR0-WEEK-26 IR-2023-06-30
dkulikov [Thu, 22 Jun 2023 15:54:21 +0000 (16:54 +0100)]
0033414: Modeling Algorithms - Access violation during executing BRepAlgoAPI_Section::Build()

Crush occurred due to the fields
IntTools_SurfaceRangeLocalizeData::myUParams,
IntTools_SurfaceRangeLocalizeData::myVParams
and IntTools_SurfaceRangeLocalizeData::myGridPoints not being checked
for NULL in some cases.
Missing checks are added.

10 months ago0031956: Visualization - provide Image_AlienPixMap::Save() writing into a memory...
mzernova [Fri, 19 Nov 2021 07:11:21 +0000 (07:11 +0000)]
0031956: Visualization - provide Image_AlienPixMap::Save() writing into a memory buffer instead of a file

Added two new Image_AlienPixMap::Save() overloads, taking std::ostream or memory buffer arguments.

10 months ago0033391: Coding - Clearing old definition way for strcasecmp CR0-WEEK-22 CR0-WEEK-23 CR0-WEEK-24 IR-2023-06-02 IR-2023-06-16
dpasukhi [Mon, 22 May 2023 11:53:10 +0000 (12:53 +0100)]
0033391: Coding - Clearing old definition way for strcasecmp

Removed artifacts for strcasecmp definitions

10 months ago0033372: Visualization - Compilation of git master fails against vtk 9.2.6
dpasukhi [Fri, 19 May 2023 20:04:43 +0000 (21:04 +0100)]
0033372: Visualization - Compilation of git master fails against vtk 9.2.6

Fixed compilation on vtk 9.2.6.
Resolved name collisions with X11 headers

10 months ago0033390: Coding - Debug version of OCCT does not compile CR0-WEEK-21 IR-2023-05-26
akaftasev [Mon, 22 May 2023 11:00:32 +0000 (12:00 +0100)]
0033390: Coding - Debug version of OCCT does not compile

Deleted code for OCCT_DEBUG was returned and added under macros OCCT_DEBUG

11 months ago0033379: Coding - Processing Clang-15 warnings CR0-WEEK-20 IR-2023-05-19
dpasukhi [Wed, 17 May 2023 19:45:06 +0000 (19:45 +0000)]
0033379: Coding - Processing Clang-15 warnings

Fixed warning generated by Clang++-15

11 months ago0033375: Coding - Static Analyzing processing. Performance
dpasukhi [Sat, 6 May 2023 22:56:45 +0000 (22:56 +0000)]
0033375: Coding - Static Analyzing processing. Performance

Performance update applied:
  - moving to const reference as much as possible
Result of CLANG_TIDY (static analyzing filter: perform*)

11 months ago0033361: Modeling Algorithm - Fuse operation generates incomplete result
akaftasev [Wed, 12 Apr 2023 13:05:50 +0000 (14:05 +0100)]
0033361: Modeling Algorithm - Fuse operation generates incomplete result

Added additional check of Face-Face intersection to avoid missing section edges because of sequence of Face-Face interference processing

11 months ago0033378: Configuration - Moving ExpToCas into separate module
dpasukhi [Mon, 15 May 2023 07:11:45 +0000 (08:11 +0100)]
0033378: Configuration - Moving ExpToCas into separate module

Moved ExpToCasExe and its DLL to new module - DETools
Created new module - DETools to keep tools to DE
Changed definition of main of ExpToCasExe to not const parameter
FlexLexer.h moved to general location into TKernel

11 months ago0030066: Data Exchange - Fail to load VRML from ArcGIS
ichesnok [Mon, 27 Mar 2023 08:37:44 +0000 (09:37 +0100)]
0030066: Data Exchange - Fail to load VRML from ArcGIS

Fixed VrmlData_Scene::readHeader method

11 months ago0033318: Data Exchange - Modifying the BRep flag after exporting the shape
ichesnok [Thu, 23 Mar 2023 20:06:06 +0000 (20:06 +0000)]
0033318: Data Exchange - Modifying the BRep flag after exporting the shape

Fixed condition for setting 'checked' flag

11 months ago0033369: Modeling Algorithms - BRepBuilderAPI_Transform makes invalid shape after...
anv [Fri, 28 Apr 2023 03:26:11 +0000 (04:26 +0100)]
0033369: Modeling Algorithms - BRepBuilderAPI_Transform makes invalid shape after transformation

Added check to avoid setting parametric boundaries to infinity.

11 months ago0033382: Configuration - Installation issue for debug mode for static build
dpasukhi [Tue, 16 May 2023 12:48:11 +0000 (13:48 +0100)]
0033382: Configuration - Installation issue for debug mode for static build

Updated install command to handle BUILD_SHARED_LIBS configuration

11 months ago0033350: Data Exchange, Step Import - Improving parsing performance IR-2023-05-12
dpasukhi [Wed, 22 Mar 2023 18:22:44 +0000 (18:22 +0000)]
0033350: Data Exchange, Step Import - Improving parsing performance

Improved performance of parser by disable checking for eof (20% parsing time)
Changed step parser's record to keep last one to fast insert into end.

11 months ago0033377: Data Exchange - STEPCAFControl_Reader crash in OCC 7.7.0
dpasukhi [Wed, 10 May 2023 18:26:55 +0000 (19:26 +0100)]
0033377: Data Exchange - STEPCAFControl_Reader crash in OCC 7.7.0

Added checking for null object for STEPCAFControl_Reader::SettleShapeData

12 months ago0033366: Documentation - Add description of BRepAlgoAPI_Algo::Shape() CR0-WEEK-16 IR-2023-04-21
msmediasofts [Tue, 28 Mar 2023 09:25:14 +0000 (11:25 +0200)]
0033366: Documentation - Add description of BRepAlgoAPI_Algo::Shape()

Added description of BRepAlgoAPI_Algo::Shape()

12 months ago0031777: Visualization - improve SelectMgr_EntityOwner to process selection scheme IR-2023-04-14
mzernova [Tue, 7 Feb 2023 02:17:58 +0000 (02:17 +0000)]
0031777: Visualization - improve SelectMgr_EntityOwner to process selection scheme

The selection scheme has been propagated to Owner object interface, and the
AIS_Selection::Select() method has been replaced to unify the logic.

12 months ago0023638: Data Exchange - Reading IGES file produced invalid shape CR0-WEEK-13 IR-2023-03-31
dorlov [Fri, 13 Jan 2023 13:25:17 +0000 (13:25 +0000)]
0023638: Data Exchange - Reading IGES file produced invalid shape

Removed double healing of Iges group entities
Added ShapeBuild_ReShape member to the IGESData_IGESModel class, shapes which are registered in ShapeBuild_ReShape class does not process to healing

12 months ago0033327: Data Exchange, IGES Import - SubfigureDef can't read string CR0-WEEK-12 IR-2023-03-24
dpasukhi [Thu, 9 Mar 2023 17:08:39 +0000 (17:08 +0000)]
0033327: Data Exchange, IGES Import - SubfigureDef can't read string

Fixed problem with texted types
Added checking for null string for subfigure via XCAF transferring

12 months ago0033337: DRAW - Can't load plugins on Linux OS
dpasukhi [Thu, 9 Mar 2023 16:24:11 +0000 (16:24 +0000)]
0033337: DRAW - Can't load plugins on Linux OS

WSL 2 have windows FileSystem and as a result we have \r symbols before \n
For this cases we can just remove \r\n (\n is a last symbol) for the node value.

12 months ago0033331: Data Exchange, Step Import - Unsupported Representation Items
dpasukhi [Mon, 20 Feb 2023 12:45:48 +0000 (12:45 +0000)]
0033331: Data Exchange, Step Import - Unsupported Representation Items

Fixed problem with iteration on Null RI

13 months ago0033345: Coding - Memory allocation operators got inaccessible IR-2023-03-17
anv [Thu, 16 Mar 2023 21:21:40 +0000 (21:21 +0000)]
0033345: Coding - Memory allocation operators got inaccessible

Macros was moved back to public.

13 months ago0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller`
akaftasev [Fri, 3 Mar 2023 15:43:40 +0000 (18:43 +0300)]
0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller`

Changed NCollection_BaseAllocator to NCollection_IncAllocator in BOPAlgo_PaveFiller::MakeBlocks()

13 months ago0033092: Data Exchange, Documentation - Implementation of DE_Wrapper documentation
dpasukhi [Mon, 28 Nov 2022 12:58:04 +0000 (12:58 +0000)]
0033092: Data Exchange, Documentation - Implementation of DE_Wrapper documentation

Implement new user-guide documentation for DE Wrapper

13 months ago0033264: Modeling Algorithms - Result of section operation is incomplete
akaftasev [Mon, 6 Mar 2023 20:16:01 +0000 (23:16 +0300)]
0033264: Modeling Algorithms - Result of section operation is incomplete

Test case added.

14 months ago0033263: Modeling Algorithms - BRepFilletAPI_MakeFillet doesn't work for current... IR-2023-02-10
akaftasev [Thu, 9 Feb 2023 15:36:01 +0000 (18:36 +0300)]
0033263: Modeling Algorithms - BRepFilletAPI_MakeFillet doesn't work for current parameters

Do not calculate edge state if there are more than 4 G1 connections for currect vertex.

14 months ago0030292: Modeling Algorithms - BRepBndLib should avoid using Poly_Polygon3D when...
akaftasev [Mon, 6 Feb 2023 11:17:10 +0000 (14:17 +0300)]
0030292: Modeling Algorithms - BRepBndLib should avoid using Poly_Polygon3D when called with useTriangulation set to false

BRepBndLib.cxx : treatment of useTriangulation is modified according to specified behavior of algorithm
BRepTest_CurveCommands.cxx : creation edge from polygon3d is added in Draw command mkedge.

14 months ago0030055: BRepOffset_MakeOffset throws "TopoDS_Vertex hasn't gp_Pnt" in intersection...
akaftasev [Mon, 6 Feb 2023 11:15:35 +0000 (14:15 +0300)]
0030055: BRepOffset_MakeOffset throws "TopoDS_Vertex hasn't gp_Pnt" in intersection mode

Diagnostic of mixed connectivity of faces along common edge is added.
If algorithm finds such pair of faces, it stops working with special error code.

14 months ago0033317: Data Exchange, Step Export - Ignoring color attached to the reference shape... IR-2023-02-03
dpasukhi [Thu, 26 Jan 2023 15:24:07 +0000 (15:24 +0000)]
0033317: Data Exchange, Step Export - Ignoring color attached to the reference shape label

Fixed problem with pure referencing.
  To export reference label to step we convert it to the assembly with one part.
  All attributes attached to the label should be moved to the new part.
  For working with it new map contains only pure reference labels, that converted to the part
  was implemented to the STEPCAFControl_Writer.
Updated code style of the STEPCAFControl_Writer
Improved ability to export labels from different documents
Removed OCCT_Debug macros to print in Trace gravity

14 months ago0027848: Visualization - sensitivity of lines is too high
mzernova [Tue, 22 Nov 2022 11:30:24 +0000 (11:30 +0000)]
0027848: Visualization - sensitivity of lines is too high

Improved objects sorting by depth.

The sensitivity calculation for the manipulator has been changed.
Now the sensitivity of the elements of the manipulator depends on its size.

Also fixed the problem of erroneous selection of unfilled circles (SelectMgr_Frustum<N>::hasCircleOverlap() function).

Test case vselect/bugs/bug27848 added.

14 months ago0030828: Data Exchange - The commands getting shapes from XCAF document should be...
dorlov [Thu, 19 Jan 2023 16:20:59 +0000 (16:20 +0000)]
0030828: Data Exchange - The commands getting shapes from XCAF document should be available in C++

Added two new overloaded methods XCAFDoc_ShapeTool::GetOneShape: one returns TopoDS_Shape from TDF_LabelSequence and the other from a sequence of all top-level shapes which are free

14 months ago0032570: Visualization, AIS_AnimationObject - define rotation around axis
mzernova [Mon, 27 Dec 2021 23:57:13 +0000 (23:57 +0000)]
0032570: Visualization, AIS_AnimationObject - define rotation around axis

When using AIS_AnimationObject, linear interpolation is performed from one gp_Trsf transformation to another.
But when an object rotates around a specific axis, the object moves not along a linear trajectory,
but along a circle. Therefore, a separate class AIS_AnimationAxisRotation was created that
allows to animate rotation around a specific axis.

Test case tests/v3d/bugs/bug32570 was added.

14 months ago0033307: Data Exchange, Step Import - Crash after reading empty edge loop
dpasukhi [Wed, 11 Jan 2023 11:29:08 +0000 (11:29 +0000)]
0033307: Data Exchange, Step Import - Crash after reading empty edge loop

Fixed problem with empty edge list in the edge loop, mark as a fail entity in this case

14 months ago0033320: Data Exchange - Reading of a VRML file with a long line fails IR-2023-01-27
vro [Tue, 24 Jan 2023 09:48:33 +0000 (09:48 +0000)]
0033320: Data Exchange - Reading of a VRML file with a long line fails

Implement rolling back input stream to split on possible logical parts by comma or space.

14 months ago0033312: Data Exchange - NULL-dereference in StepToTopoDS_TranslateShell::Init() IR-2023-01-20
dorlov [Thu, 12 Jan 2023 11:39:07 +0000 (11:39 +0000)]
0033312: Data Exchange - NULL-dereference in StepToTopoDS_TranslateShell::Init()

The condition "if" was changed to opposite

15 months ago0033311: Modeling Algorithm - No results of thrusection algorithm
akaftasev [Mon, 16 Jan 2023 11:05:53 +0000 (14:05 +0300)]
0033311: Modeling Algorithm - No results of thrusection algorithm

Changed default value of myPercent

15 months ago0033315: Mesh - BRepMesh_IncrementalMesh takes forever to finish (ends up with system...
oan [Mon, 16 Jan 2023 13:19:06 +0000 (16:19 +0300)]
0033315: Mesh - BRepMesh_IncrementalMesh takes forever to finish (ends up with system memory, etc)

Added test case

15 months ago0033305: Coding - BOPTools_PairSelector::Clear method uses "Clear" instead of "clear...
rodrlyra [Thu, 12 Jan 2023 16:43:29 +0000 (16:43 +0000)]
0033305: Coding - BOPTools_PairSelector::Clear method uses "Clear" instead of "clear" on std::vector

15 months ago0033306: Modeling Algorithm - Crash in TrimEdge() method IR-2023-01-13
akaftasev [Wed, 4 Jan 2023 11:47:00 +0000 (14:47 +0300)]
0033306: Modeling Algorithm - Crash in TrimEdge() method

Added condition to not cut the edges by closely located parameters

15 months ago0033298: Modeling Algorithm - Offset operation gives wrong result CR0-WEEK-1 IR-2023-01-06
akaftasev [Wed, 21 Dec 2022 19:11:49 +0000 (22:11 +0300)]
0033298: Modeling Algorithm - Offset operation gives wrong result

Process only those images of the faces, if one if them has anInsideEdges/anInsideVertices and the other is not.

15 months ago0033227: Modeling Algorithm - BOPAlgo_BuilderSolid generates incomplete result
akaftasev [Thu, 22 Dec 2022 14:09:54 +0000 (17:09 +0300)]
0033227: Modeling Algorithm - BOPAlgo_BuilderSolid generates incomplete result

Deleted outer loop for shells.
Added additional check of edges orientation for RefineShell().

15 months ago0033304: Modeling Data - Floating point signal when converting a B-spline curve to...
msv [Tue, 27 Dec 2022 19:19:11 +0000 (22:19 +0300)]
0033304: Modeling Data - Floating point signal when converting a B-spline curve to analytical form

Protect the static function ConicDefinition from calling sqrt with negative argument.

15 months ago0033247: Modeling Algorithm - BOP report small edges problem and produce empty result CR0-WEEK-51 IR-2022-12-23
akaftasev [Fri, 9 Dec 2022 11:01:08 +0000 (14:01 +0300)]
0033247: Modeling Algorithm - BOP report small edges problem and produce empty result

Build shifted pcurve for ellipse and circle cases.

16 months ago0033265: Modeling Algorithms - Boolean operation hangs on the attached shapes IR-2022-12-16
akaftasev [Fri, 9 Dec 2022 16:32:00 +0000 (19:32 +0300)]
0033265: Modeling Algorithms - Boolean operation hangs on the attached shapes

Added test case.

16 months ago0033244: Modeling Algorithms - Surface-surface intersection produces the double curves CR0-WEEK-50
ifv [Tue, 6 Dec 2022 07:12:22 +0000 (10:12 +0300)]
0033244: Modeling Algorithms - Surface-surface intersection produces the double curves

IntAna_QuadQuadGeo.cxx - estimation of angular tolerance is added for case cone-cone

tests/lowalgos/intss/bug33244 - new test case added

16 months ago0030781: Sweep algorithm creates non-planar edges (orig. BOPAlgo_MakerVolume fails... CR0-WEEK-49 IR-2022-12-11
ifv [Fri, 2 Dec 2022 08:47:37 +0000 (11:47 +0300)]
0030781: Sweep algorithm creates non-planar edges (orig. BOPAlgo_MakerVolume fails to build a solid)

BRepFill/BRepFill_AdvancedEvolved.cxx - estimation of angular tolerance is added in method GetLids()

tests/evolved/voluved/bug30781 - new test added

16 months ago0033246: Data Exchange, DE Wrapper - Checking license leads to performance problem
dpasukhi [Fri, 2 Dec 2022 09:14:38 +0000 (09:14 +0000)]
0033246: Data Exchange, DE Wrapper - Checking license leads to performance problem

ReWork UpdateLoad functionality:
UpdateLoad calls only if provider is found.
UpdateLoad calls only for chosen type of translation (read/write)
Add new method to UpdateLoad all registered nodes.

16 months ago0031919: Modeling Algorithms - General Fuse raises exception on attempt to imprint...
nunomsil [Wed, 7 Dec 2022 14:45:36 +0000 (14:45 +0000)]
0031919: Modeling Algorithms - General Fuse raises exception on attempt to imprint a contour to a shell

Exception no longer occurs in current version. However, fuzzyvalue should be set to 1 for the result of the operation to make sense (result of common is 1 wire). Test case added

16 months ago0033235: Configuration - Solving the problem with static building of ExpToCasExe IR-2022-12-04
dpasukhi [Tue, 29 Nov 2022 21:27:40 +0000 (21:27 +0000)]
0033235: Configuration - Solving the problem with static building of ExpToCasExe

Added new dependency to ExpToCasExe - CSF_wsock32 (on Win only)

16 months ago0033250: Configuration - Missing Limits header file
dpasukhi [Fri, 2 Dec 2022 16:08:06 +0000 (16:08 +0000)]
0033250: Configuration - Missing Limits header file

Added new include limits to fix build problem

16 months ago0033218: Data Exchange - XCAFPrs_Texture not allow to use classes inherited from...
stv [Thu, 24 Nov 2022 09:48:22 +0000 (12:48 +0300)]
0033218: Data Exchange - XCAFPrs_Texture not allow to use classes inherited from Image_Texture

Type of field XCAFPrs_Texture::myImageSource was changed from Image_Texture to Handle(Image_Texture)

16 months ago0033232: Data Exchange, DE_Wrapper - Implement ability to change global session
dpasukhi [Tue, 29 Nov 2022 15:43:56 +0000 (15:43 +0000)]
0033232: Data Exchange, DE_Wrapper - Implement ability to change global session

Add ability to set/get global session

16 months ago0033230: Data Exchange, DE Wrapper - Update API to find CAD provider
dpasukhi [Tue, 29 Nov 2022 14:38:48 +0000 (14:38 +0000)]
0033230: Data Exchange, DE Wrapper - Update API to find CAD provider

Moved FindProvider method to public section
Made FindProvider as virtual to make it possible to overwrite.

16 months ago0033228: Data Exchange, DE Wrapper - Make the document argument of the method Read...
dpasukhi [Tue, 29 Nov 2022 09:36:58 +0000 (09:36 +0000)]
0033228: Data Exchange, DE Wrapper - Make the document argument of the method Read const handle

Rewrite document argument for DE_Wrapper Read method

16 months ago0032965: PMIVis - PMIVis_TOT_Vectorized text regressions
sshutina [Mon, 16 May 2022 09:11:15 +0000 (12:11 +0300)]
0032965: PMIVis - PMIVis_TOT_Vectorized text regressions

Added the ability to draw a shaded shape in the required group.

16 months ago0031865: Mesh - triangulation fails with large deflection values due to unhandled...
oan [Mon, 21 Nov 2022 17:04:09 +0000 (20:04 +0300)]
0031865: Mesh - triangulation fails with large deflection values due to unhandled Standard_OutOfRange, BRepMesh_PairOfIndex::Append()

Define minimum number of points for specific types of curves like it was done for circular edges.

16 months ago0033156: Modeling Algorithms - Planar face creation problem
knosulko [Fri, 28 Oct 2022 13:38:45 +0000 (16:38 +0300)]
0033156: Modeling Algorithms - Planar face creation problem

BRepLib_MakeFace::BRepLib_MakeFace: deleted degenerative edges from the input wire;
add test tests\mkface\mkplane\bug33156.

16 months ago0022821: Crash with BRepFilletAPI_MakeFillet
ddzama [Fri, 21 Oct 2022 13:28:30 +0000 (16:28 +0300)]
0022821: Crash with BRepFilletAPI_MakeFillet

test bugs modalg_7 bug22821 failed on fillet shape with 5-th edge.
Experimentally has been found that reducing of parameter
ChFi3d_Builder::tolesp for this task solves the issue.

So, as soluton it is proposed to link parameter toleps with parameter range of
spine curve. So, production coefficient has been set to pass all tests and
2 teset was extended: tests/blend/complex/A6, tests/bugs/modalg_7/bug22821

first has been extended to test different scaling factors,
second has been extended to make fillet on all edges from 12.

Additionally:
 - fixed misusage of tolesp in contexts where tolerance of point in 3d is excepted;
     In some context usage of tol_esp is irrelevant, because its essentiality - tolerance of the parameter on the 3d curve.
     So, in such context it has been replaced with new parameter tol3d (with fix value 1.0e-4).
     Get rid of tolapp3d duplication constant - tol_3d
 - tolesp = 5.0e-5 * (umax - umin)
 - tolesp replaced by tolpoint2d/tolpoint3d in several classes.
     Blend_Walking
     BRepBlend_SurfRstLineBuilder
     BRepBlend_RstRstLineBuilder
     Blend_CSWalking
     Instead `tolesp` - `tolgui` is employed in contexts where tolerance of guide curve parameter is excepted.
     Instead `tolesp` - `tolpoint2d` or `tolpoint3d` is employed in contexts where tolerance of point in 2d or 3d space is excepted.
 - Replace tolesp with tolpoint2d/tolpoint3d in BBPP function argument.
 - Use tolapp3d instead tolesp in BonVoisin function,

16 months ago0032934: Modelling Algorithms - BRepExtrema_DistShapeShape returns two solutions...
ddzama [Thu, 24 Nov 2022 13:24:14 +0000 (16:24 +0300)]
0032934: Modelling Algorithms - BRepExtrema_DistShapeShape returns two solutions instead of one

distmini of two edges returns two solution points instead one.
Second unneeded solution point is the same as first.

The problem was in fact that second edge has continuity C0.
In this case additional extremas analysis performed in special procedure

PERFORM_C0

And second point found in this procedure.
Folowing code of

BRepExtrema_DistanceSS::Perform (variant for Edge/Edge)

we should this additional solution extremas set
to be object of test TRI_SOLUTION before pushing
into main list of solution.
This solves the problem.
Corresponding test and compound with edges has been created.

Additionally, in the function

PERFORM_C0

an obvious error has fixed.

16 months ago0033180: We had a problem calling the OCC library at the customer site, and the progr...
akaftasev [Thu, 17 Nov 2022 07:25:36 +0000 (10:25 +0300)]
0033180: We had a problem calling the OCC library at the customer site, and the program crashed

Added status for thrusection operations and changed throw constructions to set of the status and break the function.

16 months ago0033225: Changing the status of tests on Ubuntu 20.04 and Windows 64 VC142 CR0-WEEK-47 IR-2022-11-28
smoskvin [Sat, 26 Nov 2022 12:37:37 +0000 (15:37 +0300)]
0033225: Changing the status of tests on Ubuntu 20.04 and Windows 64 VC142

16 months ago0033217: DRAW - Missed Standard_EXPORT attribute in DrawTrSurf_Set* functions
atereshi [Tue, 22 Nov 2022 13:46:06 +0000 (16:46 +0300)]
0033217: DRAW - Missed Standard_EXPORT attribute in DrawTrSurf_Set* functions

16 months ago0032818: Modeling Algorithms - Result of sweep operation is invalid
gelin [Wed, 9 Feb 2022 05:26:39 +0000 (13:26 +0800)]
0032818: Modeling Algorithms - Result of sweep operation is invalid

BRepFill_TrimShellCorner.cxx - setting correct orientation for NewEdge
tests/pipe/bugs/bug32818 - new test case added

16 months ago0030256: ACIS Import - crash while importing SAT file on constructing a pipe
ika [Thu, 6 Oct 2022 09:39:03 +0000 (12:39 +0300)]
0030256: ACIS Import - crash while importing SAT file on constructing a pipe

Fix for thin section with both first and last parameters located in one segment.

16 months ago0033193: Modeling Algorithms - Regression: UnifySameDomain raises SIGSEGV
ifv [Sat, 12 Nov 2022 17:45:36 +0000 (20:45 +0300)]
0033193: Modeling Algorithms - Regression: UnifySameDomain raises SIGSEGV

ShapeUpgrade_UnifySameDomain.cxx - method ReconstructMissedSeam is improved.

tests/bugs/heal/bug33193 - new test case added

16 months ago0027122: Data Exchange - invalid shapes are produced during model translation due...
atereshi [Fri, 15 Jul 2022 11:09:09 +0000 (14:09 +0300)]
0027122: Data Exchange - invalid shapes are produced during model translation due to huge face tolerance

Problem: The shape has two faces that dimensions are less than tolerance in the specified STEP file. This situation produces the invalid shape.
Change: Shape process has operator FixFaceSize, that is exactly suitable for this shape. The only option of FixFaceSize operator was added to InterfaceStatic, to manage the operator from DRAW command.
Result: The shape without artifacts can be reproduced from STEP file with an extra healing procedure.

16 months ago0033179: Modeling Algorithms - Crash in ShapeFix_Shape with the attached object,...
ifv [Mon, 24 Oct 2022 09:25:03 +0000 (12:25 +0300)]
0033179: Modeling Algorithms - Crash in ShapeFix_Shape with the attached object, when healing for fixing SameParameterFlag

BSplCLib_2.cxx - method MergeBSplineKnots is modified in order to have always not empty result.
Geom2dConvert.cxx - in static function MultNumandDenom tolerance for comparing knots is decreased.

tests/bugs/modalg_8/bug33179 test case added

16 months ago0026441: Modeling Algorithms - BRepOffset_MakeOffset affects original shape
ifv [Fri, 30 Sep 2022 12:45:10 +0000 (15:45 +0300)]
0026441: Modeling Algorithms - BRepOffset_MakeOffset affects original shape

BRepOffset_MakeOffset.cxx - tolerance control for building planar faces is implemented,
                            updating tolerance for initial entities is avoided

BRepAlgo_Loop.cxx - "total" setting tolerance 0.001 is removing

BRepLib.cxx - checking of "locked" for vertex is removing in static function UpdShTol

QABugs_20.cxx - add new command OCC26441 for checking tolerance differenses between two "identical" shapes

tests/bugs/modalg_7/bug30054 - case now is "BAD", because really result shape is invalid: many faces has not closed wires with huge gaps between ends of edges. Result was "OK" only because tolerances of vertices were increased by algorithm to cover all gaps.

tests/bugs/modalg_8/bug26441 - new test case added

Other test: B3, C8, A7, C8: they were "BAD" and now are "BAD", only some problems are changed.

16 months ago0033173: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape causing Stand...
ifv [Mon, 17 Oct 2022 14:22:44 +0000 (17:22 +0300)]
0033173: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape causing Standard_OutOfRange exception

Extrema/Extrema_ExtCC.cxx - checking number of solutions is added

tests/bugs/modalg_8/bug33173 - test case added

16 months ago0033187: Modeling Algorithms - Crash in postprocessing of imported shape
atereshi [Wed, 26 Oct 2022 13:59:54 +0000 (16:59 +0300)]
0033187: Modeling Algorithms - Crash in postprocessing of imported shape

Problem: Desynchronization of behaviors of GeomAdaptor_Curve::NbIntervals and
 GeomAdaptor_Curve::Intervals functions. First calculates number of intervals, then
 array is created and second fills the array. In some cases the size of array
 is less than need for filling.

Change:
1. Added function BSplCLib::Intervals that calculates number of interval and fills
 the array with its (if needed).
2. Simplified the algorithm of intervals calculation.
3. GeomAdaptor_Curve::NbIntervals/Intervals and Geom2dAdaptor_Curve::NbIntervals/Intervals
 use BSplCLib::Intervals.
4. When creating an adapter for the base curve, the boundaries of the adapter for the offset curve are applied.
5. Test for problem shape was created: bugs modalg_8 bug33187.

Result: The new approach eliminates the problem of writing outside the array bounds.

16 months ago0033144: Modeling Algorithms - Wrong result of Shape Proximity
knosulko [Thu, 20 Oct 2022 10:15:07 +0000 (13:15 +0300)]
0033144: Modeling Algorithms - Wrong result of Shape Proximity

Added step of refinement the coarser of the two shapes meshes to produce two meshes with approximately the same density.
Added tests lowalgos/proximity.

Fixed accounting of parameters to adjust number of initial sample points

16 months ago0033170: Modeling Algorithms - Checking for canonical geometry: plane detection problems
ifv [Fri, 14 Oct 2022 09:59:06 +0000 (12:59 +0300)]
0033170: Modeling Algorithms - Checking for canonical geometry: plane detection problems

GeomLib_IsPlanarSurface.cxx - using poles for checking BSpline, Bezier curves and surface changed
                              on checking by curve, surface points.

BRepOffset_MakeOffset.cxx - set normal of plane surface according to normal of initial face surface

tests/cr/bugs/bug33170 - new test case added

16 months ago0032977: OCC V7.5, V7.6 cannot read STEP color correctly for the root label, but...
ona [Tue, 11 Oct 2022 12:43:39 +0000 (15:43 +0300)]
0032977: OCC V7.5, V7.6 cannot read STEP color correctly for the root label, but v6.8 can

- color overriding mechanism is implemented for assembles, parts and instances

16 months ago0033171: Modeling Algorithms - Invalid result of faces unification
Eugeny Maltchikov [Thu, 13 Oct 2022 14:44:47 +0000 (17:44 +0300)]
0033171: Modeling Algorithms - Invalid result of faces unification

Avoid unification of the faces belonging to the different shells.

17 months agoIncrement OCCT version up to 7.8.0dev
smoskvin [Wed, 2 Nov 2022 10:27:07 +0000 (13:27 +0300)]
Increment OCCT version up to 7.8.0dev

17 months ago0033198: Using a third-party Draco to compile in DEBUG mode OCCT-770 V7_7_0
dpasukhi [Fri, 11 Nov 2022 17:04:00 +0000 (17:04 +0000)]
0033198: Using a third-party Draco to compile in DEBUG mode

Added new CMake variables to build using DRACO
Windows OS works with Debug and Release configuration DRACO
Linux works with Release configuration DRACO

17 months agofixed compilation by the genproj tool
smoskvin [Wed, 9 Nov 2022 15:27:55 +0000 (18:27 +0300)]
fixed compilation by the genproj tool

17 months ago0033190: Error on de_wrapper/configuration/A3
atychini [Wed, 2 Nov 2022 19:10:10 +0000 (22:10 +0300)]
0033190: Error on de_wrapper/configuration/A3

Removing provider.VRML.OCC.read.memory.limit from the test because this parameter doesn't exist inside the Vrml_ConfigurationNode class

17 months ago0027142: Data Exchange - add possibility to set location in XCAFDoc_ShapeTool interface
aba [Mon, 8 Feb 2016 11:47:57 +0000 (14:47 +0300)]
0027142: Data Exchange - add possibility to set location in XCAFDoc_ShapeTool interface

17 months ago0033032: Samples - Warning on Ubuntu 20.04
azv [Wed, 29 Jun 2022 14:32:17 +0000 (17:32 +0300)]
0033032: Samples - Warning on Ubuntu 20.04

Fix warnings:
* catching polymorphic type 'class Standard_Failure' by value [-Wcatch-value=]
* this 'if' clause does not guard... [-Wmisleading-indentation]

17 months ago0032350: Data Exchange - STEPControl_Writer.writeStream(std::ostream)
mahaidong [Fri, 14 May 2021 06:35:28 +0000 (14:35 +0800)]
0032350: Data Exchange - STEPControl_Writer.writeStream(std::ostream)

STEPCAFControl_Writer::WriteStream(), STEPControl_Writer::WriteStream() - added interface for writing into stream.
STEPCAFControl_Reader::ReadStream() - added stream reading method (similar to STEPControl_Reader::ReadStream()).

Added option -stream to commands ReadStep, WriteStep, and testwritestep.

17 months ago0032053: Mesh - Invalid mesh after shape scaling
oan [Thu, 20 Oct 2022 18:09:09 +0000 (21:09 +0300)]
0032053: Mesh - Invalid mesh after shape scaling

Added test case

17 months ago0031926: Shape Healing - ShapeAnalysis::OuterWire() considers next iteration element...
oan [Wed, 31 Aug 2022 14:40:33 +0000 (17:40 +0300)]
0031926: Shape Healing - ShapeAnalysis::OuterWire() considers next iteration element always to be a wire causing skipping of primal one

ShapeAnalysis::OuterWire(): fixed missed logic when TopoDS_Iterator notifies about more objects to iterate, but there are only vertices and no additional wires at all.