occt.git
5 years ago0029890: Data Exchange - Problem in Expand Compounds
ika [Thu, 21 Jun 2018 12:57:39 +0000 (15:57 +0300)]
0029890: Data Exchange - Problem in Expand Compounds

XCAFDoc_ShapeTool::Expand method now avoids creation of subshapes under assemblies.
XCAFDoc_ShapeTool::AddSubShape now avoids creation subshapes under all labels except for simple parts.

5 years ago0029888: [Regression] Data Exchange - XCAFDoc_Editor::Expand() removes names
ika [Thu, 21 Jun 2018 14:21:02 +0000 (17:21 +0300)]
0029888: [Regression] Data Exchange - XCAFDoc_Editor::Expand() removes names

XCAFDoc_Editor::Expand function avoids expanding references to assemblies.

5 years ago0029887: Wrong result of CUT operation due to incorrect point-face classification
nbv [Wed, 20 Jun 2018 14:30:00 +0000 (17:30 +0300)]
0029887: Wrong result of CUT operation due to incorrect point-face classification

Use of input tolerance has been eliminated in Geom2dInt_GInter algorithm called from BRepClass_Intersector::Perform(...) method.
Now the input tolerance is used only for checking ON-status of classification.

5 years ago0029885: Visualization, AIS_Manipulator - Translation is done in wrong direction...
kgv [Wed, 20 Jun 2018 11:56:09 +0000 (14:56 +0300)]
0029885: Visualization, AIS_Manipulator - Translation is done in wrong direction depending on Camera orientation

AIS_Manipulator::ObjectTransformation() has ceased to use undefined point for myStartPick initialization within AIS_MM_Translation mode.
AIS_MM_Scaling cas has been merged into AIS_MM_Translation to reduce code duplication.
Extrema_ExtElC/IntAna_IntConicQuad are now used directly instead of more generic GeomAPI_ExtremaCurveCurve/GeomAPI_IntCS.

5 years ago0025467: Visualization - Possibility to remove AIS_LocalContext class
kgv [Wed, 20 Jun 2018 05:48:40 +0000 (08:48 +0300)]
0025467: Visualization - Possibility to remove AIS_LocalContext class

Deprecated functionality related to Local Context has been removed.

The following classes and types have been removed:
AIS_LocalContext, AIS_DataMapOfILC, AIS_LocalStatus, SelectMgr_SequenceOfSelector, SelectMgr_DataMapOfObjectSelectors.
Value AIS_DS_Temporary has been removed from enumeration AIS_DisplayStatus.

The following methods related to Local Context have been removed from AIS_InteractiveContext:
::HasOpenedContext(), ::HighestIndex(), ::LocalContext(),
::LocalSelector(), ::OpenLocalContext(), ::CloseLocalContext(),
::IndexOfCurrentLocal(), ::CloseAllContexts(), ::ResetOriginalState(),
::ClearLocalContext(), ::UseDisplayedObjects(), ::NotUseDisplayedObjects(),
::SetShapeDecomposition(), ::SetTemporaryAttributes(),
::ActivateStandardMode(), ::DeactivateStandardMode(), ::KeepTemporary(),
::SubIntensityOn(), ::SubIntensityOff(),
::ActivatedStandardModes(), ::IsInLocal()
and ::AddOrRemoveSelected() taking TopoDS_Shape.

The methods AIS_InteractiveContext::Display() and ::Load()
taking argument theToAllowDecomposition have been marked as deprecated;
the new methods without this unused argument should be used instead.
AIS_InteractiveContext::DisplayedObjects() - removed argument theOnlyFromNeutral.

SelectMgr_SelectionManager has been simplified so that now it support only single Viewer Selector.

The argument -local has been removed from Draw Harness commands vselmode, vremove, vdisplay, vdisplayall, verase.

5 years ago0029882: Visualization - AcceptDisplayMode() should be redefined in class AIS_Texture...
kgv [Tue, 19 Jun 2018 07:48:50 +0000 (10:48 +0300)]
0029882: Visualization - AcceptDisplayMode() should be redefined in class AIS_TexturedShape

5 years ago0029734: Modeling Algorithms - Compute global properties of tessellated shape
ifv [Thu, 17 May 2018 12:38:17 +0000 (15:38 +0300)]
0029734: Modeling Algorithms - Compute global properties of tessellated shape

New algorithms calculating global properties on mesh data have been added:
- BRepGProp_MeshCinert computes the global properties of polylines represented by a set of points;
- BRepGProp_MeshProps computes the global properties of a surface mesh.

Existing tool BRepGProp now automatically uses new algorithm for triangulation-only faces.
By default, algorithm will use exact geometry objects (surfaces), when it is available (as before the patch);
this behavior can be switched by a new flag UseTriangulation, forcing usage of triangulation instead of exact geometry when both defined.

5 years ago0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhed...
abv [Tue, 12 Jun 2018 19:18:34 +0000 (22:18 +0300)]
0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

Code is corrected to avoid copying uninitialized element of the array

5 years ago0029847: Visualization, Image_Diff - Tolerance is not effective for 24/32bit image...
dipts [Wed, 6 Jun 2018 19:42:11 +0000 (22:42 +0300)]
0029847: Visualization, Image_Diff - Tolerance is not effective for 24/32bit image formats

Image_Color - removed semibroken summ/difference operators.
Image_Diff now uses signed integer for computing differnce between ubyte3 components;
properly compare squared tolerance.

Image_Diff - dropped declaration of Image_ColorXXX24.
RGB color difference is now computed using Chebyshev distance instead of Euclidean distance
Image_PixMap - added methods RawValue()/ChangeRawValue() returning a pointer
to image where specified pixel data is defined.

