occt.git
7 years ago0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view
kgv [Sun, 5 Feb 2017 08:33:39 +0000 (11:33 +0300)]
0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view

V3d_Viewer methods ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues,
RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane
do not redraw viewer anymore.

7 years ago0027182: Wrong result of General Fuse operation for two spheres
emv [Mon, 21 Mar 2016 10:14:20 +0000 (13:14 +0300)]
0027182: Wrong result of General Fuse operation for two spheres

1. The static method Standard_Real MinStep3D(...) in the class BOPTools_AlgoTools is
now checks if the computed 3D step is too big (relatively UV range of the faces)
for any of the faces.

2. The method PointInFace(...) of the class BOPTools_AlgoTools3D has been redesigned.
The new PointInFace(...) methods have been implemented to add possibility for looking the point
inside the face in necessary direction and distance from the edge of the face.
Note: old implementation is also functional.

3. Make methods for finding points near edges and computing normal directions on faces
return error status (0 in case of success).

4. Test case for the issue.

5. Test cases offset shape_type_i_c XJ2,XJ4,XJ5,XJ6 are improvements.

Removing useless file

7 years ago0028425: Open/save NamedShape changes order of shapes
dbv [Thu, 9 Feb 2017 11:50:17 +0000 (14:50 +0300)]
0028425: Open/save NamedShape changes order of shapes

Changed order of shapes when reading from bin and xml document.

Small correction of test case for issue CR28425

7 years ago0028440: Documentation - Doxygen errors on Linux
abv [Thu, 9 Feb 2017 12:32:24 +0000 (15:32 +0300)]
0028440: Documentation - Doxygen errors on Linux

Extensions of PNG files is corrected to be lowercase
Duplicate subsection tag is corrected in Draw user guide

7 years ago0028431: Coding, Graphic3d - Eliminate GCC warning -Wstrict-overflow
abv [Sun, 5 Feb 2017 08:59:29 +0000 (11:59 +0300)]
0028431: Coding, Graphic3d - Eliminate GCC warning -Wstrict-overflow

Code amended to avoid warning issued by GCC optimizer

7 years ago0028445: Data Exchange - Opening specific STEP file leads to application crash
ika [Tue, 7 Feb 2017 12:20:29 +0000 (15:20 +0300)]
0028445: Data Exchange - Opening specific STEP file leads to application crash

Add check for null vertex during translation from STEP.

7 years ago0028439: Configuration - compilation error when using thread_local within XCode 7...
kgv [Thu, 9 Feb 2017 12:52:59 +0000 (15:52 +0300)]
0028439: Configuration - compilation error when using thread_local within XCode 7 or earlier

__has_feature(cxx_thread_local) check has been added
for using thread_local keyword within CLang.

7 years ago0028444: Data Exchange - Missed text blocks in Saved Views
ika [Wed, 1 Feb 2017 16:17:48 +0000 (19:17 +0300)]
0028444: Data Exchange - Missed text blocks in Saved Views

Add new STEP entity to connect dimension semantic with presentation.
Fix number of GDTs in Saved View.

7 years ago0028426: Implementation of the EdgesToFaces function
emv [Fri, 3 Feb 2017 11:24:28 +0000 (14:24 +0300)]
0028426: Implementation of the EdgesToFaces function

1. The two new methods have been implemented:
a. BOPAlgo_Tools::EdgesToWires - allows creating planar wires from edges.
The input edges may be not shared, but the output wires will be sharing the coinciding vertices and edges.
It is possible to skip the sharing if the input edges are already shared by passing the corresponding flag into the method.
The input edges are expected to be planar, but the method does not check it. Thus, if the input edges are not planar, the output wires will also be not planar.
In general, the output wires will be non-manifold and may contain free vertices.

b. BOPAlgo_Tools::WiresToFaces - allows creating planar faces from the planar wires.
In general, the input wires are non-manifold and may be not closed, but should share the coinciding parts.
The wires located in the same plane and completely included into other wires will create holes in the faces built from bigger wires

These two methods combined allow building faces from set of edges randomly located in 3D space.

2. The DRAW command *edgestofaces* has been implemented.

3. The documentation has been updated with the new section in Modeling Algorithms - Topological Tools.

4. Test cases for the issue.

7 years ago0028239: PMIVis - defined positions and number of places are not loaded properly...
aba [Fri, 3 Feb 2017 08:59:51 +0000 (11:59 +0300)]
0028239: PMIVis - defined positions and number of places are not loaded properly in some cases

Corrected 'addTolModif' test command

7 years ago0028392: Shape Processing - some checks have no option to switch off
abv [Thu, 9 Feb 2017 12:45:51 +0000 (15:45 +0300)]
0028392: Shape Processing - some checks have no option to switch off

Added option ShapeFix_Solid::FixShellOrientationMode allowing to switch off analysis and fixing of orientations of shell(s) in solid.
Options FixVertexToleranceMode, FixShellOrientationMode, FixFaceOrientationMode are added to Shepe Processing resource file so that they can be manipulated.

7 years ago0027894: Crash when calling ShapeUpgrade_UnifySameDomain
msv [Thu, 9 Feb 2017 12:44:06 +0000 (15:44 +0300)]
0027894: Crash when calling ShapeUpgrade_UnifySameDomain

- Avoid getting pcurve of edge on not connected face.
- Avoid building wire of empty set of edges.

Small correction of test case for issue CR27894

7 years ago0028326: Checking invariant shapes in revolve is incomplete
msv [Thu, 9 Feb 2017 12:33:48 +0000 (15:33 +0300)]
0028326: Checking invariant shapes in revolve is incomplete

