occt.git
4 years ago0031085: Visualization - possibility to use BRep text in AIS_ViewCube CR0_DMUReviewer_2_30695_2_CR1050
nds [Mon, 21 Oct 2019 13:14:56 +0000 (16:14 +0300)]
0031085: Visualization - possibility to use BRep text in AIS_ViewCube

4 years ago0031085: Visualization - possibility to use BRep text in AIS_ViewCube
nds [Mon, 21 Oct 2019 12:57:45 +0000 (15:57 +0300)]
0031085: Visualization - possibility to use BRep text in AIS_ViewCube

4 years ago0031085: Visualization - possibility to use BRep text in AIS_ViewCube
nds [Fri, 18 Oct 2019 15:40:46 +0000 (18:40 +0300)]
0031085: Visualization - possibility to use BRep text in AIS_ViewCube

4 years ago0030784: Visualization - check if selectable of owner in internal container in AIS_In...
nds [Fri, 18 Oct 2019 12:56:28 +0000 (15:56 +0300)]
0030784: Visualization - check if selectable of owner in internal container in AIS_InteractiveContext before using

4 years agopossibility to rename cube labels.
nds [Fri, 18 Oct 2019 12:36:38 +0000 (15:36 +0300)]
possibility to rename cube labels.

4 years agorefs #1050: Add possibility to attach multiple files to notes
snn [Thu, 13 Jun 2019 11:39:29 +0000 (14:39 +0300)]
refs #1050: Add possibility to attach multiple files to notes

4 years agoRevert "0030182: Visualization, Image_AlienPixMap - support reading encoded image...
nds [Thu, 13 Jun 2019 10:48:32 +0000 (13:48 +0300)]
Revert "0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory buffer"

This reverts commit 8866c0cdb815d9e48665f6337924190e822eb59f.

4 years ago0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory...
kgv [Thu, 28 Feb 2019 22:26:20 +0000 (01:26 +0300)]
0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory buffer

correction compilation for checked UseFreeImage state in CMake. The patch is not necessary after porting branch to master.

4 years ago0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory...
kgv [Thu, 28 Feb 2019 22:26:20 +0000 (01:26 +0300)]
0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory buffer

Added two new Image_AlienPixMap::Load() methods, taking std::istream
and memory buffer (pointer, length) arguments.
This allows reading image from application memory or from file with non-zero offset.

Added Image_AlienPixMap::IsTopDownDefault() static property allowing to query rows order used by linked image library,
so that application might generate UV texture coordinates accordingly.

Added missing Release() to IWICImagingFactory instance.

(cherry picked from commit 88b12b7c054a5beff84f64a5eaf1904dc1fcc87a)

4 years ago0030655: Modeling Data - Provide interfaces for selection of the elements from BVH...
nds [Thu, 6 Jun 2019 09:29:04 +0000 (12:29 +0300)]
0030655: Modeling Data - Provide interfaces for selection of the elements from BVH tree

# compilation correction after cherry pick commit

4 years ago0030655: Modeling Data - Provide interfaces for selection of the elements from BVH...
emv [Wed, 17 Apr 2019 14:29:02 +0000 (17:29 +0300)]
0030655: Modeling Data - Provide interfaces for selection of the elements from BVH tree

Provide the easy to use interfaces for selection of the elements from BVH tree.
The selection rules should be implemented in the selector class derived from *BVH_Traverse* or in *BVH_PairTraverse* in Reject/Accept methods.

The *BVH_Traverse* is used for selection of the elements from the tree.
The *BVH_PairTraverse* is used for selection of the pairs of elements from two BVH trees.

Auxiliary changes:
- Two methods BVH_Box::IsOut(OtherBox) and BVH_Box::IsOut(Point) have been added;
- Added methods for conversion of Bnd boxes to BVH boxes

Added new class *BVH_Tools* containing useful static methods operating on BVH points and boxes.

The classes BRepExtrema_OverlapTool and BVH_DistanceField have been rebased to use the new traverse methods.

(cherry picked from commit 7c1a82100041c3b397b8e44925cee83d985e7804)

# Conflicts:
# src/BVH/BVH_Box.hxx
# src/BVH/BVH_DistanceField.lxx
# tests/lowalgos/grids.list

4 years agoRevert "0030655: Modeling Data - Provide interfaces for selection of the elements...
nds [Thu, 6 Jun 2019 05:55:26 +0000 (08:55 +0300)]
Revert "0030655: Modeling Data - Provide interfaces for selection of the elements from BVH tree"

This reverts commit 96d53eab0f1af886f2746733d302752ae178b2cd.

4 years ago0030655: Modeling Data - Provide interfaces for selection of the elements from BVH...
emv [Wed, 17 Apr 2019 14:29:02 +0000 (17:29 +0300)]
0030655: Modeling Data - Provide interfaces for selection of the elements from BVH tree

Provide the easy to use interfaces for selection of the elements from BVH tree.
The selection rules should be implemented in the selector class derived from *BVH_BoxSet<>::Selector* or in *BVH_BoxSet<>::PairSelector* in Reject/Accept methods.

The *BVH_BoxSet<>::Selector* is used for selection of the elements from the tree.
The *BVH_BoxSet<>::PairSelector* is used for selection of the pairs of elements from two BVH trees.

Auxiliary changes:
- Two methods BVH_Box::IsOut(OtherBox) and BVH_Box::IsOut(Point) have been added;
- Added methods for conversion of Bnd boxes to BVH boxes

Test case for the issue.

(cherry picked from commit 9175060417729936736392d52444e8f751bcf986)