5 years ago0029845: UnifySameDomain does not account the accumulated angle when unifying edges
emv [Thu, 7 Jun 2018 05:29:21 +0000 (08:29 +0300)]
0029845: UnifySameDomain does not account the accumulated angle when unifying edges

Check that the accumulated angle does not exceed the given angular tolerance while merging the linear edges.
Test case for the issue.

5 years ago0029841: Test cases from tools/dfbrowser periodically hang on Windows platform
nds [Thu, 7 Jun 2018 12:59:03 +0000 (15:59 +0300)]
0029841: Test cases from tools/dfbrowser periodically hang on Windows platform

Do not start new thread if the thread has been already started. Restart the thread after the previous has finished.

5 years ago0029825: Foundation Classes, NCollection_Vec4 - workaround gcc optimizer issues with...
kgv [Wed, 30 May 2018 15:59:12 +0000 (18:59 +0300)]
0029825: Foundation Classes, NCollection_Vec4 - workaround gcc optimizer issues with xyz() method

Methods of NCollection_Vec3 and NCollection_Vec3 that returned reference to internal buffer as vector of lower dimension (non-const xy(), xyz() etc.) are eliminated.
Use of these methods could led to generation of incorrect binary code by GCC.
Instead added new method SetValues() accepting vector of lower dimension and additional value.

DRAW test command QANColTestVec4 reproducing one situation where the bug occurs is added, along with a test case.

5 years ago0029826: Tests - test case perf/fclasses/strtod is unstable
abv [Tue, 5 Jun 2018 13:38:45 +0000 (16:38 +0300)]
0029826: Tests - test case perf/fclasses/strtod is unstable

Check of performance of accelerated Strtod() vs. standard strtod() in the test is relaxed: now test passes if Strtod() is at least 1.5 times faster

5 years ago0029116: [Regression] OCAF attributes insertion order is violated again
vro [Mon, 4 Jun 2018 07:47:18 +0000 (10:47 +0300)]
0029116: [Regression] OCAF attributes insertion order is violated again

5 years ago0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of...
kgv [Thu, 24 May 2018 15:06:37 +0000 (18:06 +0300)]
0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of sub-shapes number

TopoDS_Shape::NbChildren() - new method has been introduced.
TopoDS_Shape.lxx, TopoDS_TShape.lxx - inline methods have been moved to hxx.
TopoDS_TShape_Flags has been redeclared as enumeration instead of preprocessor macros.

Cyclic dependency between headers TopoDS_Shape.hxx and TopoDS_TShape.hxx eliminated.

Places where TopoDS_Iterator is used only for calculation of number of sub-shapes are updated to use NbChildren() instead

5 years ago0029511: Section fails for these two faces
jgv [Fri, 30 Mar 2018 10:30:44 +0000 (13:30 +0300)]
0029511: Section fails for these two faces

Modified method: Approx_ComputeLine::Compute
Check of multicurve is now always unconditional, the procedure of check is modified to avoid infinite loops.

Modified classes: GeomLib_CheckBSplineCurve and GeomLib_Check2dBSplineCurve
Correction of poles at the ends of curve is modified to fit the direction of tangent defined by two first points or two last points of walking line.

Also modified:

BOPAlgo_PaveFiller: modified methods PostTreatFF, RemoveUsedVertices - now unused vertices are included in the list of vertices to be absorbed by other ones.

5 years ago0029813: BRepFill_PipeShell algorithm produces invalid result
jgv [Mon, 28 May 2018 16:13:01 +0000 (19:13 +0300)]
0029813: BRepFill_PipeShell algorithm produces invalid result

Modified method: BRepFill_Sweep::BuildShell
case of global closedness of path containing several C0-connected parts is corrected.

5 years ago0029821: Data Exchange - Wrong processing of subshapes in ShapeTool
ika [Mon, 28 May 2018 10:15:37 +0000 (13:15 +0300)]
0029821: Data Exchange - Wrong processing of subshapes in ShapeTool

Improve FindSubShape method in ShapeTool.
Update Expand compounds, according to changes in ShapeTool.
Add FindSubShape and AddSubShape commands for Draw.

5 years ago0028747: Incorrect result of the section operation after edge refinement
emv [Thu, 26 Apr 2018 11:35:35 +0000 (14:35 +0300)]
0028747: Incorrect result of the section operation after edge refinement

Implementation of the method for simplification of the result of Boolean Operation on the API level.
The method BRepAlgoAPI_BuilderAlgo::SimplifyResult has been added, so the derived classes such as BooleanOpeation and Splitter can also use this method.
The result shape simplification should be called after the operation is done. The simplification is performed by the means of ShapeUpgrade_UnifySameDomain algorithm.

Draw command "bsimplify" has been added to control the simplification options.
Documentation for new functionality and draw commands controlling the options of Boolean operations.
Test cases for the new functionality.

Side-effect change:
The algorithms in Boolean component have been changed to use the BRepTools_History as a History tool.
Now it became possible to disable the collection of shapes modifications during Boolean Operations, which may be useful for performance sake (in draw the option is controlled by *setfillhistory* command).
Draw command "unifysamedom" has been changed to accept the angular tolerance in degrees instead of radians.

5 years ago0029694: Geom2dGcc_Circ2dTanCenGeo crash
nbv [Tue, 22 May 2018 09:15:27 +0000 (12:15 +0300)]
0029694: Geom2dGcc_Circ2dTanCenGeo crash

The reason of this issue is in incorrectly interpreted the generic class "TheExtPC" (eliminated after the fix 0024773) as Extrema_ExtPC2d. Correct interpretation must be "Extrema_EPCOfExtPC2d" class.

Now this problem has been fixed in the class Geom2dGcc_Circ2dTanCenGeo.

New testgrid "lowalgos 2dgcc" has been created.