Check for bspline and bezier curves coinciding with the axis of rotation.
Minor correction of test case bugs/modalg_6/bug28003

7 years ago0028333: Draw Harness - whatis command hangs when selection is activated with no...
msv [Mon, 9 Jan 2017 07:11:01 +0000 (10:11 +0300)]
0028333: Draw Harness - whatis command hangs when selection is activated with no opened view

Added new method Draw_Window::IsMapped() for checked window state.
Draw_Window using XLib now does not exit application on closing window.
The method Draw_Viewer::Select() (called by whatis command)
has been corrected so as not to enter the loop if no views are initialized.

7 years ago0028360: Draw Harness - access for DRAW TCL interpreter needed for custom applications
duv [Fri, 3 Feb 2017 09:13:43 +0000 (12:13 +0300)]
0028360: Draw Harness - access for DRAW TCL interpreter needed for custom applications

Components of DRAW now use interpreter with static method Draw::GetInterpretor() instead of shared global variable

7 years ago0028327: BSplCLib can cause memory corruption in degenerated cases
msv [Wed, 1 Feb 2017 08:35:50 +0000 (11:35 +0300)]
0028327: BSplCLib can cause memory corruption in degenerated cases

The code of the methods BSplCLib::KnotForm and BSplCLib::MultForm has been made safe by giving up using of address of array item for iteration on the Array1. Also the checking for degenerated case has been added to prevent out of bounds exception.

7 years agoWarnings on vc14 were eliminated
apn [Fri, 3 Feb 2017 08:57:09 +0000 (11:57 +0300)]
Warnings on vc14 were eliminated

7 years agoWarning on windows in QABugs_11.cxx was eliminated
apn [Thu, 2 Feb 2017 16:01:54 +0000 (19:01 +0300)]
Warning on windows in QABugs_11.cxx was eliminated

7 years ago0028404: DRAW - avoid useless preparation of display data when shape is not shown
abv [Sun, 29 Jan 2017 20:23:49 +0000 (23:23 +0300)]
0028404: DRAW - avoid useless preparation of display data when shape is not shown

Class DBRep_DrawableShape is changed to postpone generation of display data until the shape is actually displayed (for the first time).

Test perf draw bug28404 is added.

7 years ago0026937: Eliminate NO_CXX_EXCEPTION macro support
ski [Thu, 2 Feb 2017 13:35:21 +0000 (16:35 +0300)]
0026937: Eliminate NO_CXX_EXCEPTION macro support

Macro NO_CXX_EXCEPTION was removed from code.
Method Raise() was replaced by explicit throw statement.
Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer.
Method Standard_Failure::Caught() is deprecated now.
Eliminated empty constructors.
Updated samples.
Eliminate empty method ChangeValue from NCollection_Map class.
Removed not operable methods from NCollection classes.

7 years ago0028389: Data Exchange - Import of STEP Saved Views and Clipping Planes
ika [Wed, 25 Jan 2017 11:13:45 +0000 (14:13 +0300)]
0028389: Data Exchange - Import of STEP Saved Views and Clipping Planes

- new STEP entities for Saved Views
- import of STEP Saved Views
- new XCAF tool for clipping planes
- new draw commands
- update test

7 years ago0028407: Visualization - remove ::UpdateMode() from Graphic3d_StructureManager
kgv [Mon, 30 Jan 2017 10:09:22 +0000 (13:09 +0300)]
0028407: Visualization - remove ::UpdateMode() from Graphic3d_StructureManager

7 years ago0028403: Avoid useless calls to BRepTools::Write()
abv [Thu, 2 Feb 2017 13:22:33 +0000 (16:22 +0300)]
0028403: Avoid useless calls to BRepTools::Write()

Useless writes of intermediate shapes to hardcoded paths are removed in samples\mfc\standard\02_Modeling\src\ModelingDoc.cpp

Methods IGESBRep::WriteShape(), XSControl_Utils::WriteShape() are deleted; BRepTools::Write() can be used instead.
Method TopOpeBRepBuild_Tools::DumpMapOfShapeWithState() is moved to where it is used -- TopOpeBRepBuild_Builder1_1.cxx as static function (commented out).

Unused DRAW command OCC18612 is removed.

Upgrade Guide is corrected to avoid Doxygen warnings.

7 years ago0028376: Visualization, AIS_ColoredShape - fix endless recursion due to misprint
kgv [Thu, 19 Jan 2017 16:29:59 +0000 (19:29 +0300)]
0028376: Visualization, AIS_ColoredShape - fix endless recursion due to misprint

7 years ago0028400: Visualization, Graphic3d_MaterialAspect - remove undocumented and unsupporte...
kgv [Fri, 27 Jan 2017 15:16:50 +0000 (18:16 +0300)]
0028400: Visualization, Graphic3d_MaterialAspect - remove undocumented and unsupported flag EnvReflexion()

7 years ago0023551: Move data models contained in samples subfolder of OCCT repository to common...
ski [Thu, 6 Nov 2014 09:39:12 +0000 (12:39 +0300)]
0023551: Move data models contained in samples subfolder of OCCT repository to common data folder

Data files from mfc samples were moved to $CASROOT/data directory.

7 years ago0027737: Remove hardcoded paths to data folders in mfc samples
ski [Fri, 9 Dec 2016 08:38:28 +0000 (11:38 +0300)]
0027737: Remove hardcoded paths to data folders in mfc samples

Data shapes (used in samples) were moved into CSF_OCCTDataPath location.