# Conflicts:
# src/BVH/BVH_Box.hxx
# tests/lowalgos/grids.list

4 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Thu, 6 Jun 2019 05:25:49 +0000 (08:25 +0300)]
0030268: Inspectors - improvements in VInspector plugin

- display BVH information in VInspector

4 years ago0030716: Visualization - Set polygon offset units property to 1.0
tiv [Fri, 17 May 2019 09:01:01 +0000 (12:01 +0300)]
0030716: Visualization - Set polygon offset units property to 1.0

The default value of the Units property of the Graphic3d_PolygonOffset class is changed to 1.0f (instead of 0.0f used previously).

(cherry picked from commit 9e6c2ff8600ac74b8ea2c87bfa0d37df1b18f546)

4 years ago0030737: Visualization - implementing new selection schemes in context
nds [Fri, 31 May 2019 17:43:18 +0000 (20:43 +0300)]
0030737: Visualization - implementing new selection schemes in context

#apply selection scheme to container of owners

(cherry picked from commit 40c33142278a094947c906637cc84e6c67addd46)

4 years ago0030737: Visualization - implementing new selection schemes in context
nds [Mon, 27 May 2019 08:35:02 +0000 (11:35 +0300)]
0030737: Visualization - implementing new selection schemes in context

#provide selection scheme by parameter

(cherry picked from commit af73c57320c6775b87bcf5823a61eeff266ec40a)

4 years ago0030725: Visualization - remove Display calling from SetSelected methods of context
nds [Wed, 22 May 2019 08:37:03 +0000 (11:37 +0300)]
0030725: Visualization - remove Display calling from SetSelected methods of context

(cherry picked from commit 3356a2f1fcde55717e3e8a4a59059ee0accb6ba7)
(cherry picked from commit 86fb569627e1d89f8cfd991bd4dcb39235fad9f6)

4 years ago0030737: Visualization - implementing new selection schemes in context
nds [Thu, 23 May 2019 16:58:59 +0000 (19:58 +0300)]
0030737: Visualization - implementing new selection schemes in context

(cherry picked from commit f9d4ea66dbba0c6fb70d0232d9fd326722e83fbc)

4 years ago0030728: Visualization - using one implementation of highlight/unhighlight in context
nds [Wed, 22 May 2019 14:33:02 +0000 (17:33 +0300)]
0030728: Visualization - using one implementation of highlight/unhighlight in context

(cherry picked from commit 36b87936acf5a89d573663b5e8d086a4a4a084d3)

# Conflicts:
# src/AIS/AIS_InteractiveContext_1.cxx
(cherry picked from commit 7fc133f086611b4f4e36b658f99c29012da921d1)

# Conflicts:
# src/AIS/AIS_InteractiveContext_1.cxx

4 years ago0030726: Visualization - change Selected state of owner in AIS_Selection
nds [Fri, 24 May 2019 06:50:47 +0000 (09:50 +0300)]
0030726: Visualization - change Selected state of owner in AIS_Selection

# IsHilighted by owner should use the same logic like when it is highlighted. IsSelected is used for selection state, not highlight.
#
# Without this correction, object is never shown as selected by click (Select(bool)):
# if (!HighlightStyle (theOwner, aCustomStyle) ||
#    (!aCustomStyle.IsNull() && aCustomStyle != anObjSelStyle))
# IsSelected is already true, so the highlight style is equal to selection style, nothing to do.

(cherry picked from commit b3d449ff2f7b8ed5afba33106d045427d2c146de)

4 years ago0030695: Visualization - selection by box should use clipping planes set for viewer...
nds [Fri, 24 May 2019 13:06:20 +0000 (16:06 +0300)]
0030695: Visualization - selection by box should use clipping planes set for viewer - moving check on touching the clipping plane in selection only.

5 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Wed, 17 Apr 2019 06:56:47 +0000 (09:56 +0300)]
0030268: Inspectors - improvements in VInspector plugin

TreeModel is extended by ItemPropertiesCreator (to customize items/panes outside tools),
ViewControl have TransientShape to use in interface TopoDS_Shape as a Handle(Standard_Transient)
ShapeView start of curve description for edge item

5 years ago0030641: Visualization - possibility to select in predefined ZLayers only - debug...
nds [Tue, 9 Apr 2019 09:15:47 +0000 (12:15 +0300)]
0030641: Visualization - possibility to select in predefined ZLayers only - debug messages

5 years ago0030641: Visualization - possibility to select in predefined ZLayers only
nds [Tue, 9 Apr 2019 09:00:28 +0000 (12:00 +0300)]
0030641: Visualization - possibility to select in predefined ZLayers only

(cherry picked from commit 6e940e66ffe4746f50d088289c0104a2724e89ea)

5 years ago0029451: Information Message Alert to debug an algorithm or object functionality...
nds [Wed, 3 Apr 2019 08:10:49 +0000 (11:10 +0300)]
0029451: Information Message Alert to debug an algorithm or object functionality - compilation correction.

5 years ago0029451: Information Message Alert to debug an algorithm or object functionality...
nds [Wed, 3 Apr 2019 07:31:45 +0000 (10:31 +0300)]
0029451: Information Message Alert to debug an algorithm or object functionality - compilation correction.

5 years ago0029451: Information Message Alert to debug an algorithm or object functionality...
nds [Tue, 2 Apr 2019 03:22:28 +0000 (06:22 +0300)]
0029451: Information Message Alert to debug an algorithm or object functionality - improvements