5 years ago0029712: Extrema algorithm raises exception
nbv [Fri, 20 Apr 2018 14:00:48 +0000 (17:00 +0300)]
0029712: Extrema algorithm raises exception

1. Extrema algorithm calls Curve-surface intersector. This intersector returns flag about infinite solution (in spite of extrema's returning not-parallel status correctly - axes of considered cylinder and circle are not parallel). In this case, attempt of obtaining number of intersection points leads to exception.

So, the fix adds check of infinite solution after the intersection algorithm.

2. The methods IsDone(), IsParallel(), NbExt(), SquareDistance() and Points() (of Extrema_* classes) have been corrected to make them consistent to the documentation.

3. Revision of some Extrema_* classes has been made in order to avoid places with uninitialized variables.

4. Currently Extrema does not store any points in case when the arguments are parallel. It stores the distance only.

5. Some cases on Extrema-algo have been moved from "fclasses"-group to "modalg"-group.

5 years ago0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to...
msv [Wed, 23 May 2018 07:18:49 +0000 (10:18 +0300)]
0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to another are unsafe

Make the methods Append, Prepend, InsertBefore and InsertAfter, which take another sequence as an argument, copying the sequence instead of joining if the allocators are different.

Add test cases for collection classes.

5 years ago0029691: Constructor of BRepFill_MultiLine adjusts V-parameter of sphere in the range...
nbv [Thu, 12 Apr 2018 08:10:22 +0000 (11:10 +0300)]
0029691: Constructor of BRepFill_MultiLine adjusts V-parameter of sphere in the range -PI/2 ... +PI/2 mistakenly.

1. Sphere is not V-periodic surface. See the section "Periodicity concept" written in frame of the fix 0029115. Therefore, applying ElCLib::AdjustPeriodic(...) method is unreasonable.

2. Default U work range of sphere is 0 ... 2*PI. Therefore, adjusting U parameter in range -PI/2 ... +PI/2 is unreasonable.

5 years ago0029586: Revolution creates solid with degenerated edges shared among faces
ifv [Fri, 23 Mar 2018 08:33:27 +0000 (11:33 +0300)]
0029586: Revolution creates solid with degenerated edges shared among faces

Substitution of degenerated edges by their copies is implemented to make edges not shared
in BRepPrimAPI_MakeRevol::Build().
Method BRepPrimAPI_MakeRevol::Generated(...) is changed in order to use history of substitutions.
Test case is added.

5 years ago0029719: Modeling Algorithms - GeomPlate_BuildPlateSurface has no progress informatio...
drazmyslovich [Mon, 23 Apr 2018 14:52:43 +0000 (17:52 +0300)]
0029719: Modeling Algorithms - GeomPlate_BuildPlateSurface has no progress information and is not abortable

The Message_ProgressIndicator handle is added as a parameter to the function LU_Decompose and the the member functions of math_Gauss, Plate_Plate and GeomPlate_BuildPlateSurface classes.

5 years ago0029729: Visualization, Graphic3d_ClipPlane - add support of clipping plane chains
kgv [Fri, 25 May 2018 07:13:38 +0000 (10:13 +0300)]
0029729: Visualization, Graphic3d_ClipPlane - add support of clipping plane chains

Graphic3d_ClipPlane now can define a Chain of Planes (logical AND).
OpenGl_ShaderManager - added new GLSL sub-programs for clipping plane chains.
Bnd_Range::TrimFrom(), ::TrimTo() - added auxiliary methods for trimming the range.
SelectMgr_ViewClipRange now handles non-continuous clipping range.
Graphic3d_SequenceOfHClipPlane now aggregates NCollection_Sequence instead of inheritance.
OpenGl_CappingPlaneResource - triangulation has been adjusted to make front face following CCW order.

5 years ago0029765: BOPTools_AlgoTools::MakeSplitEdge Creates Illegal Edge
Benjamin Bihler [Tue, 15 May 2018 07:43:57 +0000 (10:43 +0300)]
0029765: BOPTools_AlgoTools::MakeSplitEdge Creates Illegal Edge

Method MakeSplitEdge checks arguments order.
This makes the method more generic.
Taking vertex orientation into account.

5 years ago0029520: Visualization - drop deprecated V3d_View::Export() functionality and depende...
kgv [Tue, 20 Feb 2018 05:37:38 +0000 (08:37 +0300)]
0029520: Visualization - drop deprecated V3d_View::Export() functionality and dependency from gl2ps

5 years agoSwitching #define OCC_VERSION_DEVELOPMENT "dev"
bugmaster [Thu, 14 Jun 2018 10:27:03 +0000 (13:27 +0300)]
Switching #define OCC_VERSION_DEVELOPMENT "dev"

5 years agoUpdate version of OCCT up to 7.3.1
bugmaster [Thu, 14 Jun 2018 11:01:17 +0000 (14:01 +0300)]
Update version of OCCT up to 7.3.1

5 years agoCorrection of corrupted png file V7_3_0
bugmaster [Mon, 28 May 2018 10:39:20 +0000 (13:39 +0300)]
Correction of corrupted png file

5 years agoRaise OCCT version up to 7.3.0 (comment out "beta")
abv [Fri, 25 May 2018 15:52:41 +0000 (18:52 +0300)]
Raise OCCT version up to 7.3.0 (comment out "beta")

5 years ago0029669: Crash on opening a document with same Ocaf attributes with different IDs
abv [Fri, 25 May 2018 18:26:45 +0000 (21:26 +0300)]
0029669: Crash on opening a document with same Ocaf attributes with different IDs

Added protection against clash of attributes with the same GUID when more than one attribute of the same type but with different GUIDs are stored in the file.
If attribute with default GUID has already been read, then adding next empty attribute of the same type (done at start of its reading) will fail; in such case another attempt is made with Null GUID.

5 years ago0029816: Add possibility to get/set shape presentations for GD&T label through one...
isn [Tue, 13 Mar 2018 13:22:28 +0000 (16:22 +0300)]
0029816: Add possibility to get/set shape presentations for GD&T label through one function

new methods GetGDTPresentations(.) and GetGDTPresentations(.) for Dimension Tool

5 years ago0029407: Generating static libraries on macOS
apn [Fri, 25 May 2018 15:23:01 +0000 (18:23 +0300)]
0029407: Generating static libraries on macOS

Update "Building with Xcode" documentation

5 years ago0029266: Configuration - CMake install does not copy pdb files in Debug mode due...
apn [Thu, 24 May 2018 13:54:00 +0000 (16:54 +0300)]
0029266: Configuration - CMake install does not copy pdb files in Debug mode due to the changes in 0028287

Define variable "OCCT_INSTALL_BIN_LETTER" only if compiler is some version of Microsoft Visual C.

5 years ago0029791: Visualization - Wrong result of SelectMgr_RectangularFrustum::IsClipped
kgv [Thu, 24 May 2018 17:10:32 +0000 (20:10 +0300)]
0029791: Visualization - Wrong result of SelectMgr_RectangularFrustum::IsClipped

SelectMgr_RectangularFrustum::computeClippingRange() fix skipping depth range starting behind the ray.

5 years ago0029715: Mesh - Estimate the grid size of the acceleration structure by the complexit...
drazmyslovich [Mon, 23 Apr 2018 13:04:29 +0000 (16:04 +0300)]
0029715: Mesh - Estimate the grid size of the acceleration structure by the complexity of the face

The circles acceleration structure sizes are estimated using the required deflection and the complexity of the face.

5 years ago0029640: OCAF - add information on replacement of CDM_MessageDriver in upgrade guide.
abv [Thu, 24 May 2018 15:43:22 +0000 (18:43 +0300)]
0029640: OCAF - add information on replacement of CDM_MessageDriver in upgrade guide.

Information on replacement of CDM_MessageDriver by Message_Messenger is added in the upgrade guide.
This replacement is recorded as rename in upgrade.dat

5 years ago0029621: Application Framework - Impossible to attach existing tessellation to XCAFDo...
snn [Wed, 11 Apr 2018 13:19:07 +0000 (16:19 +0300)]
0029621: Application Framework - Impossible to attach existing tessellation to XCAFDoc_Note

- XCAFNoteObjects_NoteObject transfer object for note's auxiliary data was added. It contains the following fields:
  text and attachment positions, note plane and tesselated presentation
- GetObject/SetObject methods were added to XCAFDoc_Note attribute. The following sub-labels were added to handle transfer object:
  1 - text position
  2 - note plane
  3 - attachment point
  4 - tesselated presentation
- documentation updated

Off-topic: procedure genproj now gives meaningful error message if new package is added but not listed in UDLIST

5 years ago0029811: Tests - unstable tests demo\draw\binpersist_* due to usage of the same tempo...
kgv [Thu, 24 May 2018 09:47:28 +0000 (12:47 +0300)]
0029811: Tests - unstable tests demo\draw\binpersist_* due to usage of the same temporary file name

5 years ago0029800: Upgrade Guide - TInspector correction documentation
nds [Thu, 24 May 2018 04:20:02 +0000 (07:20 +0300)]
0029800: Upgrade Guide - TInspector correction documentation

TInspector documentation is updated

5 years ago0029775: Modeling Data - BRepAdaptor_CompCurve Parameterization Is Incorrect
Benjamin Bihler [Wed, 16 May 2018 09:59:15 +0000 (11:59 +0200)]
0029775: Modeling Data - BRepAdaptor_CompCurve Parameterization Is Incorrect

Added wire connectivity requirement to class documentation of
BRepAdaptor_CompCurve.

5 years ago0029754: Coding Rules - replace Standard_Integer with Graphic3d_ZLayerId for consistency
kgv [Mon, 14 May 2018 05:54:08 +0000 (08:54 +0300)]
0029754: Coding Rules - replace Standard_Integer with Graphic3d_ZLayerId for consistency

5 years ago0029139: Overview contains old screenshots of occt
ysn [Mon, 21 May 2018 11:18:12 +0000 (14:18 +0300)]
0029139: Overview contains old screenshots of occt

Numbers and screenshots have been updated in the overview to correspond to V7.3.0.

5 years ago0029784: Crash at STEP file reading with enabled sub-shapes
gka [Mon, 21 May 2018 13:09:28 +0000 (16:09 +0300)]
0029784: Crash at STEP file reading with enabled sub-shapes

In the method STEPCAFControl_Reader::ExpandShell protection for case when entity ""Connected_Face_Set" contains not only "FACE" entities ( for example "VERTEX_POINT" entities) was added.

5 years ago0029790: Upgrade Guide - problematic grammar and formatting
ysn [Mon, 21 May 2018 13:24:44 +0000 (16:24 +0300)]
0029790: Upgrade Guide - problematic grammar and formatting

Grammar errors and formatting issues have been fixed.

5 years ago0029755: Proofread changes in the user guides from v7.2 to v7.3
ysn [Fri, 11 May 2018 12:17:12 +0000 (15:17 +0300)]
0029755: Proofread changes in the user guides from v7.2 to v7.3

Recent modifications and additions in the user and dev guides have been reviewed (except for upgrade.md and inspector.md).

5 years ago0029764: Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround...
kgv [Mon, 14 May 2018 12:33:55 +0000 (15:33 +0300)]
0029764: Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Visual Studio Linker bug with enabled CLI

5 years ago0029768: Visualization, TKOpenGl - structure is entirely clipped by suppressed clipping
kgv [Mon, 14 May 2018 16:25:16 +0000 (19:25 +0300)]
0029768: Visualization, TKOpenGl - structure is entirely clipped by suppressed clipping

OpenGl_Structure::Render(), added missing check for disabled state of the plane.
vclipplane command has been extended with new option -setOverrideGlobal.

5 years ago0029746: Modeling Algoriothms - declare Boolean operation classes in BRepAlgo package...
msv [Thu, 10 May 2018 08:50:03 +0000 (11:50 +0300)]
0029746: Modeling Algoriothms - declare Boolean operation classes in BRepAlgo package as deprecated

The API classes in the package BRepAlgo providing access to old Boolean operations (Fuse, Common, Cut, Section) are marked as deprecated.
Corresponding classes from the package BRepAlgoAPI should be used instead.

5 years ago0026493: BRepProj_Projection failed to project a wire on a shell
emv [Wed, 25 Apr 2018 06:33:50 +0000 (09:33 +0300)]
0026493: BRepProj_Projection failed to project a wire on a shell

Problem is fixed by the fix for the issue #0028599 (porting of the BRepProj_Projection to modern Boolean Operations algorithm)
Thus, only test case is integrated here.

5 years ago0029724: Visualization - add AIS_InteractiveContext::ClearDetected() undoing MoveTo...
kgv [Wed, 25 Apr 2018 08:38:11 +0000 (11:38 +0300)]
0029724: Visualization - add AIS_InteractiveContext::ClearDetected() undoing MoveTo() dynamic highlighting

Introduced new method AIS_InteractiveContext::ClearDetected() allowing
to reset the list of detected objects and clear dynamically highlighted
entity under mouse cursor after previous AIS_InteractiveContext::MoveTo().

vmoveto command has been extended with new argument -reset.

5 years ago0029744: Visualization - SelectMgr_ViewerSelector::PickedPoint() returns wrong 3D...
kgv [Tue, 8 May 2018 12:32:16 +0000 (15:32 +0300)]
0029744: Visualization - SelectMgr_ViewerSelector::PickedPoint() returns wrong 3D point for objects with transformation persistence

SelectMgr_RectangularFrustum::DetectedPoint() now takes into account myScale.

5 years ago0029779: Visualization, SelectMgr_SelectableObject - sensitivity change for object...
nds [Wed, 16 May 2018 14:06:10 +0000 (17:06 +0300)]
0029779: Visualization, SelectMgr_SelectableObject - sensitivity change for object not activated in given mode leads to crash

5 years ago0029743: Samples - Inspector tool - crash by selecting TNaming_UsedShapes tree item
nds [Tue, 8 May 2018 14:55:09 +0000 (17:55 +0300)]
0029743: Samples - Inspector tool - crash by selecting TNaming_UsedShapes tree item

- TNaming_UsedShapes is corrected to do not call methods of empty TopoDS_Shape
- TNaming_NamedShape is corrected to have not NULL TNaming_RefShape even if TopoDS_Shape is NULL(TNaming_Builder::Delete).
- DFBrowserPane presentation tree item for this is corrected in the same way and obsolete methods of processing SortedReferences are removed.

5 years ago0029749: Samples - Inspector tool - remove "modified" column in TNaming_NamedShape...
nds [Thu, 10 May 2018 03:53:15 +0000 (06:53 +0300)]
0029749: Samples - Inspector tool - remove "modified" column in TNaming_NamedShape presentation

5 years ago0029748: Samples - Inspector tool - use recently opened files in TInspectorEXE
nds [Tue, 8 May 2018 17:21:08 +0000 (20:21 +0300)]
0029748: Samples - Inspector tool - use recently opened files in TInspectorEXE

- recently files using in open file dialog
- correction of TInspectorEXE title to show opened file path by Start

5 years ago0029781: Samples - Inspector tool - history tree model is not set into external callb...
nds [Thu, 17 May 2018 06:29:04 +0000 (09:29 +0300)]
0029781: Samples - Inspector tool - history tree model is not set into external callback in VInspector

- AIS_InteractiveContex and VInspector_ViewModelHistory are set into VInspector_CallBack
- minor correction of displaySelectedPresentations () to Hide/Show(by popup menu) any AIS_InteractiveObject, not only AIS_Shape (e.g. AIS_Trihedron)

5 years ago0029747: Samples - Inspector tool - start DFBrowser inside FuncDemo qt sample
nds [Tue, 8 May 2018 16:56:11 +0000 (19:56 +0300)]
0029747: Samples - Inspector tool - start DFBrowser inside FuncDemo qt sample

new Model->DFBrowser action to start Inspector tool with active DFBrowser plugin filled by the sample OCAF application.
To update content of the DFBrowser, use <F5> shortcut.

5 years ago0029735: Draw Harness - command to set 2D mode for viewer in ViewerTest package
nds [Tue, 8 May 2018 16:17:09 +0000 (19:17 +0300)]
0029735: Draw Harness - command to set 2D mode for viewer in ViewerTest package

vinit command has been extended with new option -2d_mode.
Added new command v2dmode to switch On/Off the mode.

5 years ago0029741: Samples - Inspector tool - wide icon size in table of TNamingNamedShape...
nds [Mon, 7 May 2018 12:40:18 +0000 (15:40 +0300)]
0029741: Samples - Inspector tool - wide icon size in table of TNamingNamedShape attribute in DFBrowser plugin

5 years ago0029733: TInspector can't open several cbf files
nds [Tue, 8 May 2018 12:33:20 +0000 (15:33 +0300)]
0029733: TInspector can't open several cbf files

The issue is not reproduced anymore. The integration contains DRAW test for described functionality.

5 years ago0029739: Draw Harness - vdonly does not hide displayed objects
nds [Mon, 7 May 2018 11:20:38 +0000 (14:20 +0300)]
0029739: Draw Harness - vdonly does not hide displayed objects

5 years ago0029737: Data Exchange - Revert optimization in XCAF for format compability
ika [Mon, 7 May 2018 08:51:58 +0000 (11:51 +0300)]
0029737: Data Exchange - Revert optimization in XCAF for format compability

Revert changes from 0029338, which were affected on order of GDT attribute sublabels.

5 years ago0029701: BRepTools::Update(Face) unexpectedly updates UV points of pcurve
emv [Thu, 19 Apr 2018 13:31:19 +0000 (16:31 +0300)]
0029701: BRepTools::Update(Face) unexpectedly updates UV points of pcurve

The method *BRepTools::UpdateFaceUVPoints* has been modified to resets the UV points of the edge to the bounding points of the parametric curve of the edge on the face.

Test cases for the issue.

Adjust test cases heal split_angle_advanced ZC3, ZE6, ZE9 for current behavior as they show less faulty shapes now.
Adjust test case bugs modalg_6 bug21246 as it works correctly now.

5 years ago0029730: OCAF User's Guide correction for case of attributes with User defined GUID
szy [Fri, 27 Apr 2018 12:02:32 +0000 (15:02 +0300)]
0029730: OCAF User's Guide correction for case of attributes with User defined GUID

Added description of attributes usage with User defined GUID

5 years ago0029655: [Regression to 6.9.1] Distance between cylinder and straight line
ifv [Mon, 2 Apr 2018 14:05:51 +0000 (17:05 +0300)]
0029655: [Regression to 6.9.1] Distance between cylinder and straight line

Trimming line by corner points of surface bounding box is added to reduce rang of line
Test case added

5 years ago0029698: Regression vs 7.2.0: Common operation raises FLT_INVALID_OPERATION exception
emv [Mon, 16 Apr 2018 12:21:35 +0000 (15:21 +0300)]
0029698: Regression vs 7.2.0: Common operation raises FLT_INVALID_OPERATION exception

When checking if the split edge is oriented as the original one (BOPTools_AlgoTools::IsSplitToReverse()) the tangent vectors should be computed for both edges at the same point. This point is taken on the split edge and projected on the original edge.
The fix is intended to ensuring that the reference point will be taken inside the valid range of the split edge (i.e. not covered by the tolerance spheres of its bounding vertices) and the projection of this point on the original edge will be successful. Moreover, several sampling points are now taken on the split edge and processed until first valid point is found.

If requested (by a not null pointer) all *BOPTools_AlgoTools::IsSplitToReverse()* methods are now return the error status of the check. Before using the returned flag, the calling program should check this error status. For successful check the error status should be equal to zero.

New warning *BOPAlgo_AlertUnableToOrientTheShape* is now returned in the algorithms in Boolean component in case the check for correct shape orientation failed.

Test case for the issue.

5 years ago0029695: Shape Healing - infinite loop in ShapeFix_IntersectionTool
gka [Mon, 16 Apr 2018 08:58:43 +0000 (11:58 +0300)]
0029695: Shape Healing - infinite loop in ShapeFix_IntersectionTool

Avoid splitting of wrong edge in ShapeFix_IntersectionTool.
Added protection for case when index of edge to be split is out of range.

Added test bugs heal bug29695

6 years agoIncrement of OCCT version up to 7.3.0beta V7_3_0_beta
bugmaster [Fri, 13 Apr 2018 09:37:14 +0000 (12:37 +0300)]
Increment of OCCT version up to 7.3.0beta

6 years ago0029682: Boolean intersection with fuzzy-option hangs
nbv [Mon, 9 Apr 2018 13:05:30 +0000 (16:05 +0300)]
0029682: Boolean intersection with fuzzy-option hangs

Algorithm of step re-computation has been improved.

6 years ago0029604: Uniform mechanism providing History of shape's modifications for OCCT algori...
emv [Wed, 21 Mar 2018 13:59:29 +0000 (16:59 +0300)]
0029604: Uniform mechanism providing History of shape's modifications for OCCT algorithms in DRAW

Implementation of the mechanism for unification of the history commands for all OCCT algorithms.
The following Draw commands should be used to track the history of shapes modifications of any operation:
- modified - to find the shapes modified from the given shape in the given history.
- generated - to find the shapes generated from the given shape in the given history.
- isdeleted - to check if the given shape has been deleted during operation.

The mechanism allows fast & easy enabling of the DRAW history support for the algorithms supporting the history on the API level (i.e. the algorithm should have the methods Modified(), Generated() and IsDeleted()).
To enable the draw history support it is necessary to store the history of the algorithm into the session. For instance:

TopTools_ListOfShape Objects = ...; // Objects
TopTools_ListOfShape Tools = ...; // Tools

BRepAlgoAPI_Cut aCut(Objects, Tools); // Boolean cut operation

BRepTest_Objects::SetHistory(Objects, aCut); // Store the history for the Objects (overwrites the history in the session)
BRepTest_Objects::AddHistory(Tools, aCut);   // Add the history for the Tools

To get the stored history in draw the command "savehistory" should be used. It saves the history kept in session into a Drawable object with the given name:

# perform cut
bcut r s1 s2

# save history of cut
savehistory cut_history

explode s1 f
modified m cut_history s1_1

The Draw History commands of the following algorithms have been removed:
- Boolean Operations;
- Defeaturing;
- Unify same domain;
- Sweep;
- Thrusections;

All these algorithms have been switched to support the new Draw history mechanism.

The Fillet and Blend algorithms have been also enabled to support history commands.

6 years ago0029532: BOPCol containers used in the OCCT 720 do not support in the current develop...
nbv [Fri, 2 Mar 2018 09:03:09 +0000 (12:03 +0300)]
0029532: BOPCol containers used in the OCCT 720 do not support in the current development version.

The file upgrade.dat has been updated.

6 years ago0029639: CMake - rename options for building samples
nds [Thu, 12 Apr 2018 03:24:42 +0000 (06:24 +0300)]
0029639: CMake - rename options for building samples

- BUILD_SAMPLES_MFC instead of BUILD_MODULE_MfcSample
- BUILD_SAMPLES_QT instead of BUILD_MODULE_QtSample
- sub-folder "mfc" of Samples folder in VStudio for mfc samples
- qt processing of *.ts resource files is corrected to avoid excessive projects creation under Samples folder in VStudio

6 years ago0029684: Configuration: modification of build Inspector tool standalone on occt
nds [Thu, 12 Apr 2018 03:56:58 +0000 (06:56 +0300)]
0029684: Configuration: modification of build Inspector tool standalone on occt

- samples/tools/TStandalone is removed, to build Inspector out of OCCT, CMake should use tools/CMakeLists.txt fileName
- samples/tools/TInspectorEXE is moved to tools/TInspectorEXE
- TInspectorAPI_Version.hxx provides compilation inspector with earlier version of OCCT.

6 years ago0029688: Regression vs 7.2.0: Wrong result of CUT operation
emv [Wed, 11 Apr 2018 09:22:29 +0000 (12:22 +0300)]
0029688: Regression vs 7.2.0: Wrong result of CUT operation

Boolean Operations - when splitting the face by the intersections with other arguments check if the face (e.g. really thin one) can be split by a vertex. In this case avoid simple face reconstruction and use the BuilderFace algorithm to split the face.
Test case for the issue.

6 years ago0029674: Improvements in Inspector tool
nds [Fri, 23 Mar 2018 13:08:11 +0000 (16:08 +0300)]
0029674: Improvements in Inspector tool

- preferences for dock windows geometry, tree view columns and current view projection;
- ViewControl package for common functionality between plugins;
- processing Location and Orientation for external TopoDS_Shape object
- 'F5' key to update content of each plugin
- visibility column in tree view (used now only in ShapeView)
- properties child item for context (presents tree of current Filters of context)

6 years agoRevert "0029369: ShapeFix_Face algorithm does not heal properly the face lying on...
jgv [Wed, 11 Apr 2018 09:28:04 +0000 (12:28 +0300)]
Revert "0029369: ShapeFix_Face algorithm does not heal properly the face lying on a surface of revolution"

This reverts commit 7d13fd8ea30857c226a777879e1302a38f67cf6f.

6 years ago0029651: ViewerTest - vtexture command crashes
san [Tue, 27 Mar 2018 08:54:12 +0000 (11:54 +0300)]
0029651: ViewerTest - vtexture command crashes

Missing null check added

Add test case bugs/vis/bug29651

6 years ago0029452: Application Framework - Failed to read an Ocaf XML document with 1.#QNAN...
szy [Mon, 12 Mar 2018 14:50:08 +0000 (17:50 +0300)]
0029452: Application Framework - Failed to read an Ocaf XML document with 1.#QNAN value.

Method XmlObjMgt::GetReal() is improved to (a) recognize NAN and infinity written by old MSVC runtime (like 1.#QNAN and 1.#INF) and (b) detect situation when there are some trailing non-space symbols after the real value, returning False in such case.

Reading of real-valued attributes (single real, array, list) from OCAF XML format is improved to create valid attribute even if parsing of (some) members fails; warning is generated instead of error in such case.

Added test bugs caf bug29452

6 years ago0029574: Protection of attributes retrieval against zero ID in Ocaf XML.
szy [Mon, 19 Mar 2018 15:43:04 +0000 (18:43 +0300)]
0029574: Protection of attributes retrieval against zero ID in Ocaf XML.

//Impacts attributes supporting user defined IDs.

6 years ago0029680: Tests - command checkprops does not work for negative values
abv [Sun, 8 Apr 2018 15:52:31 +0000 (18:52 +0300)]
0029680: Tests - command checkprops does not work for negative values

DRAW command checkprops is corrected to handle properly negative reference values.

Test case offset faces_face_i E5 is corrected (improvement due to #28903)

6 years ago0029591: Improvements in the class BRepOffset_Tool
jgv [Fri, 23 Mar 2018 13:08:11 +0000 (16:08 +0300)]
0029591: Improvements in the class BRepOffset_Tool

- Add the flag ExtensionMode in the method BRepOffset_Tool::EnLargeFace, defining the mode of extension of the surface of the face. Old behavior is to be remained the default one.

- Fix wrong building of extended face on a closed surface. Now, if the face is closed in U direction (like cylinder) but the seam edge is shifted from 0 position, the resulting extended face has properly connected seam edge.

- Add new public static method BRepTools::DetectClosedness(), which checks whether a face is closed in U and V directions.

6 years ago0029663: Exception in BRepFill_PipeShell algorithm
nbv [Thu, 29 Mar 2018 14:49:54 +0000 (17:49 +0300)]
0029663: Exception in BRepFill_PipeShell algorithm

BRepFill_Sweep algorithm is improved to handle cases when generated revolution surface has degenerated point in the middle.

Added test bugs modalg_7 bug29663

TODO added in test bugs modalg_1 bug1477_11: here two additional self-intersecting faces are now created, previously missing from the result.

6 years ago0029659: Samples - Image is not displayed in Viewer2d MFC sample
kgv [Sun, 8 Apr 2018 09:54:21 +0000 (12:54 +0300)]
0029659: Samples - Image is not displayed in Viewer2d MFC sample

Fixed wrong Display Mode assigned to Sample2D_Image presentation.

6 years ago0029658: Samples - light is not updated while moving mouse within Viewer3d MFC sample
kgv [Sun, 8 Apr 2018 09:43:24 +0000 (12:43 +0300)]
0029658: Samples - light is not updated while moving mouse within Viewer3d MFC sample

Adding missing Viewer redraw calls.

6 years ago0028934: Coding - Eliminate compiler warnings in OCCT samples
nds [Wed, 4 Apr 2018 03:25:02 +0000 (06:25 +0300)]
0028934: Coding - Eliminate compiler warnings in OCCT samples

- covering Qt warnings for compilation under MSVC 2013 and greater
- avoid warning about 'M_PI'(and others) redefinition warning of math.h: includes of QtWidgets should follow after other includes.

6 years ago0029643: Samples: create .bat files for building AndroidQt sample on Windows platform
apn [Mon, 26 Mar 2018 10:10:59 +0000 (13:10 +0300)]
0029643: Samples: create .bat files for building AndroidQt sample on Windows platform

Create environment (genproj.bat, msvc.bat, etc) for building AndroidQt sample on Windows platform (as well as it's done in other OCCT Qt samples)

6 years ago0029668: Configuration: build Inspector aplication independently on BUILD_MODULE_QtSa...
nds [Mon, 2 Apr 2018 11:17:44 +0000 (14:17 +0300)]
0029668: Configuration: build Inspector aplication independently on BUILD_MODULE_QtSamples state

6 years ago0029606: [Regression vs 7.0] BRepClass3d_SolidClassifier classifies the point as...
ifv [Wed, 28 Mar 2018 14:00:50 +0000 (17:00 +0300)]
0029606: [Regression vs 7.0] BRepClass3d_SolidClassifier classifies the point as IN while it is ON

Simple treatment of some analytical cases when curve is parallel or belongs surface is added in curve - face/surface intersection algorithm
Treatment such cases is added in classifier algorithm
Test case added

6 years ago0029667: Visualization, TKV3d - User-defined texture coordinates corrupted by StdPrs_...
san [Fri, 30 Mar 2018 13:38:34 +0000 (16:38 +0300)]
0029667: Visualization, TKV3d - User-defined texture coordinates corrupted by StdPrs_ShadedShape

Add protection in fillTriangles() against void UV range of a face.

6 years ago0029650: Data Exchange - possible exception in shape tool
ika [Tue, 27 Mar 2018 08:17:54 +0000 (11:17 +0300)]
0029650: Data Exchange - possible exception in shape tool

6 years ago0029633: Data Exchange - access violation in StepVisual_PresentationStyleAssignment...
ika [Fri, 23 Mar 2018 15:12:00 +0000 (18:12 +0300)]
0029633: Data Exchange - access violation in StepVisual_PresentationStyleAssignment while translating STEP file

Add several checks for null.

6 years ago0029599: Data Exchange - Incorrect expand compound method in XDE
ika [Fri, 16 Mar 2018 13:18:10 +0000 (16:18 +0300)]
0029599: Data Exchange - Incorrect expand compound method in XDE

Improve processing of subshapes in ShapeTool
Fix sharing and calculating location for subshapes
Switch off autonaming for expand

6 years ago0029525: PMI dimension names
snn [Mon, 26 Feb 2018 12:16:18 +0000 (15:16 +0300)]
0029525: PMI dimension names

Implemented semantic PMI names translation from STEP to XCAF in OCCT:
- [Get/Set]SemanticName functions added to XCAFDimTolObjects_*Object classes
- X[Get/Set]GDTSemanticName draw commands added
- test case added

6 years ago0029660: Misprint in BuildEdge(...) static function of BRepFill_Sweep.cxx file
nbv [Thu, 29 Mar 2018 07:43:30 +0000 (10:43 +0300)]
0029660: Misprint in BuildEdge(...) static function of BRepFill_Sweep.cxx file

Misprint has been eliminated.

6 years ago0029646: Boolean Operations algorithm produces a face with self-intersecting wire
emv [Mon, 26 Mar 2018 12:06:18 +0000 (15:06 +0300)]
0029646: Boolean Operations algorithm produces a face with self-intersecting wire

Boolean operations - Allow repeated intersection of edges to find the coinciding pairs.
Previously, only the edges rejected by bounding boxes classification has been additionally checked on coincidence. The current patch removes this filter allowing all edges with coinciding vertices to be checked on coincidence.

Adjustment of the test cases for current behavior:
1. The following cases are improvements:
boolean volumemaker A8
bugs modalg_1 buc60703_1
bugs modalg_1 buc60703_2
bugs modalg_1 buc60703_4
bugs modalg_6 bug26789_1
bugs modalg_6 bug26789_2
bugs modalg_7 bug26883_4
bugs modalg_7 bug27948

2. bugs modalg_7 bug29580_1 is modified to extend the validity checks.

6 years ago0029394: IESample contains strange STEP reading code
Benjamin Bihler [Tue, 19 Dec 2017 10:12:32 +0000 (11:12 +0100)]
0029394: IESample contains strange STEP reading code

All STEP roots are transferred first and then all shapes are read.
The resulting sequence is not discarded and recreated.

6 years ago0028903: BRepOffset_MakeOffset produces invalid shape (thickshell) in Intersection...
jgv [Tue, 23 Jan 2018 14:54:06 +0000 (17:54 +0300)]
0028903: BRepOffset_MakeOffset produces invalid shape (thickshell) in Intersection mode

1. Method BRepOffset_Tool::Inter3D is modified: now selection of proper edges is performed here, they are not concatenated into one edge if they go through a vertex on a boundary.

2. Method BRepOffset_Inter3d::ConnexIntByInt is modified: selection of edges is eliminated.

3. Method BRepOffset_Inter2d::ConnexIntByInt is corrected to be able to process seam edges correct.