7 years ago0028387: Empty result of 3D Offset operation in mode Complete JoinType Intersection
emv [Thu, 26 Jan 2017 05:23:51 +0000 (08:23 +0300)]
0028387: Empty result of 3D Offset operation in mode Complete JoinType Intersection

1. The smarter conditions for removing the invalid faces with inverted edges have been implemented
   (BRepOffset_MakeOffset::RemoveInvalidSplitsByInvertedEdges).

2. Avoid removed (completely inside) edges in the filtering of invalid faces
   (BRepOffset_MakeOffset::FilterInvalidFaces).

3. Test cases for the issue.

7 years ago0028361: Visualization, TKV3d - buggy behavior of Transformation Persistence compiled...
apl [Thu, 26 Jan 2017 09:54:30 +0000 (12:54 +0300)]
0028361: Visualization, TKV3d - buggy behavior of Transformation Persistence compiled on several Linux platforms in optimized mode

The patch fixes transformation persistence for various set of GCC compilers.
1) Optimized template-specialized operator /= for division (causes bugs)
   of NCollection_Vec4 was replaced with non-specialized version.
2) NCollection_Vec4::xyz() is not used since compiler uses modifiable-reference
   returning version, which invokes warning of possible strict-aliasing rules
   violation and leads to incorrect behavior of the reference.

7 years ago0028394: Not precise extrema solution of line and circle lying in the same plane
nbv [Mon, 30 Jan 2017 11:01:24 +0000 (14:01 +0300)]
0028394: Not precise extrema solution of line and circle lying in the same plane

If the line is in the circle-plane completely (or parallel to the circle-plane) then extremas and intersections in 2D-space are looked for. These case are pure analytical and solutions will be found precisely.

7 years ago0028375: Regressions after enabling floating point signals handling in DRAW
msv [Wed, 25 Jan 2017 15:12:18 +0000 (18:12 +0300)]
0028375: Regressions after enabling floating point signals handling in DRAW

In Bisector_BisecCC.cxx avoid division by zero when the variable N1P2P1==0.
In Bisector_BisecPC.cxx avoid creation of gp_Dir2d with zero components.

7 years ago0028401: Configuration - unresolved symbol OpenGl_VertexBuffer::unbindFixedColor()
vsv [Mon, 30 Jan 2017 13:05:19 +0000 (16:05 +0300)]
0028401: Configuration - unresolved symbol OpenGl_VertexBuffer::unbindFixedColor()

7 years ago0028365: Visualization, AIS_InteractiveContext - apply selection filter in AddOrRemov...
nds [Thu, 26 Jan 2017 14:16:09 +0000 (17:16 +0300)]
0028365: Visualization, AIS_InteractiveContext - apply selection filter in AddOrRemoveSelected at Neutral point

7 years ago0028257: XCAFPrs_Style - uninitialized memory usage within ::HashCode()
kgv [Wed, 25 Jan 2017 17:26:27 +0000 (20:26 +0300)]
0028257: XCAFPrs_Style - uninitialized memory usage within ::HashCode()

XCAFPrs_Style::HashCode() function has been corrected.
XCAFPrs_Style::SetVisibility() does not reset assigned colors anymore.

7 years ago0028371: Configuration - update system requirements page
abv [Thu, 2 Feb 2017 13:00:28 +0000 (16:00 +0300)]
0028371: Configuration - update system requirements page

Table of supported operating systems with versions is removed, in favor of more general statement with simple list of supported OS and architectures.
Outdated list of tested graphic cards has been dropped.

7 years ago0028313: Extend Draw functionality with some new useful commands and features
msv [Thu, 2 Feb 2017 12:57:58 +0000 (15:57 +0300)]
0028313: Extend Draw functionality with some new useful commands and features

1) In Views menu the check button item "Extended view commands" has been added. Pressing on it shows/hides the set of buttons in the main window that allow manipulating of view zoom/pan/rotate by mouse.

2) New category of commands "Vector and measurement Commands" has been added. The commands in this category allow simple calculations using 2D and 3D vectors, such as cross and dot products, computation of distances of points to other objects, and other functions.

3) The new command "pickf" has been added in "DRAW Variables management" category. It allows extracting a picked with mouse face included in some shape as a new variable.

4) New commands "del" and "era" have been added in "DRAW Variables management" category. They allow deleting (destructing) or erasing (from view) variables matched by glob pattern.

5) Missing help for some commands like "don", "disp" and others has been added.

7 years ago0028391: Foundation Classes - OSD_Directory returns incorrect protection flags for...
kgv [Wed, 25 Jan 2017 14:51:03 +0000 (17:51 +0300)]
0028391: Foundation Classes - OSD_Directory returns incorrect protection flags for shared directory on Windows

Redirect Folder reading flags to File reading flags when Folder flags are not found.