5 years ago0030537: Visualization - wrapping text in font text formatter
nds [Thu, 7 Mar 2019 13:28:20 +0000 (16:28 +0300)]
0030537: Visualization - wrapping text in font text formatter

5 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Thu, 7 Mar 2019 13:21:25 +0000 (16:21 +0300)]
0030268: Inspectors - improvements in VInspector plugin

5 years ago0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located...
nds [Thu, 7 Mar 2019 13:18:59 +0000 (16:18 +0300)]
0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located shape

The previous code has a condition to avoid processing the same faces if the face has a location.
The similar condition should be applied during the edges processing.
If not doing this, in the previous implementation, IMeshData_Edge instances are created for all edges(even located), but edges of faces located are not filled with curves.
As a result we had wrong local selection of edges.

Limit addition of edges to data model by ones with unique TShape and location using edges map already available in BRepMesh_ShapeVisitor.

(cherry picked from commit 967d2f4f301c079f3cbe689d88dad155bae2dada)

5 years ago0030517: Inspectors - improvements in ShapeView plugin
nds [Mon, 25 Feb 2019 09:12:44 +0000 (12:12 +0300)]
0030517: Inspectors - improvements in ShapeView plugin

- implement "Explode" context menu action on a shape item in tree view. Calling this action cases build of the item subtree using TopExp::MapShapes by the type. (By default the tree generating uses TopoDS_Iterator)
- display properties of a selected tree item in Property Panel. (Similar to DFBrowser plugin).

(cherry picked from commit 2b4094183df26dfe0dae62f63822d7bf6d2214c6)
(cherry picked from commit a93268ba6cbde85f311fe698e186ea41da05efc2)

5 years ago0029451: Information Message Alert to debug an algorithm or object functionality
nds [Mon, 25 Feb 2019 08:19:56 +0000 (11:19 +0300)]
0029451: Information Message Alert to debug an algorithm or object functionality

Modifications:
 - Message_AlertExtended to store additional parameters (attributes, composite alert container, performance meter)
 - Message_Attribute and inherited classes to store custom information about alert
 - Message_CompositeAlerts to have hierarchical structure of alerts
 - Message_PerfMeter to automatically calculate time between alerts adding into report
 - Message_ReportCall back to be able to react to message report filling.
 - Import/Export message report report. Currently it is implemented using XmlDrivers_MessageReportStorage
 - MessageView/MessageModel - Inspector plugin for GUI presentation of Message_Report

Sample of using alerts:
- BRepMesh_IncremetalMesh - till IMeshTools_ShapeExplorer::Accept() for model maps filling (debug of 0030497 issue)

DRAW case:
 - tools/messageview/A1

(cherry picked from commit 9dae9d43ba992a094fb387648bcd5503b487f698)
(cherry picked from commit 2e08eac5a39c627a87dbe3b23df51c8178a6ad5f)

5 years ago0030491: Visualization - OpenGl_Element inherits Standard_Transient
nds [Fri, 22 Feb 2019 17:26:18 +0000 (20:26 +0300)]
0030491: Visualization - OpenGl_Element inherits Standard_Transient

(cherry picked from commit b293d433fbdf97edeb5ea3eab30701c0ceab77ed)

Conflicts:
src/OpenGl/OpenGl_CappingAlgo.cxx
src/OpenGl/OpenGl_CappingPlaneResource.cxx
src/OpenGl/OpenGl_CappingPlaneResource.hxx
src/OpenGl/OpenGl_Group.cxx
src/OpenGl/OpenGl_Group.hxx
src/OpenGl/OpenGl_Text.cxx

Additionally changed classes of VInspector package that uses OpenGl_Element instance (Handle instead of direct pointer).

(cherry picked from commit 62c1e07ce3ff867ce15d4f21c9da44f709845dfa)

5 years ago0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located...
nds [Mon, 25 Feb 2019 08:37:11 +0000 (11:37 +0300)]
0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located shape

The previous code has a condition to avoid processing the same faces if the face has a location.
The similar condition should be applied during the edges processing.
If not doing this, in the previous imlementation, IMeshData_Edge instances are created for all edges(even located), but edges of faces located are not filled with curves.
As a result we had wrong local selection of edges.

(cherry picked from commit 9e00d610b88e4f1778a5a55fe9c50d2665169d28)

5 years ago0030484: Visualization - 2d persistent: order of detection doesn't coincide with...
nds [Thu, 7 Feb 2019 08:59:53 +0000 (11:59 +0300)]
0030484: Visualization - 2d persistent: order of detection doesn't coincide with order of objects creation

5 years ago0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal...
nds [Wed, 6 Feb 2019 17:20:47 +0000 (20:20 +0300)]
0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal container

5 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Fri, 1 Feb 2019 12:12:15 +0000 (15:12 +0300)]
0030268: Inspectors - improvements in VInspector plugin

- transform persistent apply to preview of presentations
- Graphic3d_Camera matrices values in property panel
- SelectMgr_Selection values in property panel.

5 years ago0030425: Visualization - possibility to redefine AIS_Selection
nds [Tue, 25 Dec 2018 06:26:49 +0000 (09:26 +0300)]
0030425: Visualization - possibility to redefine AIS_Selection

5 years ago0029451: Information Message Alert to debug an algorithm or object functionality
nds [Tue, 25 Dec 2018 06:12:51 +0000 (09:12 +0300)]
0029451: Information Message Alert to debug an algorithm or object functionality

