1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00
Commit Graph

5455 Commits

Author SHA1 Message Date
nds
d2b61a3a3c 0032205: Visualization - implementing new selection scheme in context - replace extra
AIS_SelectionScheme_ReplaceExtra introduce

(cherry picked from commit 19efc0e3269d7c3173af73ecb131eaf0635e88c8)
(cherry picked from commit 07135fceaa1a6db4ca8611ae4611d89611b3d6d5)
2021-03-29 13:03:24 +03:00
mpv
b32f772653 0031921: Application Framework - reading OCAF data from several threads is not possible
Make myLastFoundChild field of TDF_LabelNode that can be changed during accessing to different sub-labels in different threads as atomic (only for newer versions of compilers which support this "atomic").

Added definition of Standard_ATOMIC macro to the Standard_Macro.hxx

(cherry picked from commit b84b672185)
(cherry picked from commit 938ceb32b369c81c87716054fce5426b00354a44)
(cherry picked from commit e9ad8d4d65005119a461cbd5bfa9292efa773a06)
2021-03-29 13:03:17 +03:00
age
c1ae749495 0031987: Visualization - Slow rectangular selection on models with big number of sensitives
SelectMgr_SensitiveEntitySet now stores a map of registered owners with a counter of registered entities.
SelectMgr_ViewerSelector::traverseObject() now reads the number of sensitive entities for specific owner
from SelectMgr_SensitiveEntitySet instead of re-computing it every time.

(cherry picked from commit 266877a7c3)
(cherry picked from commit 86d48bca1ae8a63ecf096845464bfd332d20d47c)
(cherry picked from commit 21351d74ac5a7c61a89c0cfe701f1d4ce1a8219f)
2021-03-29 13:03:08 +03:00
nds
116a682e01 0031945: Foundation Classes - unique names of alerts of message report in DumpJson
- add OCCT_DUMP_FIELD_VALUE_NUMERICAL_INC and OCCT_DUMP_FIELD_VALUES_DUMPED_INC - to increment key Value;
- add OCCT_DUMP_STREAM_VALUE_DUMPED - to give stream as a parameter of the DumpJson;
- correct Message_Report, Message_CompositeAlerts to increment keys;
- correct Message_AttributeMeter to have in result start and stop values united in value block: [start stop]. It's better for parsing;
- correct result of Message::MetricToString output for updated in 29451 Message_MetricType enum;
- correct Standard_Dump::AddValuesSeparator to avoid adding ',' in additional case;
- correct Standard_Dump::FormatJson to add opening/closing brace for the whole result (for valid parsing);
- correct Standard_Dump::FormatJson to ignore '\n' in value.

(cherry picked from commit 04114fd201)
(cherry picked from commit f072da554cb00e8554add714fecd037625ab305d)
(cherry picked from commit 099b980f17d0f2a735907b060d2beef38fabb207)
2021-03-29 13:02:59 +03:00
nds
c6835e3a6e 0032001: Visualization - moving dump of selection owner from sensitive to selection manager
(cherry picked from commit 983aaaeb03)
(cherry picked from commit b9a984420b42f4d691bdfa951900b94d2212dd6c)
(cherry picked from commit d9f93fe26d2f3b88203cb8deb594543008586c12)
2021-03-29 13:02:51 +03:00
nds
3fb7fe54db 0031350: Foundation Classes - Dump improvement for OCAF classes
- do not dump document in CDM_MetaData, just pointer text;
- move ID dump in to TDF_Attribute;
- extend TDF_Attribute with other important states(obtained by methods);
- extend TDocStd_Document  with other important states;
- avoid dumping of shapes in TNaming_UsedShapes (it takes much time);
- extend XCAFDoc, XCAFDimTolObjects dump to json;
- correct XCAFDoc_ColorTool, XCAFDoc_MaterialTool, XCAFDoc_LayerTool to dump only connected to the object information;
- correct XCAFDoc_Material to dump name and density value only if it exists;
- add check on correct direction in gp_Ax3.

(cherry picked from commit 39b707a6d2)
(cherry picked from commit 66f76672789556a406bc90d1e55f03a34c898c92)
(cherry picked from commit d6809290b27f442f19f5968d060d96c342522f64)
2021-03-29 13:02:42 +03:00
nds
0bef52e4d4 0032000: Foundation Classes - collect OSD_Timer time in message report
Added Message_MetricType_WallClock metric type handled by Message_AttributeMeter.
Added public OSD_Timer::GetWallClockTime() method.