7 years agoCorrect warning on vc 14 (caused by #26007)
apn [Thu, 26 Jan 2017 17:05:11 +0000 (20:05 +0300)]
Correct warning on vc 14 (caused by #26007)

7 years agoAdd new package XCAFView to UDLIST (issue #28044)
apn [Thu, 26 Jan 2017 13:51:00 +0000 (16:51 +0300)]
Add new package XCAFView to UDLIST (issue #28044)

7 years ago0026007: Standard attribute for surface meshes in TDataStd
akz [Fri, 11 Nov 2016 14:59:23 +0000 (17:59 +0300)]
0026007: Standard attribute for surface meshes in TDataStd

7 years ago0026745: Boolean Cut produces invalid result
nbv [Wed, 25 Jan 2017 08:14:41 +0000 (11:14 +0300)]
0026745: Boolean Cut produces invalid result

Creation of test cases for issues #26745 and #26748

7 years ago0028284: Avoid classification of sub-shapes of arguments of BOPs relatively solids...
emv [Mon, 9 Jan 2017 06:50:03 +0000 (09:50 +0300)]
0028284: Avoid classification of sub-shapes of arguments of BOPs relatively solids during Intersection phase

1. The methods PerformVZ, PerformEZ, PerformFZ and PerformZZ have been transferred from BOPAlgo_PaveFiller to BOPAlgo_CheckerSI class
to perform intersection of sub-shapes with solids only in self-intersection mode.

2. The checks for solids built from the same (shared) faces have been added into methods building the result of Boolean operations -
BOPAlgo_BOP::BuildRC() and BOPAlgo_BOP::BuildSolid().

3. Since the NonDestructive mode is now natively supported by the BOPAlgo_PaveFiller the methods providing the support of this mode by CheckerSI
(BOPAlgo_CheckerSI::PrepareCopy() and BOPAlgo_CheckerSI::PostTreatCopy()) are not needed and have been removed.

4. The pairs of sub-shapes with interfering bounding boxes are now sorted before real intersection to guarantee the constant order of
intersection of sub-shapes and produce more stable result. The class BOPDS_PassKey has been replaced with simpler class BOPDS_Pair.

5. The class BOPDS_SubIterator has been refactored.

6. Test cases for the issue.

7. Adjustment of the test case boolean volumemaker D2.

7 years ago0027252: Implicit-implicit intersection (Cylinder-Plane) loses intersection curve
nbv [Thu, 26 Jan 2017 10:33:50 +0000 (13:33 +0300)]
0027252: Implicit-implicit intersection (Cylinder-Plane) loses intersection curve

1. Earlier we could not put any IntPatch_Point to the intersection curve. The fix makes the algorithm of IntPatch_Points searching more precise. It is achieved by redetermination of earlier found vertices with help of minimization the distance between boundary of one intersection argument and another intersection argument (surface).
2. Additional check has been added, if IntPatch_Point adjusted to the domain boundary is true intersection point.
3. Method Contap_ArcFunction::Surface() has been added.
4. Method LastComputedPoint() has been added for IntPatch_ArcFunction and Contap_ArcFunction classes.
5. Correction in FindMaxDistance() method (see IntTools_FaceFace.cxx file) according to pure Golden-ratio minimization algorithm. Earlier this function worked wrong with small searching intervals.
6. Insignificant correction in math_BrentMinimum.cxx file (elimination of "defines").
Creation of test case for issues #27221 an #27252.
Adjusting some test cases according to their new behavior.
Correction according to the last remarks.
Small correction of shape names for issue CR27252
Test case for issue 28210
Small correction of test case for issue 28210

7 years ago0028384: Add FPE signals enabling from MSVC
ski [Tue, 24 Jan 2017 09:52:41 +0000 (12:52 +0300)]
0028384: Add FPE signals enabling from MSVC

Variable CSF_FPE was added to the file adm/templates/DRAWEXE.vcxproj.user.in

7 years ago0028044: Data Exchange - implement data structures for Saved Views
ika [Wed, 19 Oct 2016 15:31:56 +0000 (18:31 +0300)]
0028044: Data Exchange - implement data structures for Saved Views

Add new root label in Document for Views.
Add new attribute to store View in XDE.
Add object and tool to process Views.
Add new Draw commands for Views.

7 years ago0028367: Draw Harness - XSave should print an error on store failure
kgv [Wed, 18 Jan 2017 07:59:35 +0000 (10:59 +0300)]
0028367: Draw Harness - XSave should print an error on store failure

7 years ago0028261: Chamfer fails on edge connected to cone's seam
ifv [Thu, 26 Jan 2017 10:19:20 +0000 (13:19 +0300)]
0028261: Chamfer fails on edge connected to cone's seam

Method GetType() of class GeomAdaptor_SurfaceOfRevolution was modified to create plane instead Cone or SurfaceOfRevolution for "plane like" within Precision::Confusion() restricted object.
For infinite objects Cone with semiangle > PI/2 - eps is replaced by SurfaceOfRevolution for eps < Precision::Confusion()
Tests cases are added

Small correction of shape names for issue CR28261_28266

7 years ago0028381: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream...
nbv [Mon, 23 Jan 2017 08:05:16 +0000 (11:05 +0300)]
0028381: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream on Windows

7 years ago0028129: Visualization, Path Tracing - Improve interactivity in "steady" rendering...
dbp [Thu, 26 Jan 2017 09:56:13 +0000 (12:56 +0300)]
0028129: Visualization, Path Tracing - Improve interactivity in "steady" rendering mode

Re-basing the patch on current master.

7 years ago0028373: Incomplete section between cylinder and plane
nbv [Fri, 20 Jan 2017 08:15:23 +0000 (11:15 +0300)]
0028373: Incomplete section between cylinder and plane

Test case has been created.

7 years ago0028230: Convert C0 2d curve to C1 raises exception
ifv [Thu, 26 Jan 2017 09:51:09 +0000 (12:51 +0300)]
0028230: Convert C0 2d curve to C1 raises exception

The treatment of small curves (length of curves is less then tolerance used for checking G1) is added in
Geom2dConvert_CompCurveToBSplineCurve.cxx

7 years ago0027383: Modeling - improve handling of regularity on edges
azv [Tue, 15 Nov 2016 09:17:45 +0000 (12:17 +0300)]
0027383: Modeling - improve handling of regularity on edges

1. There has been implemented calculation of all possible types of continuity for shared edges:
  * G1 is set if tangential planes are the same for connected faces in each control points through the edge;
  * C1 is set in addition to G1 conditions if derivatives, orthogonal to the edge on each face, are equal vectors;
  * G2 is set in addition to G1 if the centers of principal curvatures are the same for connected faces in each control points through the edge;
  * C2 is set in addition to C1 and G2 if directions of principal curvatures are equal;
  * CN continuity is set only if both connected faces are based on elementary surfaces (the conditions for this case are similar to C2 continuity).

2. ShapeFix::EncodeRegularity() is merged into BRepLib::EncodeRegularity().
3. Implemented several test cases to check correct handling of regularity.
4. Fix incorrect usage of BRepLib::EncodeRegularity() in BRepBuilderAPI_Sewing.
5. Implement a method for calculation of regularity on the given list of edges.
6. Documentation updates

7 years ago0028263: Coding Rules - clean up definition of the class Graphic3d_MaterialAspect
kgv [Thu, 29 Dec 2016 17:39:28 +0000 (20:39 +0300)]
0028263: Coding Rules - clean up definition of the class Graphic3d_MaterialAspect

Fixed uninitialized fields in several classes.
Body of trivial methods have been moved to class definition (header file).
Ensure that non-primitive types are returned by reference, when possible.
Removed unused class Prs3d_PlaneSet.

7 years agoCorrect QAcommand OCC28310 according to changes in CR28088_3
apn [Thu, 19 Jan 2017 16:38:41 +0000 (19:38 +0300)]
Correct QAcommand OCC28310 according to changes in CR28088_3

7 years ago0028355: Stating wrong parent class in DEFINE_STANDARD_RTTIEXT is not recognized...
Benjamin Bihler [Thu, 19 Jan 2017 13:48:08 +0000 (16:48 +0300)]
0028355: Stating wrong parent class in DEFINE_STANDARD_RTTIEXT is not recognized during compilation

Added compile-time checks (static_assert) in DEFINE_STANDARD_RTTI*(A,B) macros to check that A is actually the class being defined, and B is its base class.
For GCC compiler version 4.7 and later on, check ensures that B is direct base class of A.

Fixed dubious RTTI definitions.

7 years ago0028368: TKMath, BVH -- Fix invalid tree height in QBVH
dbp [Wed, 18 Jan 2017 08:30:08 +0000 (11:30 +0300)]
0028368: TKMath, BVH -- Fix invalid tree height in QBVH

7 years ago0028369: Visualization, Path Tracing - Expose radiance clamping setting in path traci...
dbp [Wed, 18 Jan 2017 11:24:13 +0000 (14:24 +0300)]
0028369: Visualization, Path Tracing - Expose radiance clamping setting in path tracing mode

New parameter was added in the vrenderparams command:
vrenderparams -maxrad <value>

7 years ago0028198: Add FPE signals enabling from CMake
ski [Tue, 13 Dec 2016 12:30:45 +0000 (15:30 +0300)]
0028198: Add FPE signals enabling from CMake

CMake variable BUILD_ENABLE_FPE_SIGNAL_HANDLER was added to enable FPE signals during runtime.
Updated description of BUILD_ENABLE_FPE_SIGNAL_HANDLER_DESCR variable.

7 years ago0028310: Visualization - crash on iteration through detected interactive objects
apl [Wed, 18 Jan 2017 11:20:51 +0000 (14:20 +0300)]
0028310: Visualization - crash on iteration through detected interactive objects

AIS_InteractiveContext::Remove (anIObj, ...) removes object from sequence of detected owners.
Therefore further iteration on detected will not require updating this list with ::MoveTo().
Additional modification includes incrementing properly the iterator of CurrentDetectedObject
and resets iterator of Highlighted detected objects, because nothing is really highlighted after that.

7 years ago0028058: TObj_Object::Clone() does not copy TagSource attributes of children of secon...
abv [Mon, 7 Nov 2016 12:06:32 +0000 (15:06 +0300)]
0028058: TObj_Object::Clone() does not copy TagSource attributes of children of second level

Handling of children objects located on sub-labels of the main child label is enabled in method CopyChildren(); TagSource attributes for such children are copied in method Clone()

7 years ago0027691: Remove dchrono from all test cases and move its to perf group
ski [Thu, 19 Jan 2017 13:31:17 +0000 (16:31 +0300)]
0027691: Remove dchrono from all test cases and move its to perf group

Remove performance comparing with hardcoded value.
Test cases for performance of some commands were moved to perf group.

Updated documentation.

7 years ago0028324: Configuration, genproj.tcl - compilation error while targeting OS X 10.8...
aan [Thu, 29 Dec 2016 14:44:07 +0000 (17:44 +0300)]
0028324: Configuration, genproj.tcl - compilation error while targeting OS X 10.8 or lower in XCode

Specify libc++ as C++ library compatible with C++11 instead of libstdc++ which is no more updated within XCode.

7 years ago0028306: Visualization - viewer crashes if style for shaded display is set to HATCH
kgv [Tue, 3 Jan 2017 13:58:41 +0000 (16:58 +0300)]
0028306: Visualization - viewer crashes if style for shaded display is set to HATCH

Fixed NULL-dereference in OpenGl_Context::SetPolygonHatchStyle().

7 years ago0028055: Add UpdateAssemblies() method for top-down update of assembly compounds
ssv [Thu, 19 Jan 2017 13:22:32 +0000 (16:22 +0300)]
0028055: Add UpdateAssemblies() method for top-down update of assembly compounds

- Implement top-down update for assemblies in XCAFDoc_ShapeTool
- Get rid of UpdateAssembly() method used for partial (parent-only) update
- Adjust STEP and IGES translators to use the top-down update after filling OCAF
- Implement XUpdateAssemblies Draw command
- Add test cases bug28055_1 and bug28055_2 for component removal and part update
- Update XDE documentation to mention the new UpdateAssemblies() method

Correction for issue CR28055
Adjusting of test case bugs/fclasses/bug28217

7 years ago0028350: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream...
kgv [Sun, 15 Jan 2017 11:43:41 +0000 (14:43 +0300)]
0028350: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream on Windows

Fallback using fgetws() instead of ReadConsoleW() for reading input from a pipe.

7 years ago0027585: It is not possible to store OCAF documents to paths with special characters...
kgv [Fri, 13 Jan 2017 17:24:11 +0000 (20:24 +0300)]
0027585: It is not possible to store OCAF documents to paths with special characters in their names

TCollection_AsciiString - fixed inproper convertion from UTF-16 string.

7 years ago0028353: Samples - IESample cannot write files to paths with special characters
Benjamin Bihler [Fri, 13 Jan 2017 12:29:58 +0000 (13:29 +0100)]
0028353: Samples - IESample cannot write files to paths with special characters

Changed charcode conversion to UTF-8.

7 years ago0028343: Modeling: ShapeUpgrade_UnifySameDomain algorithm produces invalid shape
emv [Thu, 12 Jan 2017 12:08:27 +0000 (15:08 +0300)]
0028343: Modeling: ShapeUpgrade_UnifySameDomain algorithm produces invalid shape

Check coincidence of the normal directions of the adjacent faces to understand if the merging of these faces is possible.

Test cases for the issue.

7 years ago0028315: Data Exchange - Import/Export GD&Ts without semantic
ika [Thu, 19 Jan 2017 13:05:09 +0000 (16:05 +0300)]
0028315: Data Exchange - Import/Export GD&Ts without semantic

Implement import/export of Dimensions without semantic.
Add new type of dimension for GDTs with presentation and connecting to shapes.
Update test cases.

Small corrections for issue CR28315

7 years ago0028214: Make the class GeomPlate_BuildPlateSurface accept Adaptor3d_HCurve instead...
nbv [Thu, 19 Jan 2017 13:02:29 +0000 (16:02 +0300)]
0028214: Make the class GeomPlate_BuildPlateSurface accept Adaptor3d_HCurve instead of Adaptor3d_HCurveOnSurface

Now, GeomPlate_BuildPlateSurface accepts base class Adaptor3d_HCurve and of course array of Adaptor3d_HCurve.

Classes GeomPlate_Array1OfHCurveOnSurface and GeomPlate_HArray1OfHCurveOnSurface have been renamed to GeomPlate_Array1OfHCurve and GeomPlate_HArray1OfHCurve correspondingly.

Documentation has been updated.

Correction in documentation.

7 years ago0028088: Visualization, AIS_InteractiveContext - drop default value for Update Viewer...
isk [Tue, 27 Dec 2016 10:24:08 +0000 (13:24 +0300)]
0028088: Visualization, AIS_InteractiveContext - drop default value for Update Viewer parameter

7 years agoFix compilation error on vc12 (MSVC++ 12.0)
apn [Thu, 29 Dec 2016 17:24:44 +0000 (20:24 +0300)]
Fix compilation error on vc12 (MSVC++ 12.0)

7 years agoCorrections for MacOS genproj.tcl (branch CR26866)
apn [Thu, 29 Dec 2016 17:02:35 +0000 (20:02 +0300)]
Corrections for MacOS genproj.tcl (branch CR26866)

7 years ago0028312: Configuration, genproj.tcl - support CSF_ZLIB and CSF_LIBLZMA within project...
kgv [Wed, 28 Dec 2016 16:10:24 +0000 (19:10 +0300)]
0028312: Configuration, genproj.tcl - support CSF_ZLIB and CSF_LIBLZMA within project generator

Added CSF_ZLIB for searching zlib library, CSF_LIBLZMA for liblzma library
and CSF_FFmpeg for FFmpeg framework.
Unused CSF_AviLibs has been dropped.

7 years ago0028189: Result of Boolean operation is non-manifold wire
emv [Thu, 29 Dec 2016 12:42:08 +0000 (15:42 +0300)]
0028189: Result of Boolean operation is non-manifold wire

1. The result of Boolean operation on the arguments of collection type, containers WIRE/SHELL/COMPSOLID, is also a collection.
The containers of type WIRE included into result should now also (as the SHELLs) have coherent orientation of its sub-shapes.
For that the new method has been implemented (BOPTools_AlgoTools::OrientEdgesOnWire(TopoDS_Shape&)) which reorients edges for correct ordering.
The duplicating containers, i.e. containers with the contents completely included in other containers, are now avoided in the result of BOP.
2. The result of Fuse operation on Compsolids is now also will be Compsolid.
3. Documentation has been updated.
4. New test cases for the issue.
5. Adjusting test cases to current behavior.

Correction of test case bugs/modalg_4/bug726_2 according to the new behavior

7 years ago0028235: Data Exchange - DG&T datum XCAF object has incomplete list of shape references
ika [Tue, 20 Dec 2016 12:12:09 +0000 (15:12 +0300)]
0028235: Data Exchange - DG&T datum XCAF object has incomplete list of shape references

Update STEP import and export of datums.
Update test cases.

7 years ago0026866: Configuration, genproj - ensure consistency between FILES and actual content...
ski [Thu, 22 Dec 2016 17:54:00 +0000 (20:54 +0300)]
0026866: Configuration, genproj - ensure consistency between FILES and actual content of inc and src folders

Added check of consistency between FILES and actual content of inc and src folders in genproj procedure.

7 years ago0028197: Configuration - support Eigen template library as external dependency
ski [Thu, 15 Dec 2016 09:44:36 +0000 (12:44 +0300)]
0028197: Configuration - support Eigen template library as external dependency

Supporting of "Eigen" third party was added to CMake build procedure.

7 years ago0028047: Visualization - support objects with customized highlighting in AIS_Interact...
vpa [Wed, 28 Dec 2016 12:52:31 +0000 (15:52 +0300)]
0028047: Visualization - support objects with customized highlighting in AIS_InteractiveContext

- SelectMgr_SelectableObject::ClearHighlighted method is added to remove dynamic highlight data;
- interactive context will pass processing of dynamic highlight erase to the object if the owner returns false in SelectMgr_EntityOwner::IsAutoHilight;
- if owner returns true in SelectMgr_EntityOwner::IsForcedHilight, selection presentation will be re-highlighted at each ::Select call;
- redundant logic related to old object-oriented highlight mechanism was removed from AIS_InteractiveContext::MoveTo.

7 years ago0028273: Inefficient implementation of the BRepOffset_MakeOffset::BuildSplitsOfFace...
emv [Fri, 23 Dec 2016 13:04:25 +0000 (16:04 +0300)]
0028273: Inefficient implementation of the BRepOffset_MakeOffset::BuildSplitsOfFace function

The method for building splits of the face BRepOffset_MakeOffset::BuildSplitsOfFace has been redesigned to use the BOPAlgo_BuilderFace algorithm directly.
The methods FindInvalidFaces and TrimNewIntersectionEdges have been corrected to avoid possible instabilities.
The filtering of invalid edges by existing bounding edges has been corrected to avoid removal of valid splits.
The method BRepOffset_Analyse::Correct2dPoint has been modified to avoid unnecessary initialization of BRepAdaptor_Surface.

Adjustment of the test cases.
Test case bugs modalg_6 bug26513 has been modified to unify faces of the input shape before operation.

7 years ago0028283: The command bopcheck crashes on the given shape
msv [Mon, 26 Dec 2016 12:31:14 +0000 (15:31 +0300)]
0028283: The command bopcheck crashes on the given shape

BOPAlgo_CheckerSI crashed due to building of pcurve for an edge not lying on surface. The fix avoids building of pcurves in this algorithm.
The new flag has been added in BOPAlgo_PaveFiller class (method SetAvoidBuildPCurve). It tells whether to avoid building pcurves. It is worth to set if the result is not used to create splits of faces, as in example with BOPAlgo_CheckerSI.

7 years ago0028217: Error handling is not thread safe and causing memory corruption and sporadic...
abv [Thu, 29 Dec 2016 11:37:42 +0000 (14:37 +0300)]
0028217: Error handling is not thread safe and causing memory corruption and sporadic crashes

Static variable holding handle to the last raised exception is made thread-local on compilers that support C++11 keyword thread_local (MCVC++ 14+, GCC 4.8+, ICC 14+, CLang).
Test bugs fclasses bug28217 is added (BAD on vc < 14 and gcc < 4.8).

Test case tuning bugs/fclasses/bug28217

7 years ago0028285: Configuration - add missing macro Standard_EXPORT to OpenGl_StateInterface...
isk [Tue, 27 Dec 2016 08:19:21 +0000 (11:19 +0300)]
0028285: Configuration - add missing macro Standard_EXPORT to OpenGl_StateInterface subclasses

7 years ago0028281: Draw Harness - remove unused command vperf
kgv [Sun, 25 Dec 2016 17:07:39 +0000 (20:07 +0300)]
0028281: Draw Harness - remove unused command vperf

7 years ago0028276: Visualization, Graphic3d_ArrayOfPrimitives - fix usage of 16-bit indices
kgv [Fri, 23 Dec 2016 18:21:00 +0000 (21:21 +0300)]
0028276: Visualization, Graphic3d_ArrayOfPrimitives - fix usage of 16-bit indices

Graphic3d_ArrayOfPrimitives now check the amount of vertex data rather than amount of indices.

7 years ago0028110: Configuration - specify Unicode charset instead of multibyte in project...
ski [Mon, 14 Nov 2016 11:31:00 +0000 (14:31 +0300)]
0028110: Configuration - specify Unicode charset instead of multibyte in project files for Visual Studio

Eliminated usage of ANSI methods.
All Visual Studio projects generated by genproj or CMake use Unicode character set.

Draw Harness now handles Unicode input on Windows.
Tcl test scripts are now expected in UTF-8 encoding by default.

7 years ago0028223: Projection of closed curve onto cylinder is wrong
ifv [Fri, 16 Dec 2016 11:26:42 +0000 (14:26 +0300)]
0028223: Projection of closed curve onto cylinder is wrong

Algorithm of calculation UV bounds of projected curve for periodic surfaces is modified.

7 years ago0028135: Configuration - adopt building script for using built-in Android cross-compi...
ski [Wed, 21 Dec 2016 10:41:04 +0000 (13:41 +0300)]
0028135: Configuration - adopt building script for using built-in Android cross-compiling support in CMake 3.7

Added toolchain file for using built-in Android cross-compiling support in CMake 3.7

Added variable CMAKE_ANDROID_STL_TYPE for Android platform build via CMake.

Updated documentation about building of occt for UWP and Android via CMake.

Eliminated CMake warning CMP0054 for Android platform build.

7 years agoWarnings on vc14 were eliminated
apn [Fri, 23 Dec 2016 07:10:55 +0000 (10:10 +0300)]
Warnings on vc14 were eliminated

7 years ago0028244: Visualization - AIS_AngleDimension throws exception for 180 degree
isk [Thu, 22 Dec 2016 09:53:46 +0000 (12:53 +0300)]
0028244: Visualization - AIS_AngleDimension throws exception for 180 degree

Small correction of test case for issue CR28244

7 years ago0028250: Data Exchange - Wrong number of geometric tolerance modifiers.
ika [Tue, 20 Dec 2016 10:25:02 +0000 (13:25 +0300)]
0028250: Data Exchange - Wrong number of geometric tolerance modifiers.

fix some copy paste mistakes,
update test cases.

7 years ago0028232: Visualization, StdPrs_ShadedShape - create WireFrame presentation for sole...
kgv [Sun, 18 Dec 2016 07:18:55 +0000 (10:18 +0300)]
0028232: Visualization, StdPrs_ShadedShape - create WireFrame presentation for sole Vertex / Edge / Wire

7 years ago0028180: Visualization, TKOpenGl - Performance of Shaded presentation dropped due...
kgv [Thu, 22 Dec 2016 09:48:16 +0000 (12:48 +0300)]
0028180: Visualization, TKOpenGl - Performance of Shaded presentation dropped due to FFP disabled by default

FFP state management (light sources, matrices, clipping planes) has been
moved to OpenGl_ShaderManager for consistency with Programmable Pipeline.

OpenGl_Context::BindProgram() does not re-bind already active Program.
OpenGl_PrimitiveArray::Render() does not reset active Program at the end.

OpenGl_Context::ApplyModelViewMatrix() now checks if matrix differs
from already set one before modifying state in Shader Manager.
This allows avoing redundant state changes, matrix uploads onto GPU
and re-computation of inversed matrices.

NCollection_Mat4 has been extended with equality check operators for proper comparison.

OpenGl_ShaderManager - the tracking Material state has been added.
Removed unreachable states OPENGL_NS_RESMAT, OPENGL_NS_TEXTURE and OPENGL_NS_WHITEBACK.

Fixed resetting FFP material state after displaying GL_COLOR_ARRAY vertices;
the Material state within Shader Manager is now
invalidated within OpenGl_VertexBuffer::unbindFixedColor().

OpenGl_Workspace::ApplyAspectFace() - fixed invalidating Material State
when only Highlighting style is changing.

7 years ago0028205: Visualization - add functionality for dumping results of detection algorithm...
isk [Fri, 9 Dec 2016 10:50:40 +0000 (13:50 +0300)]
0028205: Visualization - add functionality for dumping results of detection algorithms into image

StdSelect_ViewerSelector3d::ToPixMap() - added new method for dumping
detection results into an image.

7 years ago0028241: Visualization, Path tracing - shader compilation error on Radeon 290
dbp [Mon, 19 Dec 2016 11:00:09 +0000 (14:00 +0300)]
0028241: Visualization, Path tracing - shader compilation error on Radeon 290

7 years ago0028221: General Fuse operation error
msv [Thu, 22 Dec 2016 09:43:48 +0000 (12:43 +0300)]
0028221: General Fuse operation error

The method BOPTools_AlgoTools2D::AttachExistingPCurve has been corrected so that
to call BRepLib::SameParameter not on the target edge with the whole set of pcurves,
but rather on a temporary edge with 3D curve and copied pcurve only.
After that the updated pcurve is transferred to the target edge.

Small correction of test case for issue CR28221

7 years ago0028240: Avoid redundant search for span index in evaluation of BSpline cache
abv [Sun, 18 Dec 2016 06:21:54 +0000 (09:21 +0300)]
0028240: Avoid redundant search for span index in evaluation of BSpline cache

7 years ago0028204: TopoTools_ShapeSet::Dump() does not show flag Locked
ski [Thu, 22 Dec 2016 09:40:55 +0000 (12:40 +0300)]
0028204: TopoTools_ShapeSet::Dump() does not show flag Locked

Corrected command dump to show flag Locked for shapes in DRAW.
Test case for issue CR28204
Updated test case.

7 years ago0028004: Visualization, AIS_ColorScale - allow defining labels list not equal to...
kgv [Thu, 22 Dec 2016 09:39:13 +0000 (12:39 +0300)]
0028004: Visualization, AIS_ColorScale - allow defining labels list not equal to intervals list

Cosmetics, code clean up.

AIS_ColorScale now draw labels using Graphic3d_VTA_CENTER
vertical alignment flag, instead of incorrect own alignment logic.
The color bar now adds margin on the top simmetrical to the bottom.

AIS_ColorScale::SetSmoothTransition() - added new property
for displaying colorscale with smooth transition between color intervals.

AIS_ColorScale::SetHueRange() - added new property defining the hue angles
corresponding to minimal and maximum values on the color scale.

AIS_ColorScale::SetLabels() now allows setting the sequence of free labels,
which number does not match the number of intervals.
In this case the labels will be displayed at positions of virtual
intervals corresponding to the number of labels.

7 years ago0028183: Modeling - BRepExtrema_DistShapeShape does not find all solutions
msv [Wed, 14 Dec 2016 07:09:38 +0000 (10:09 +0300)]
0028183: Modeling - BRepExtrema_DistShapeShape does not find all solutions

Disable SetSingleSolutionFlag when calling algorithm of curve-curve Extrema.
Now DistShapeShape will find all solutions, even if they are located on the same pair of edges.
The fix brings the speed down for the cases of coinciding curves.