Modifications:
 - Message_AlertExtended to store additional parameters (attributes, composite alert container, performance meter)
 - Message_Attribute and inherited classes to store custom information about alert
 - Message_CompositeAlerts to have hierarchical structure of alerts
 - Message_PerfMeter to automatically calculate time between alerts adding into report
 - Message_ReportCall back to be able to react to message report filling.
 - Import/Export message report report. Currently it is implemented using XmlDrivers_MessageReportStorage
 - MessageView/MessageModel - Inspector plugin for GUI presentation of Message_Report

(cherry picked from commit e4529dcf83b12759e47efb89ded8207f802556a7)

Conflicts:
tools/ViewControl/FILES
tools/ViewControl/ViewControl_PropertyView.cxx
tools/ViewControl/ViewControl_PropertyView.hxx
tools/ViewControl/ViewControl_Table.cxx
tools/ViewControl/ViewControl_Table.hxx
tools/ViewControl/ViewControl_TableModel.hxx
tools/ViewControl/ViewControl_TableModelFilter.cxx
tools/ViewControl/ViewControl_TableModelFilter.hxx
tools/ViewControl/ViewControl_TableModelValues.hxx
tools/ViewControl/ViewControl_TableProperty.cxx
tools/ViewControl/ViewControl_TableProperty.hxx
tools/ViewControl/ViewControl_Tools.cxx
tools/ViewControl/ViewControl_Tools.hxx

5 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Mon, 17 Dec 2018 14:45:31 +0000 (17:45 +0300)]
0030268: Inspectors - improvements in VInspector plugin

- VInspectorPaneAIS - to create additional rows for custom AIS presentations in property table, example is a table for AIS_Shape
 (ViewControl_PaneCreator/PaneItem interface for it, to be used in DFBrowser instead of DFBrowserPane_Creator)
- VInspector items for: Select3D_SensitiveSet, Graphics3d_CView, Graphic3d_Camera, Aspect_Window objects
- VInspector camera follower presentation - draft.

5 years ago0030392: XCAFDoc_GraphNode doesn't copy backward links
snn [Fri, 30 Nov 2018 07:39:15 +0000 (10:39 +0300)]
0030392: XCAFDoc_GraphNode doesn't copy backward links

5 years ago0030389: Data Exchange - StlAPI_Writer does not check if the face has triangulation
emv [Thu, 29 Nov 2018 07:20:23 +0000 (10:20 +0300)]
0030389: Data Exchange - StlAPI_Writer does not check if the face has triangulation

When merging triangulation of the faces skip those having no triangulation.
Test case for the issue.

5 years agoCorrection for a regression cased by "0030268: Inspectors - improvements in VInspecto...
nds [Thu, 8 Nov 2018 13:04:05 +0000 (16:04 +0300)]
Correction for a regression cased by "0030268: Inspectors - improvements in VInspector plugin"

5 years agoCompilation correction for patch: "#265 Possibility to display materials by different...
nds [Thu, 8 Nov 2018 10:05:54 +0000 (13:05 +0300)]
Compilation correction for patch: "#265 Possibility to display materials by different hatching style when we make clipping"

5 years ago0030268: Inspectors - improvements in VInspector plugin
nds [Fri, 19 Oct 2018 05:26:37 +0000 (08:26 +0300)]
0030268: Inspectors - improvements in VInspector plugin

Modifications in src:
implementing methods to have text information for some of OCCT enums;
moving out the text information from Quantity_Color;
expansionFactor() in Graphic3d_AspectText3d for access to this parameter;

Modifications in tools:
implementing common controls in ViewControl to be used in all plugins: table, property view and color selector;
move properties from columns of VInspector into property view, filled by tree view item selecting;
implementing new items (aspects, graphical information)
extending information of already existing items (presentations, selection entities)
display preview presentation for selected item (if possible, GetPresentations or GetPresentationShape of the item returns not empty value)

(cherry picked from commit 6dce71df876075a54ca7ef0a267fdbbdfceb6ac8)

5 years ago0028954: corrected cube after porting on master
aba [Tue, 6 Nov 2018 12:40:57 +0000 (15:40 +0300)]
0028954: corrected cube after porting on master

(cherry picked from commit e74e4eb967dd7f9973176b62e436affb74b59452)

5 years ago0030341: Unset child/parent links bugs fix
snn [Tue, 6 Nov 2018 13:19:46 +0000 (16:19 +0300)]
0030341: Unset child/parent links bugs fix

(cherry picked from commit 014eaedd3047781050e53f0c3a0ee590649c0971)

Conflicts:
src/XCAFDoc/XCAFDoc_GraphNode.cxx

5 years ago0030352: DRAW - Extending interface of ViewerTest_EventManager to process mouse butto...
nds [Wed, 7 Nov 2018 15:44:12 +0000 (18:44 +0300)]
0030352: DRAW - Extending interface of ViewerTest_EventManager to process mouse button event

(cherry picked from commit 41e01634af5fccd37fc86931dac6f5c5569a63da)

5 years ago0030349: Coding - add usage of Standard_EXPORT for some not inline methods in Select3D
nds [Wed, 7 Nov 2018 15:30:21 +0000 (18:30 +0300)]
0030349: Coding - add usage of Standard_EXPORT for some not inline methods in Select3D

(cherry picked from commit 95cf3cd996a9ba5970b3e107d06332fa43e4480b)

5 years ago#265 Possibility to display materials by different hatching style when we make clipping
nds [Thu, 27 Sep 2018 15:19:06 +0000 (18:19 +0300)]
#265 Possibility to display materials by different hatching style when we make clipping