(cherry picked from commit 9283bba22f)
(cherry picked from commit 1fa22f7f300aa07427d4dca79b819d6e1ee64d1a)
(cherry picked from commit 5ca5b071eaccdcc13746409c72f948e73f6732e6)
2021-03-29 12:59:42 +03:00
nds
d07479b4c7 0031944: Foundation Classes, Message_Report - add missing mutex locks for message level
(cherry picked from commit 38b336df80)
(cherry picked from commit d71f8376058c5cb73809d849b8d41a58bd4ba51f)
(cherry picked from commit b07c8a76b9887f5736eed04ee9bf74e7235e8e91)
2021-03-29 12:58:17 +03:00
nds
9add1088c9 0030737: Visualization - implementing new selection schemes in context
AIS_SelectionScheme enumeration is defined to set which selection behaviour is used in Select of context
AIS_InteractiveContext is corrected to use single Select method instead of combination of Select/ShiftSelect methods with a selection scheme parameter.
Upgrade: Select() -> SelectDetected/Rectangle/Polygon(AIS_SelectionScheme_Replace), ShiftSelect -> SelectDetected/Rectangle/Polygon(AIS_SelectionScheme_XOR)

(cherry picked from commit 75cf82505b)
(cherry picked from commit c372bb79e9aee8d740d35cc9a2ffa6fde23693a0)
(cherry picked from commit 31d98879e11c7e83ba44eb96c7dc78a3c1a50cd9)
2021-03-29 12:58:09 +03:00
kgv
b1afcbe6b6 0031965: Visualization - AIS_InteractiveContext::HilightWithColor() ignores passed highlight style
AIS_InteractiveContext::highlightGlobal() now passed through Style argument to highlightOwners().
Added OCC31965 command for testing AIS_InteractiveContext::Hilight() behavior.

(cherry picked from commit 4268c64672)
(cherry picked from commit a4c6316eeaa5d7f49f5cd1fe15b60c0a6ec124d2)
(cherry picked from commit bf15ddfd56c2f613c5260a66408ab37d31dc2e9e)
2021-03-29 12:57:58 +03:00
nds
72a35595e3 0031678: Visualization - text color becomes lighter than in 7.3.0
(cherry picked from commit 1855383438db33933106aa5848ac00569731a407)
(cherry picked from commit 90187b9476)
(cherry picked from commit 83e7b17fe1c27b231ee45ce30e0cdc2b1b62fa2f)
2021-03-29 12:57:42 +03:00
nds
6085d229e9 0031579: Visualization - OpenGl_CappingAlgo performance on some clipping planes
(cherry picked from commit 61d75276ea924e0fd22de0a2a927bce1d554de99)
(cherry picked from commit fa3bd5f2e5)
(cherry picked from commit 2ab0ba846ac3ac073552997d030d51392dc82314)
2021-03-29 12:57:34 +03:00
nds
f49447ab1d 0031197: Visualization - SetTransformPersistence for highlight, select presentations
(cherry picked from commit df3644aa35)
(cherry picked from commit 33ffefa2f7)
(cherry picked from commit 59433e7b4e49362dc1741dc00178ccec64c6cc5d)
(cherry picked from commit 775ee81f2e)
(cherry picked from commit b5f27165f323bd11ca0e2aec21e40e776d82780f)
2021-03-29 12:57:24 +03:00
apl
e31f540a70 0030791: Visualization - possibility to display materials by different hatching style for clipping
(cherry picked from commit d8c0506f55)
after cherry pick, it was ported on 7.5.0 and improved
(cherry picked from commit 23f0657aa572b8f775e9035c95491822d01e04da)
2021-03-29 12:57:08 +03:00
snn
a12fef54be 0030988: Add possibility to attach multiple files to notes
- Implemented
- Swap child/father in RemoveFromGroup method of NotesTool.

(cherry picked from commit 7c0ec2e214)
(cherry picked from commit cfb3c08a2c40ab36dfa70ce8d333039e9b2859f8)
2021-03-29 12:56:55 +03:00
snn
16f1269307 0030392: XCAFDoc_GraphNode doesn't copy backward links
(cherry picked from commit 6131065fae)
(cherry picked from commit 713624228050b8f7db4d8b2e22c7edfd8c832471)
(cherry picked from commit b7fb7db6ae)
(cherry picked from commit 68be9e7b9c)
(cherry picked from commit 6bc54a6b6fc335b802959d612f0ed4edbb5d5c33)
(cherry picked from commit ca5e485962)
(cherry picked from commit fcc93b4f342c14aed2ee39a4cfe14bbcb6e54ad4)
2021-03-29 12:56:47 +03:00
ema
fa2621ddc2 refs 474:Possibility to create and play animations
(cherry picked from commit cf1ae6e9fe)
2021-03-29 12:56:16 +03:00
ema
7fae652d75 refs #355: Add possibility to hide clipping plane
(cherry picked from commit a80c56fbab)
(cherry picked from commit 9924fbb0ea117405fc52c82ecc135217270f422e)
2021-03-29 12:42:30 +03:00
ema
a104137642 Storage the parts transparency in the view
(XCAFDoc/View fixes to store in the view: image, parts transparency, notes, notes positions)

