1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00
Commit Graph

4661 Commits

Author SHA1 Message Date
nds
aa66d8db58 0030737: Visualization - implementing new selection schemes in context
#apply selection scheme to container of owners

(cherry picked from commit 40c33142278a094947c906637cc84e6c67addd46)
2019-05-31 20:45:25 +03:00
nds
a2f9edbd19 0030737: Visualization - implementing new selection schemes in context
#provide selection scheme by parameter

(cherry picked from commit af73c57320c6775b87bcf5823a61eeff266ec40a)
2019-05-28 12:52:39 +03:00
nds
96923ab690 0030725: Visualization - remove Display calling from SetSelected methods of context
(cherry picked from commit 3356a2f1fcde55717e3e8a4a59059ee0accb6ba7)
(cherry picked from commit 86fb569627e1d89f8cfd991bd4dcb39235fad9f6)
2019-05-24 16:09:16 +03:00
nds
1c7d53e55a 0030737: Visualization - implementing new selection schemes in context
(cherry picked from commit f9d4ea66dbba0c6fb70d0232d9fd326722e83fbc)
2019-05-24 16:08:54 +03:00
nds
a06b8e8308 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
2019-05-24 16:08:27 +03:00
nds
c5e4b10f96 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)
2019-05-24 16:06:57 +03:00
nds
2fb3ed87a5 0030695: Visualization - selection by box should use clipping planes set for viewer - moving check on touching the clipping plane in selection only. 2019-05-24 16:06:20 +03:00
nds
dbc139494b 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
2019-04-17 09:56:47 +03:00
nds
90692499df 0030641: Visualization - possibility to select in predefined ZLayers only - debug messages 2019-04-09 12:15:47 +03:00
nds
d1cf356f84 0030641: Visualization - possibility to select in predefined ZLayers only
(cherry picked from commit 6e940e66ffe4746f50d088289c0104a2724e89ea)
2019-04-09 12:05:44 +03:00
nds
90a10c5374 0029451: Information Message Alert to debug an algorithm or object functionality - compilation correction. 2019-04-03 11:10:49 +03:00
nds
72ccfc2629 0029451: Information Message Alert to debug an algorithm or object functionality - compilation correction. 2019-04-03 10:31:45 +03:00
nds
62de4cb5c2 0029451: Information Message Alert to debug an algorithm or object functionality - improvements 2019-04-02 06:22:28 +03:00
nds
8016b09836 0030537: Visualization - wrapping text in font text formatter 2019-03-07 16:28:20 +03:00
nds
cffd367fd9 0030268: Inspectors - improvements in VInspector plugin 2019-03-07 16:21:25 +03:00
nds
3d9cd0b2f2 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 967d2f4f30)
2019-03-07 16:18:59 +03:00
nds
affbdf2782 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)
2019-03-07 16:16:21 +03:00
nds
5f048bc0a1 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)
2019-03-07 16:15:51 +03:00
nds
c2f11885b5 0030491: Visualization - OpenGl_Element inherits Standard_Transient
(cherry picked from commit b293d433fb)

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)
2019-03-07 16:15:12 +03:00
nds
bc09b9e3da 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)
2019-02-25 11:37:11 +03:00
nds
a151681f49 0030484: Visualization - 2d persistent: order of detection doesn't coincide with order of objects creation 2019-02-07 11:59:53 +03:00
nds
87f4d06f4b 0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal container 2019-02-06 20:20:47 +03:00
nds
f5988cdbb5 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.
2019-02-01 15:12:15 +03:00
nds
672fb1a467 0030425: Visualization - possibility to redefine AIS_Selection 2018-12-25 09:26:49 +03:00
nds
68876fcc5a 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
2018-12-25 09:12:51 +03:00
nds
4ffe4996b0 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.
2018-12-17 17:45:31 +03:00
snn
6131065fae 0030392: XCAFDoc_GraphNode doesn't copy backward links 2018-11-30 10:39:15 +03:00
emv
c501a070bc 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.
2018-11-29 14:26:31 +03:00
nds
ad4261a904 Correction for a regression cased by "0030268: Inspectors - improvements in VInspector plugin" 2018-11-08 16:04:05 +03:00
nds
ce5e73b94c Compilation correction for patch: "#265 Possibility to display materials by different hatching style when we make clipping" 2018-11-08 13:05:54 +03:00
nds
7d2af73a33 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)
2018-11-07 19:46:42 +03:00
aba
e9a83b5f59 0028954: corrected cube after porting on master
(cherry picked from commit e74e4eb967dd7f9973176b62e436affb74b59452)
2018-11-07 19:45:27 +03:00
snn
b7b1c8cc61 0030341: Unset child/parent links bugs fix
(cherry picked from commit 014eaedd30)

Conflicts:
	src/XCAFDoc/XCAFDoc_GraphNode.cxx
2018-11-07 19:44:49 +03:00
nds
7660866377 0030352: DRAW - Extending interface of ViewerTest_EventManager to process mouse button event
(cherry picked from commit 41e01634af5fccd37fc86931dac6f5c5569a63da)
2018-11-07 19:39:40 +03:00
nds
6b0fad4d5d 0030349: Coding - add usage of Standard_EXPORT for some not inline methods in Select3D
(cherry picked from commit 95cf3cd996a9ba5970b3e107d06332fa43e4480b)
2018-11-07 19:39:04 +03:00
nds
7b84779d43 #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
2018-11-07 19:37:37 +03:00
nds
ab078490cd refs 474:Possibility to create and play animations
(cherry picked from commit d9a231a9ce2499615952944cae1a0db6552db2e4)
2018-11-07 19:00:55 +03:00
nds
61f39b4dc7 refs #355: Add possibility to hide clipping plane
(cherry picked from commit ca1f82f6c6860a2e1995d7d9a66ce8c152e9d3cc)
2018-11-07 18:59:11 +03:00
nds
7526e6c9e4 Fix reading name of shape from subtype of PRODUCT_DEFINITION STEP entity
(cherry picked from commit 87fc89a8b83565eba0616eebba1f6ce655777461)
2018-11-07 18:58:14 +03:00
nds
7099619e5d XCAFDoc/View fixes to store in the view: image, parts transparency, notes, notes positions
(cherry picked from commit b050e0a15c06403adfa545ad793555491a0b6b9f)
2018-11-07 18:56:30 +03:00
aba
b079e6b053 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)
2018-11-07 18:51:29 +03:00
nbv
9bc5f5850a 0021494: Intersection between cone and sphere fails
The condition (workaround), which forbid to return the intersection curve, has been removed.
2018-11-02 17:06:43 +03:00
nbv
32c408d76a 0025082: bopcommon returns different result on Windows and Linux system
Test cases have been created because the problem is not reproduced on current MASTER
2018-11-02 17:06:43 +03:00
nbv
4006ca98a2 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.
2018-11-02 17:06:42 +03:00
nbv
6933df8fe0 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.
2018-11-02 17:06:41 +03:00
nbv
46478ffe32 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.
2018-11-02 17:06:41 +03:00
oan
7bd071edb1 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.
2018-11-02 17:06:40 +03:00
emv
80da8585f4 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.
2018-10-31 17:46:21 +03:00
jgv
9619ef4c94 0030174: ShapeUpgrade_UnifySameDomain does not unify cylindrical faces
Hotfix for issue 27271 (avoiding potential seam edges) is deleted.

Correction of test case
2018-10-30 16:06:32 +03:00
nbv
e28b8c6218 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.
2018-10-30 16:04:25 +03:00