Conflicts:
src/Graphic3d/Graphic3d_ClipPlane.cxx
src/Graphic3d/Graphic3d_ClipPlane.hxx
src/OpenGl/OpenGl_CappingAlgo.cxx
src/OpenGl/OpenGl_CappingAlgo.hxx
src/OpenGl/OpenGl_CappingPlaneResource.cxx
src/OpenGl/OpenGl_Element.hxx
src/OpenGl/OpenGl_Workspace.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx

(cherry picked from commit 24616c50906ed16c8c1ef60229b6c47d39b7887e)

Conflicts:
src/AIS/AIS_InteractiveObject.cxx
src/OpenGl/OpenGl_Group.cxx
src/OpenGl/OpenGl_Group.hxx

5 years agorefs 474:Possibility to create and play animations
nds [Thu, 27 Sep 2018 14:53:53 +0000 (17:53 +0300)]
refs 474:Possibility to create and play animations

(cherry picked from commit d9a231a9ce2499615952944cae1a0db6552db2e4)

5 years agorefs #355: Add possibility to hide clipping plane
nds [Thu, 27 Sep 2018 14:43:50 +0000 (17:43 +0300)]
refs #355: Add possibility to hide clipping plane

(cherry picked from commit ca1f82f6c6860a2e1995d7d9a66ce8c152e9d3cc)

5 years agoFix reading name of shape from subtype of PRODUCT_DEFINITION STEP entity
nds [Thu, 27 Sep 2018 14:41:16 +0000 (17:41 +0300)]
Fix reading name of shape from subtype of PRODUCT_DEFINITION STEP entity

(cherry picked from commit 87fc89a8b83565eba0616eebba1f6ce655777461)

5 years agoXCAFDoc/View fixes to store in the view: image, parts transparency, notes, notes...
nds [Thu, 27 Sep 2018 14:38:43 +0000 (17:38 +0300)]
XCAFDoc/View fixes to store in the view: image, parts transparency, notes, notes positions

(cherry picked from commit b050e0a15c06403adfa545ad793555491a0b6b9f)

5 years ago0028954: Visualization - implement interactive object for camera manipulations
aba [Fri, 8 Sep 2017 16:03:18 +0000 (19:03 +0300)]
0028954: Visualization - implement interactive object for camera manipulations

Added new class AIS_ViewCube implementing interactive cube displaying orientation of the main axes of the model space in the viewer.
Each side, edge, or corner of the cube corresponds to particular orientation of the camera, and the class provides methods to move the camera to corresponding position (with animation if needed).

DRAW command vviewcube is added to use the cube in DRAW.

(cherry picked from commit cd47b946ed397b421d24a19da1928cd4d2391533)

5 years ago0021494: Intersection between cone and sphere fails
nbv [Mon, 29 Oct 2018 10:34:21 +0000 (13:34 +0300)]
0021494: Intersection between cone and sphere fails

The condition (workaround), which forbid to return the intersection curve, has been removed.

5 years ago0025082: bopcommon returns different result on Windows and Linux system
nbv [Thu, 1 Nov 2018 11:32:08 +0000 (14:32 +0300)]
0025082: bopcommon returns different result on Windows and Linux system

Test cases have been created because the problem is not reproduced on current MASTER

5 years ago0030322: Remove DRAW-command "mesh" as useless
nbv [Wed, 31 Oct 2018 11:29:28 +0000 (14:29 +0300)]
0030322: Remove DRAW-command "mesh" as useless

In fact, the DRAW-command "mesh" is duplicate of "incmesh".

The difference is that the "mesh" creates DRAW-object MeshTest_DrawableMesh. However, this object is currently not applicable (e.g. we cannot display it).

DRAW-commands "mesh", "addshape", "smooth", "edges", "vertices", "medge", "mvertex", "triangle", "dumpvertex", "dumpedge", "dumptriangle" and "onetriangulation" have been removed.

The class MeshTest_DrawableMesh has been removed as useless.

Testgrids "mesh standard_mesh" and "mesh advanced_mesh" have been removed.

5 years ago0030305: Strange logic in BRepMesh_Deflection::ComputeDeflection(...) method
nbv [Thu, 25 Oct 2018 12:21:34 +0000 (15:21 +0300)]
0030305: Strange logic in BRepMesh_Deflection::ComputeDeflection(...) method

Before the fix, angular deflection was scaled to some coefficient in the method BRepMesh_Deflection::ComputeDeflection(...). Now, angular deflection is constant.

5 years ago0030008: BRepMesh does not respect angular deflection in internal area of bspline...
nbv [Fri, 19 Oct 2018 13:38:02 +0000 (16:38 +0300)]
0030008: BRepMesh does not respect angular deflection in internal area of bspline surface

1. Check whether the mesh satisfies the required angular deflection has been amended. Namely normals (to the surface) in the ends of any not "frontier" link are made collinear (with the given angular tolerance).

2. New parameters AngleInterior and DeflectionInterior have been added in IMeshTools_Parameters structure.

3. In case of thin long faces with internal edges, add points of internal edges to control parameters using grabParamsOfInternalEdges() in order to avoid aberrations on its ends. Disable addition of parameters from boundary edges in case of BSpline surface. Deviation can be controlled through the deflection parameter.

4. Grab parameters from edges in case if there is just a single interval on BSpline surface along U and V direction.

5 years ago0026106: BRepMesh - revision of data model
oan [Mon, 9 Oct 2017 10:04:54 +0000 (13:04 +0300)]
0026106: BRepMesh - revision of data model

Removed tight connections between data structures, auxiliary tools and algorithms in order to create extensible solution, easy for maintenance and improvements;
Code is separated on several functional units responsible for specific operation for the sake of simplification of debugging and readability;
Introduced new data structures enabling possibility to manipulate discrete model of particular entity (edge, wire, face) in order to perform computations locally instead of processing an entire model.