(cherry picked from commit ea712b6b04)
(cherry picked from commit 52dc476c5feea48abab3fe997956348433f29a10)
2021-03-29 12:42:24 +03:00
bugmaster
94c00556ea Update version up to 7.5.1 V7_5_1 2021-02-02 11:51:56 +03:00
emv
bf67bbf8fe 0031912: Modeling Algorithms - Boolean Cut can't build resulting shape
Problem is fixed by #0032058. Integrating test case only.
2021-02-02 11:49:33 +03:00
ifv
edf111202c 0032058: Modeling Data - Extrema curve-surface gives wrong result for planar surface of revolunion and circle
Extrema_GenExtCS.cxx : added solution refinement, if solution seems to be "bad" according to special criteria.
Extrema_FuncExtCS.cxx : "cosmetic" modifications
BOPAlgo_PaveFiller_3.cxx : adding control of shape index to prevent exception in ShapeInfo
bugs/moddata_3/bug32058 : new test
2021-02-02 11:30:40 +03:00
jgv
bbdcdcdd80 0031845: Modeling Algorithms - BRepOffsetAPI_MakeThickSolid fails
Multiple changes in BRepOffset_MakeOffset algorithm:
- correct fusing vertices;
- correct building intersection edges;
- correct intersecting new edges in 2D;
- correct building wire on a new face;
- correct building history.
2021-01-29 13:47:21 +03:00
bugmaster
2ecd3a06a6 Update version up to 7.5.1.dev 2020-11-11 20:08:01 +03:00
bugmaster
628c0211d5 Increment OCCT version up to 7.5.0 V7_5_0 2020-11-02 19:52:44 +03:00
kgv
dbecff5fab 0031898: Coding Rules - extend Standard_WarningsDisable.hxx with -Wreorder 2020-11-02 19:41:29 +03:00
asuraven
7a88ce5b98 0029108: Crash writing STEP file
* Wrapped a try / catch block on creating objects in TopoDSToStep_MakeStepFace::Init()
2020-11-02 14:32:39 +03:00
Xu Zhongxing
2b7fd8c81c 0031887: IntTools_Context::IsPointInFace always return TRUE
If aDist >= aTol, bIn is never updated to false, and the function
always returns TRUE.
2020-10-30 18:25:19 +03:00
kgv
a8b9d7eb27 0031888: Configuration, qmake - linkage error due to missing .cpp file in TKMesh
OccToolkit.pri now handles also .cpp file extension.
2020-10-29 19:04:46 +03:00
dpasukhi
71af3370c4 0031878: DXF import - support Windows and ISO 8859 code pages in DXF import
Add support of converting Big5 and GBK code pages to Unicode within Resource_Unicode::ConvertFormatToUnicode
2020-10-29 19:01:54 +03:00
asuraven
40858cc79c 0030921: Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file -- refactoring
File StepToGeom_MakeBSplineCurve.pxx is removed, relevant code is converted to C++ template and merged to StepToGeom.cxx
2020-10-29 18:55:37 +03:00
asuraven
3940436ae2 0030921: Data Exchange - STEPCAFControl_Reader incorrectly reads the specified stp file -- fix
The number of weights is adjusted to the number of poles in StepToGeom::MakeBSplineCurve(2d).
2020-10-29 18:55:36 +03:00
kgv
c3da64a686 0031884: Data Exchange - NULL de-reference within STEPCAFControl_Reader::SetSourceCodePage()
Removed methods with unclear usage rules.
2020-10-28 22:19:23 +03:00
mzernova
4065c66c24 0031808: Visualization - NULL dereference in Graphic3d_Structure::IsDisplayed() on Removed presentation
Added a NULL check for IsDisplayed(), IsHighlighted(), IsTransformed(), IsVisible(), etc.
2020-10-28 22:18:12 +03:00
abv
94f16a8961 0014673: Provide true support for Unicode symbols
Construction of TCollection_ExtendedString from plain C string is fixed to consider input string as UTF-8 in several places (identified as described in notes to #31113).

Message_MsgFile is corrected to load resource file as UTF-8 (unless it has BOM indicating use of UTF-16).

Added tests for use of Unicode in some DRAW commands (bugs demo bug14673_*)
2020-10-28 22:18:11 +03:00
kgv
aa7e9f8d78 0031881: Coding Rules - OpenGl_HaltonSampler::initRandom() uses deprecated in C++14 function std::random_shuffle
Unused function has been removed.
2020-10-28 19:24:00 +03:00
akaftasev
5445eaeed5 0030003: Construction of pipe by two circular sections and spine curve leads to crash
GeomFill_NSection.cxx  : setting of UPeriodic flag while call constructor of BSpline surface is added

bug3003 : Test cases added
2020-10-27 19:46:14 +03:00
asuraven
07bc68e8d8 0031873: Samples, Qt OCCT Overview sample - Problems of compilation and launch in 32 bit mode on Windows 2020-10-26 19:47:54 +03:00
kgv
ec4128df29 0031876: Configuration - Prs3d_Arrow::DrawShaded() crashes in msvc10 win32 Release build
Use longer code syntax to workaround compiler bug.
2020-10-26 19:45:16 +03:00
abv
f41fd243b6 0031877: DRAW - some Visualization commands are not protected against uninitialized viewer
Added protections in DRAW commands against accessing Null context

Added test bugs demo bug31877
2020-10-25 08:46:49 +03:00
kgv
9f9490e1ae 0031875: Draw Harness, ViewerTest - command vaspects -mostContinuity lacks g1 and g2 options
vaspects -mostContinuity now accepts g1 and g2 values.
2020-10-23 19:58:51 +03:00
emv
0612bb7010 0031858: Modeling Algorithms - boolean operation crash between the given cylinder and torus.
Integrating test cases only, as the problem is not reproduced.
2020-10-23 19:57:30 +03:00
ifv
7ccfd41fa2 0031782: Modeling Algorithms - Regressions on VS 2019 (vc142) on fillet tests
ChFiKPart_ComputeData_FilPlnCyl.cxx - rewriting some code to avoid "extra" optimization
2020-10-23 19:56:03 +03:00
dpasukhi
692decba26 0031825: Data Exchange, STEP - NULL dereference while re-exporting model with empty Datum description
Fix adding name and description of the datum
2020-10-23 19:54:58 +03:00
dpasukhi
1b9cb073b9 0028454: Data Exchange, STEP reader - names with special characters cannot be read
- Add support of the control directives ( "\X2\" "\X4" "\X\" "\P*\" "\S\");
- Make param "read.stepcaf.codepage" base for conversion inside StepData instead of CAF;
- Rename "read.stepcaf.codepage" to "read.step.codepage".
- Add ISO 8859-1 - 9 code pages for conversion
- Add Resource_FormatType_NoConversion format type, that indicates non-conversion behavior
- Update old test cases that contain control directives
2020-10-22 17:54:29 +03:00
ifv
380748c340 0027469: Modeling Algorithms - Regression vs 6.9.1: Wrong result of Edge/Face intersection
IntTools/IntTools_BeanFaceIntersector.cxx - decreasing parameter aDeltaRestrictor in method ComputeRangeFromStartPoint(...) to avoid "jumping" across the common part boundary.

IntTools/IntTools_EdgeFace.cxx - method IsCoincident() - improving criteria of coincidence between edge and face.
2020-10-22 17:49:17 +03:00
kgv
a966542b8a 0031866: Documentation - add description to Graphic3d_NameOfMaterial enumeration values
Enumeration values have been renamed to use complete prefix Graphic3d_NOM_ -> Graphic3d_NameOfMaterial_
and to match string names (with old values preserved as aliases).
2020-10-22 17:40:42 +03:00
asuraven
8833fd4dc5 0031827: Samples - Qt OCCT Overview sample is not compiled with VS 2010
* Menu storage changed from json to XML (because Qt 4 does not support json)
 * C++11 for(object : container) construction changed to OCCT iterators / Qt foreach
 * enum type::name changed to type_name
 * non used class members removed
 * Qt connect functions changed to macros version
 * warning 4127 disabled for Q_INIT_RESOURCE in VS2010 / Qt 4 case
 * widgets parent problem on Qt 4 fixed
 * QRegularExpression changed to QRegExp
2020-10-22 17:35:37 +03:00
kgv
1877dc98c9 0031856: Draw Harness - ReadStep should propagate progress indicator
Added progress indication to commands ReadStep, WriteStep, ReadIges, WriteIges, XOpen, XSave.

Draw_ProgressIndicator::Reset() now backups Tcl result string before evaluating command,
so that Draw_ProgressIndicator destructor will not eat error/result message in main command.
2020-10-20 18:16:09 +03:00
jgv
3e98579a83 0031855: Modeling Algorithms - regression of the unifysamedom command.
Transformation of 2d-curves on elementary surfaces has been corrected.
2020-10-20 18:13:49 +03:00