The workflow of updated component can be divided on six parts:
* Creation of model data structure: source TopoDS_Shape passed to algorithm is analyzed and exploded on faces and edges. For each topological entity corresponding reflection is created in data model. Note that underlying algorithms use data model as input and access it via common interface which allows user to create custom data model with necessary dependencies between particular entities;
* Discretize edges 3D & 2D curves: 3D curve as well as associated set of 2D curves of each model edge is discretized in order to create coherent skeleton used as a base in faces meshing process. In case if some edge of source shape already contains polygonal data which suites specified parameters, it is extracted from shape and stored to the model as is. Each edge is processed separately, adjacency is not taken into account;
* Heal discrete model: source TopoDS_Shape can contain problems, such as open-wire or self-intersections, introduced during design, exchange or modification of model. In addition, some problems like self-intersections can be introduced by roughly discretized edges. This stage is responsible for analysis of discrete model in order to detect and repair faced problems or refuse model’s part for further processing in case if problem cannot be solved;
* Preprocess discrete model: defines actions specific for implemented approach to be performed before meshing of faces. By default, iterates over model faces and checks consistency of existing triangulations. Cleans topological faces and its adjacent edges from polygonal data in case of inconsistency or marks face of discrete model as not required for computation;
* Discretize faces: represents core part performing mesh generation for particular face based on 2D discrete data related to processing face. Caches polygonal data associated with face’s edges in data model for further processing and stores generated mesh to TopoDS_Face;
* Postprocess discrete model: defines actions specific for implemented approach to be performed after meshing of faces. By default, stores polygonal data obtained on previous stage to TopoDS_Edge objects of source model.

Component is now spread over IMeshData, IMeshTools, BRepMeshData and BRepMesh units.

<!break>

1. Extend "tricheck" DRAW-command in order to find degenerated triangles.

2. Class BRepMesh_FastDiscret::Parameters has been declared as deprecated.

3. NURBS range splitter: do not split intervals without necessity. Intervals are split only in case if it is impossible to compute normals directly on intervals.

4. Default value of IMeshTools_Parameters::MinSize has been changed. New value is equal to 0.1*Deflection.

5. Correction of test scripts:

1) perf mesh bug27119: requested deflection is increased from 1e-6 to 1e-5 to keep reasonable performance (but still reproducing original issue)
2) bugs mesh bug26692_1, 2: make snapshot of triangulation instead of wireframe (irrelevant)

Correction in upgrade guide.

5 years ago0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation
emv [Wed, 24 Oct 2018 06:12:26 +0000 (09:12 +0300)]
0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation

Boolean Operations - Force the face with internal edges to be treated by the BuilderFace algorithm. It is needed for the cases when internal edges of the face go from side to side and should really split the face.
Test case for the issue.

5 years ago0030174: ShapeUpgrade_UnifySameDomain does not unify cylindrical faces
jgv [Thu, 25 Oct 2018 13:30:56 +0000 (16:30 +0300)]
0030174: ShapeUpgrade_UnifySameDomain does not unify cylindrical faces

Hotfix for issue 27271 (avoiding potential seam edges) is deleted.

Correction of test case

5 years ago0029673: Exception while Face-Face intersection
nbv [Fri, 26 Oct 2018 08:37:00 +0000 (11:37 +0300)]
0029673: Exception while Face-Face intersection

If 2D-curves are requested in intersection result but they cannot be created (by some reason) then the full set of curves (3D and two 2D) is rejected from the intersection result.

5 years ago0028493: [Regression vs 7.0.0] Intersection algorithm produces curve with loop
nbv [Fri, 26 Oct 2018 11:06:28 +0000 (14:06 +0300)]
0028493: [Regression vs 7.0.0] Intersection algorithm produces curve with loop

1. New testgrid "lowalgos/intss" has been created. It will contain all test cases on geometrical intersection of two surfaces ("intersect" DRAW-command) and two faces ("bopcurves" DRAW-command).

2. New test case for the issue #28493 has been created because the problem is not reproduced on MASTER.

3. Test case (lowalgos/intss/bug24472) for the issue #29501 has been modified in order to check loops of the resulting intersection curves.

5 years ago0030315: Data Exchange - Crash reading views during STEP import.
ika [Fri, 26 Oct 2018 15:04:10 +0000 (18:04 +0300)]
0030315: Data Exchange - Crash reading views during STEP import.

Add NULL check to protect against crash.

5 years ago0024676: Wrong result done by intersection algorithm
nbv [Thu, 25 Oct 2018 14:14:21 +0000 (17:14 +0300)]
0024676: Wrong result done by intersection algorithm

Only test case has been created because the problem is not reproduced on the current MASTER

5 years ago0030291: Visualization - manipulator crashes when is attached with scaling mode disabled
aba [Wed, 24 Oct 2018 16:25:12 +0000 (19:25 +0300)]
0030291: Visualization - manipulator crashes when is attached with scaling mode disabled

- in ComputeSelection() method checks are added to avoid taking triangulation of manipulator parts that are not computed

5 years ago0026509: Intersection algorithm produces set of curves providing closed contour in...
nbv [Tue, 23 Oct 2018 13:58:59 +0000 (16:58 +0300)]
0026509: Intersection algorithm produces set of curves providing closed contour in 3D-space and not closed contour in 2D-space

Test cases have been created. No fix is needed because the described problem has not to be cause of failing of high-level OCCT-algorithms.
See the message ~80300 (issue #26509) for detail information.

5 years ago0030270: Modeling Algorithms - BRepBndLib should provide an option for skipping infin...
kgv [Tue, 23 Oct 2018 14:39:36 +0000 (17:39 +0300)]
0030270: Modeling Algorithms - BRepBndLib should provide an option for skipping infinite entities

Bnd_Box now keeps calculating of finite part of bounding box after specifying it to be Open in some direction.
The finite part can be retrieved using new method Bnd_Box::FinitePart().

Prs3d::GetDeflection() now uses Bnd_Box::FinitePart() when applying relative deflection.

Draw Harness command bounding has been extended with option -finite returing a finite part of AABB.

5 years ago0030214: Application Framework, TPrsStd_AISPresentation - Hidden Presentations Cannot...
vro [Wed, 24 Oct 2018 11:04:57 +0000 (14:04 +0300)]
0030214: Application Framework, TPrsStd_AISPresentation - Hidden Presentations Cannot Be Removed

5 years ago0024905: Boolean cut produced invalid result
nbv [Tue, 23 Oct 2018 11:07:11 +0000 (14:07 +0300)]
0024905: Boolean cut produced invalid result

The method BOPAlgo_PaveFiller::PutClosingPaveOnCurve(...) has been improved in order to take into account extended vertex tolerance.

5 years ago0030280: Data Exchange - broken VRML output due to unescaped symbols starting comment...
skl [Tue, 23 Oct 2018 04:50:33 +0000 (07:50 +0300)]
0030280: Data Exchange - broken VRML output due to unescaped symbols starting comment block

5 years ago0030203: ProjLib_ComputeApproxOnPolarSurface::BuildInitialCurve2d array out of bound
ifv [Tue, 16 Oct 2018 14:10:44 +0000 (17:10 +0300)]
0030203: ProjLib_ComputeApproxOnPolarSurface::BuildInitialCurve2d array out of bound

Bug fixing: avoiding calculation if tPp == NbOfPnts

5 years ago0030199: Extrema Point<->Curve gives inaccurate result
ifv [Mon, 15 Oct 2018 12:38:00 +0000 (15:38 +0300)]
0030199: Extrema Point<->Curve gives inaccurate result

Special treatment of bspline curve of first degree is implemented in Extrema_GExtPC.gxx
Test case is added
Some test cases are modified according to actual state of algorithm

5 years ago0030119: Visualization, OpenGl_ShaderManager - implement mechanism generating in...
mnv [Fri, 7 Sep 2018 07:18:46 +0000 (10:18 +0300)]
0030119: Visualization, OpenGl_ShaderManager - implement mechanism generating in/out section of shader programs

Added functionality which generate in/out part of shaders source code from prepared list of variables.

5 years ago0030269: Modeling Algorithms - unhandled Standard_NullObject within BRepBndLib::Add()
kgv [Fri, 19 Oct 2018 08:06:41 +0000 (11:06 +0300)]
0030269: Modeling Algorithms - unhandled Standard_NullObject within BRepBndLib::Add()

Added BRep_Tool::IsGeometric() check before every BRepAdaptor_Curve::Initialize().

5 years ago0030278: Foundation Classes - make IndexedMapNode as protected inside of NCollection_...
osa [Mon, 22 Oct 2018 08:32:46 +0000 (11:32 +0300)]
0030278: Foundation Classes - make IndexedMapNode as protected inside of NCollection_IndexedMap

5 years ago0030204: BRepOffsetAPI_MakePipeShell crash
jgv [Fri, 12 Oct 2018 10:02:34 +0000 (13:02 +0300)]
0030204: BRepOffsetAPI_MakePipeShell crash

Add protection from type mismatch while ensuring Same Parameter on U-edges

5 years ago0030169: Application Framework - Document format version management improvement
szy [Tue, 9 Oct 2018 14:30:10 +0000 (17:30 +0300)]
0030169: Application Framework - Document format version management improvement

5 years ago0030248: Volume Rendering - importing volume with default parameters leads to crashes...
kgv [Wed, 17 Oct 2018 11:01:30 +0000 (14:01 +0300)]
0030248: Volume Rendering - importing volume with default parameters leads to crashes within OpenGl_Texture::Init3D()

5 years ago0030230: An optimal bounding box of a face is too large
ifv [Thu, 11 Oct 2018 12:52:48 +0000 (15:52 +0300)]
0030230: An optimal bounding box of a face is too large

Bug fixing
Test case added

5 years ago0030241: Test system - create option to exclude test groups from testgrid command
apn [Tue, 16 Oct 2018 17:24:46 +0000 (20:24 +0300)]
0030241: Test system - create option to exclude test groups from testgrid command

Add option "-exclude" to testgrid command.
It's possible to exclude groups, grids and test cases from test execution.
Add possibility to exclude subgroups from executed groups and test cases from executed subgroups\groups.

5 years ago0030215: Application Framework, TPrsStd_AISPresentation - Enable Lazy Presentation...
vro [Mon, 15 Oct 2018 12:07:52 +0000 (15:07 +0300)]
0030215: Application Framework, TPrsStd_AISPresentation - Enable Lazy Presentation Updates

5 years ago0030076: Visualization, TKV3d - API to update certain vertex attribute(s) without...
asl [Tue, 16 Oct 2018 20:17:47 +0000 (23:17 +0300)]
0030076: Visualization, TKV3d - API to update certain vertex attribute(s) without recomputing a presentation

Graphic3d_Buffer can be now optionally initialized as non-interleaved array of vertex attributes
and provides an interface to invalidate buffer sub-range tracked by OpenGl_PrimitiveArray.

5 years ago0030239: Visualization, Graphic3d_ArrayOfPrimitives - pass Graphic3d_ArrayFlags bitma...
kgv [Sun, 14 Oct 2018 11:00:46 +0000 (14:00 +0300)]
0030239: Visualization, Graphic3d_ArrayOfPrimitives - pass Graphic3d_ArrayFlags bitmask instead of dedicated Boolean flags to constructor

5 years ago0030194: Modeling Algorithms - Intersection points between line and torus are not...
ifv [Thu, 4 Oct 2018 13:06:54 +0000 (16:06 +0300)]
0030194: Modeling Algorithms - Intersection points between line and torus are not found

Calling numerical solution is implemented if analytical algorithm fails

5 years ago0030150: Modeling Algorithms - Removal of BRepAlgo_BooleanOperations and BRepAlgo_DSA...
emv [Fri, 21 Sep 2018 08:29:23 +0000 (11:29 +0300)]
0030150: Modeling Algorithms - Removal of BRepAlgo_BooleanOperations and BRepAlgo_DSAccess classes

Replacing usage of BRepAlgo_DSAccess with usage of modern Boolean operations algorithms in BRepFill_Draft.
Removing BRepAlgo_BooleanOperations and BRepAlgo_DSAccess classes.

The following classes have been removed as unused:
* BRepAlgo_DataMapOfShapeBoolean
* BRepAlgo_DataMapOfShapeInterference
* BRepAlgo_EdgeConnector
* BRepAlgo_SequenceOfSequenceOfInteger

5 years ago0030240: Visualization, OpenGl_FrameStatsPrs - chart cannot be erased
kgv [Mon, 15 Oct 2018 11:19:01 +0000 (14:19 +0300)]
0030240: Visualization, OpenGl_FrameStatsPrs - chart cannot be erased

5 years ago0030232: Visualization, StdPrs_BndBox - support Bnd_OBB in addition to Bnd_Box
kgv [Thu, 11 Oct 2018 13:05:32 +0000 (16:05 +0300)]
0030232: Visualization, StdPrs_BndBox - support Bnd_OBB in addition to Bnd_Box

5 years ago0030144: Visualization, TKOpenGl - extend OpenGl_FrameStats with frame timers
kgv [Mon, 17 Sep 2018 15:11:05 +0000 (18:11 +0300)]
0030144: Visualization, TKOpenGl - extend OpenGl_FrameStats with frame timers

5 years ago0030221: Data Exchange - VRML is exported with inversed normals
skl [Tue, 9 Oct 2018 07:57:42 +0000 (10:57 +0300)]
0030221: Data Exchange - VRML is exported with inversed normals

Added test case bugs/xde/bug30221

5 years ago0030218: Visualization - custom selection presentation is not updated within SelectMg...
kgv [Mon, 8 Oct 2018 16:16:06 +0000 (19:16 +0300)]
0030218: Visualization - custom selection presentation is not updated within SelectMgr_SelectableObject::UpdateTransformation()

SelectMgr_SelectableObject now assigns transformation to mySelectionPrs and myHilightPrs presentations.
Removed confusing method PrsMgr_PresentableObject::UpdateTransformation() with presentation as argument.

5 years ago0030166: Visualization, TKOpenGl - add option OpenGl_Caps::glslDumpLevel dumping...
mnv [Thu, 27 Sep 2018 13:30:48 +0000 (16:30 +0300)]
0030166: Visualization, TKOpenGl - add option OpenGl_Caps::glslDumpLevel dumping the source code of the shader program

Added new option -glslcode for vgldebug command with the following values:
- off   disables glsl source code dump;
- short to dump glsl source code in short format (except common declarations);
- full  to dump glsl source code in full format.

5 years ago0030198: Regression to 7.1.0: BRepAlgoAPI_Fuse unlimited memory usage
emv [Thu, 4 Oct 2018 10:25:06 +0000 (13:25 +0300)]
0030198: Regression to 7.1.0: BRepAlgoAPI_Fuse unlimited memory usage

When refining the mesh to achieve required deflection (IntPolyh_Triangle::MultipleMiddleRefinement) limit the number of new triangles to avoid infinite loop.
Test case for the issue.

5 years ago0030207: ChFi3d_KParticular stack-use-after-scope
nbv [Mon, 8 Oct 2018 09:12:07 +0000 (12:12 +0300)]
0030207: ChFi3d_KParticular stack-use-after-scope

References to temporary objects have been eliminated.

5 years ago0030202: IntPatch_WLineTool::JoinWLines array out of bounds
nbv [Fri, 5 Oct 2018 07:50:51 +0000 (10:50 +0300)]
0030202: IntPatch_WLineTool::JoinWLines array out of bounds

The main idea of the fix is that the creation of WLine with one point is forbidden.

5 years ago0030133: Modeling Data - Crash during visualization of invalid part
ifv [Mon, 17 Sep 2018 14:13:44 +0000 (17:13 +0300)]
0030133: Modeling Data - Crash during visualization of invalid part

Control of number of recursive calls is implemented to avoid stack overflow.

5 years ago0029020: Visualization, V3d_View - workaround image dump issue on Intel OpenGL driver
mnv [Mon, 1 Oct 2018 10:53:37 +0000 (13:53 +0300)]
0029020: Visualization, V3d_View - workaround image dump issue on Intel OpenGL driver

Implemented workaround for dump images with width >= 5462 pix on Intel OpenGl driver.
Changes according to OpenGl_Context::myVendor field in lowercase.