occt.git
6 years ago0016740: XCAFDoc_ShapeMapTool is not restored CR16740
apv [Tue, 27 Jun 2017 11:45:35 +0000 (14:45 +0300)]
0016740: XCAFDoc_ShapeMapTool is not restored
# Test case creation

6 years ago0028849: [Regression to 7.1.0] Exception in Boolean operation
nbv [Fri, 16 Jun 2017 09:21:57 +0000 (12:21 +0300)]
0028849: [Regression to 7.1.0] Exception in Boolean operation

The reason of exception has been eliminated.

6 years ago0028852: TDF_AttributeIterator should not be marked as "handle with care"
mpv [Tue, 20 Jun 2017 13:47:48 +0000 (16:47 +0300)]
0028852: TDF_AttributeIterator should not be marked as "handle with care"

Warning lines have been removed.
Added a comment about usage of this class.

6 years ago0028362: Documentation - Doxygen warnings
abv [Tue, 20 Jun 2017 20:38:35 +0000 (23:38 +0300)]
0028362: Documentation - Doxygen warnings

Formatting of user guide is corrected (code block properly closed)

6 years ago0028844: Regression vs 7.1.0: Exception is raised by the solid classification algorithm
emv [Fri, 16 Jun 2017 05:59:21 +0000 (08:59 +0300)]
0028844: Regression vs 7.1.0: Exception is raised by the solid classification algorithm

Protection from normalization of the null vector.

Test cases for the issue.

6 years ago0028490: Point located outside the solid is classified as inside
ifv [Fri, 3 Mar 2017 12:34:11 +0000 (15:34 +0300)]
0028490: Point located outside the solid is classified as inside

New method for building surface polyhedron (class IntCurveSurface_Polyhedron), which takes in account intervals of discontinuity of surface is added for constructor IntCurvesFace_Intersector.

Bug in methods NbU(V)Intervals and U(V)Intervals for Offset surfaces is fixed.

6 years ago0028797: Exceptrion is raised during reading attached STEP file.
gka [Mon, 29 May 2017 15:42:55 +0000 (18:42 +0300)]
0028797: Exceptrion is raised during reading attached STEP file.

Protection for null handle was added in the method RWStepVisual_RWPresentationStyleAssignment::ReadStep

6 years ago0028841: testdiff DRAW command hangs or crash with arithmetical exception
apv [Mon, 19 Jun 2017 13:37:39 +0000 (16:37 +0300)]
0028841: testdiff DRAW command hangs or crash with arithmetical exception

6 years ago0027079: Bad approximation of intersection curves with variable curvature
jgv [Mon, 20 Mar 2017 11:43:32 +0000 (14:43 +0300)]
0027079: Bad approximation of intersection curves with variable curvature

    1. Method Approx_ComputeLine::Perform is modified: now it contains also recursive calls after new line computation made by new method ApproxInt_MultiLine::MakeMLOneMorePoint.
    2. New method MakeMLOneMorePoint is added to ApproxInt_MultiLine: it builds new sub-line as a part of main line with new point added into the middle of the longest interval between existing points.
    3. Method ShapeConstruct_ProjectCurveOnSurface::ApproxPCurve is modified to avoid regressions: now it takes care of the set of initial points to be enough close to each other so that an interval between two adjacent points is less than half-period of the surface.
    4. Modification in ShapeConstruct_ProjectCurveOnSurface: correction of pcurves of edges which extremities are in the singularities of surface.

6 years ago0028794: Regenerate .pxx file for Shaders/Display.fs resource
kgv [Wed, 14 Jun 2017 10:56:34 +0000 (13:56 +0300)]
0028794: Regenerate .pxx file for Shaders/Display.fs resource

6 years ago0028708: Create a mechanism to serve shape history by a way common for algorithms...
abk [Mon, 24 Apr 2017 13:04:45 +0000 (16:04 +0300)]
0028708: Create a mechanism to serve shape history by a way common for algorithms accepting and producing shapes

A shape history mechanism was created. It supports history for shapes with types
'vertex', 'edge', 'face' and 'solid'. It allows define relations 'generated',
'modified' and 'removed' between the accepted and the produced shapes. It
provides functionality for the other widely used history mechanism 'Generated',
'Modified', 'IsDeleted'. It provides algorithm to merge two histories of
sequentially applied algorithms. Recommendations were formalized to choose
between relations 'generated' and 'modified'.

6 years ago0028838: Configuration - undefine macros coming from X11 headers in place of collision
kgv [Fri, 3 Feb 2017 19:27:02 +0000 (23:27 +0400)]
0028838: Configuration - undefine macros coming from X11 headers in place of collision

The macros Status, Convex, Opposite, FillSolid (coming from X11 headers)
are now undefined in place of definition of methods with same name in OCCT headers.
The usage of variables with name Status is now avoided.

GL_GLEXT_LEGACY is now defined only if not already defined.

The macros AddPrinter (coming from WinAPI headers) is now undefined
within Message_Messenger class definition having method with the same name.
CurrentDirectory macro is now undefined in OSD_Process.hxx.

6 years ago0028843: Replacing @ symbol in v3d glsl tiles test case
mkv [Wed, 14 Jun 2017 15:45:38 +0000 (18:45 +0300)]
0028843: Replacing @ symbol in v3d glsl tiles test case

6 years ago0028802: The tolerance reached by approximator is used in creation of an edge, it...
jgv [Fri, 9 Jun 2017 12:21:04 +0000 (15:21 +0300)]
0028802: The tolerance reached by approximator is used in creation of an edge, it is incorrect

Method IntTools_FaceFace::MakeCurve is modified: reached tolerances 2d and 3d of approximator are not used for edges.

6 years ago0023575: Bounding box for a planar edge has non-zero dimension in direction orthogona...
apv [Wed, 14 Jun 2017 13:42:49 +0000 (16:42 +0300)]
0023575: Bounding box for a planar edge has non-zero dimension in direction orthogonal to an edge plane
# Test case bugs/moddata_3/bug23575 creation

6 years ago0003883: Problems of reading colors and layers in XDEDRAWEXE
apv [Wed, 14 Jun 2017 12:51:21 +0000 (15:51 +0300)]
0003883: Problems of reading colors and layers in XDEDRAWEXE
# Test cases bugs/step/bug3883_1, bug3883_2, bug3883_3, bug3883_4, bug3883_5 creation

6 years ago0028799: Coding Rules - elimilate confusing Quantity aliases of Standard_Real type
kgv [Tue, 6 Jun 2017 12:30:19 +0000 (15:30 +0300)]
0028799: Coding Rules - elimilate confusing Quantity aliases of Standard_Real type

Aliases to Standard_Real within Quantity package have been marked as deprecated.

6 years ago0028830: HalfSpace command chooses the wrong side of the given shell
msv [Fri, 9 Jun 2017 07:46:34 +0000 (10:46 +0300)]
0028830: HalfSpace command chooses the wrong side of the given shell

Improve the algorithm BRepPrimAPI_MakeHalfSpace. Earlier it made projection of the point only on faces. If the nearest point does not conform to normal projection criterion the result is wrong. The fix includes search of projection on edges and vertices. This makes the algorithm robust for half spaces with boundaries.

6 years ago0028813: Visualization, AIS_ColorScale - color scale title invalid placement
apv [Wed, 14 Jun 2017 11:12:30 +0000 (14:12 +0300)]
0028813: Visualization, AIS_ColorScale - color scale title invalid placement
# Test case bugs/vis/bug28813 creation

6 years ago0028707: Simplify type 'BRepTools_ReShape'
abk [Thu, 20 Apr 2017 15:24:00 +0000 (18:24 +0300)]
0028707: Simplify type 'BRepTools_ReShape'

Type 'BRepTools_ReShape' was simplified:
- the functionality to process shapes different only in orientation by different ways was removed as it is not used anywhere;
- method 'Apply' with the build mode parameter was moved to type 'ShapeBuild_ReShape' as it is used only through the last type.

6 years ago0028826: Visualization, TKOpenGl - fix compatibility with strict OpenGL ES drivers
kgv [Thu, 8 Jun 2017 07:44:17 +0000 (10:44 +0300)]
0028826: Visualization, TKOpenGl - fix compatibility with strict OpenGL ES drivers

OpenGl_ShaderProgram::Initialize() - precision declarations have been moved
after the list of enabled extensions.

Declarations.glsl - the fragment shader outputs have been re-declared as array
for proper assignment of default locations (draw buffers).

OpenGl_FrameBuffer - GL_HALF_FLOAT is now used instead of GL_HALF_FLOAT_OES on OpenGL ES 3.2+.
OpenGl_Texture - fixed initialization of Image_Format_RGB32 image format on OpenGL ES 3.0+.

6 years ago0028775: Code duplication removal across the BOPAlgo_PaveFiller algorithm
emv [Sat, 29 Apr 2017 22:09:36 +0000 (01:09 +0300)]
0028775: Code duplication removal across the BOPAlgo_PaveFiller algorithm

The methods PerformVerticesEE() and PerformVerticesEF() of the class BOPAlgo_PaveFiller have been replaced with the new PerformNewVertices() method.

While splitting the Pave Blocks with extra paves, check that the new Pave Blocks have the valid intersection range. If the new Pave Block does not have such range do not create it and unify its vertices making SD vertex.

Re-computation of the Shrunk Data for the modified Pave Blocks. The new method BOPDS_DS::IsValidShrunkData(const Handle(BOPDS_PaveBlock)& thePB) has been implemented to check that the Shrunk Data of the Pave Block is still valid. It may become invalid in case the tolerance values of the vertices of the Pave Block have been modified.

The test case bugs/modalg_6/bug27448_2 has been marked as BAD, because it uses the invalid shapes as inputs for BOP.

Test cases for the issue 0028690.

6 years ago0028789: Visualization, TKV3d - extend API for accessing and assigning BVH builders
kgv [Fri, 26 May 2017 07:45:22 +0000 (10:45 +0300)]
0028789: Visualization, TKV3d - extend API for accessing and assigning BVH builders

Several methods in Selection classes have been moved to header files for better inlining.

BVH_Constants - added new enumeration defining common constant values used with BVH trees.
BVH - replaced NCollection_Handle with Standard_Transient handle
in classes BVH_Properties, BVH_Builder, BVH_Tree, BVH_Object.

Defined global BVH-builders instead of allocating a new one for each object set.
SelectMgr_ViewerSelector - added new method ::SetEntitySetBuilder() defining
default BVH Tree builder for SelectMgr_SensitiveEntitySet.

Added new method SelectMgr_SensitiveEntitySet::SetBuilder()
for overriding default BVH tree builder.

6 years ago0026303: Problem with test cases boolean/gdml_private L1-9 and K1-K9
bugmaster [Thu, 8 Jun 2017 12:01:03 +0000 (15:01 +0300)]
0026303: Problem with test cases boolean/gdml_private L1-9 and K1-K9

Problem is not reproduced on current status of OCCT.
Test cases were reintegrated.

6 years ago0028787: Configuration, genproj - add option HAVE_RelWithDebInfo for generating VS...
kgv [Thu, 25 May 2017 09:25:43 +0000 (12:25 +0300)]
0028787: Configuration, genproj - add option HAVE_RelWithDebInfo for generating VS project files with Debug info in Release mode

6 years ago0028794: Visualization, Ray tracing - Implement tone mapping
age [Thu, 25 May 2017 11:34:34 +0000 (14:34 +0300)]
0028794: Visualization, Ray tracing - Implement tone mapping

Added enum Graphic3d_ToneMappingMethod for choosing tone mapping mode.
Added new rendering parameters.
Added tone mapping to Display.fs shader.

6 years ago0028654: Existed tool (gendoc) for generation documentation does not take into accoun...
ysn [Fri, 2 Jun 2017 08:55:34 +0000 (11:55 +0300)]
0028654: Existed tool (gendoc) for generation documentation does not take into account size of images.

The parameter defining image width has been added to all figures to improve their layout in PDF documents and tweaked depending on the nature of each image.
Additionally, some minor changes improving image and text layout have been introduced.

Remove temporary added possibility for setting image width automatically for generation of pdf documentation.

6 years ago0028785: Configuration, CMake - handle OCCT layout within 3rdparty_macro.cmake
kgv [Wed, 24 May 2017 12:25:09 +0000 (15:25 +0300)]
0028785: Configuration, CMake - handle OCCT layout within 3rdparty_macro.cmake

6 years ago0028814: Documentation - suggest using # instead of // for temporary comments in...
kgv [Mon, 5 Jun 2017 13:15:04 +0000 (16:15 +0300)]
0028814: Documentation - suggest using # instead of // for temporary comments in commit description

6 years ago0028812: Regression. bugs modalg_6 bug28468_2 test case is crashed if CSF_FPE set...
ifv [Tue, 6 Jun 2017 06:56:24 +0000 (09:56 +0300)]
0028812: Regression. bugs modalg_6 bug28468_2 test case is crashed if CSF_FPE set to 1.

Test the possibility of line creation is added

6 years ago0028822: Configuration, XCAFDoc - fix name collision with macros GetObject()
kgv [Wed, 7 Jun 2017 12:12:58 +0000 (15:12 +0300)]
0028822: Configuration, XCAFDoc - fix name collision with macros GetObject()

6 years ago0028820: Samples - fix compilation of JAVA sample for Android
kgv [Tue, 6 Jun 2017 14:59:57 +0000 (17:59 +0300)]
0028820: Samples - fix compilation of JAVA sample for Android

6 years ago0028784: [HLR] Crash while getting hidden lines for a compound
jgv [Fri, 2 Jun 2017 14:26:10 +0000 (17:26 +0300)]
0028784: [HLR] Crash while getting hidden lines for a compound

Method HLRBRep_PolyHLRToShape::InternalCompound is modified: avoid creation an edge with null length.

Add testing Draw command.

6 years ago0028815: Visualization, StdPrs_WFShape - fix misprint in condition
kgv [Tue, 6 Jun 2017 07:27:55 +0000 (10:27 +0300)]
0028815: Visualization, StdPrs_WFShape - fix misprint in condition

6 years ago0028809: Coding Rules - add .i files to .gitattributes
kgv [Mon, 5 Jun 2017 06:16:07 +0000 (09:16 +0300)]
0028809: Coding Rules - add .i files to .gitattributes

6 years ago0028806: Coding Rules - remove not implemented method OpenGl_ShaderObject::Initialize()
kgv [Fri, 2 Jun 2017 12:44:28 +0000 (15:44 +0300)]
0028806: Coding Rules - remove not implemented method OpenGl_ShaderObject::Initialize()

6 years ago0028795: Boolean operations corrupt the p-curve of the source planar face if "non...
nbv [Mon, 29 May 2017 07:42:30 +0000 (10:42 +0300)]
0028795: Boolean operations corrupt the p-curve of the source planar face if "non-destructive" option is switched off

Now, the range of BRep_CurveRepresentation of the edge is updated if at least one of its boundary is not infinite (earlier, it was updated if all two boundaries are not infinite only).

6 years ago0028347: Reuse OCCT implementation for producing end-user documentation for Products
apn [Thu, 1 Jun 2017 13:06:48 +0000 (16:06 +0300)]
0028347: Reuse OCCT implementation for producing end-user documentation for Products

Remove unnecessary definition of PRODROOT

6 years ago0023378: BRepAlgoAPI_Cut returns wrong result
apv [Thu, 1 Jun 2017 09:00:46 +0000 (12:00 +0300)]
0023378: BRepAlgoAPI_Cut returns wrong result
Adding test cases only

6 years ago0028714: XmlMFunction_ScopeDriver fail to read and write function label including...
mpv [Mon, 29 May 2017 09:16:56 +0000 (12:16 +0300)]
0028714: XmlMFunction_ScopeDriver fail to read and write function label including 0 tag in label path.

Reproduced on TDF_Reference attribute that refers to label with zero-tags entry. Make checking of saved/retrieved tags in XML format pass zero-tags as correct.

6 years ago0028773: BRepAlgoAPI_Cut invalid result
bugmaster [Wed, 31 May 2017 15:28:29 +0000 (18:28 +0300)]
0028773: BRepAlgoAPI_Cut invalid result

Adding test case only

6 years ago0028346: Function ProjectOnSegments of ShapeAnalysis_Curve returns only single soluti...
ifv [Thu, 2 Feb 2017 12:38:10 +0000 (15:38 +0300)]
0028346: Function ProjectOnSegments of ShapeAnalysis_Curve returns only single solution leading to projection result far from optimal

Subdivision of curve parametric interval based on deflection criteria is added for curve type OtherCurve in
Extrema_GExtPC.gxx. Algorithm of subdivision is implemented in Extrema_Curve(2d)Tool.cxx

New Draw command projpcurve for projection of point on CurveOnSurface is added in SWDRAW_ShapeAnalysis.cxx
projpcurve is modified to reflect "start parameter" in usage message and Draw help.

6 years ago0023177: Intersection of plane and torus misses a result and never produces analytica...
nbv [Mon, 29 May 2017 14:35:06 +0000 (17:35 +0300)]
0023177: Intersection of plane and torus misses a result and never produces analytical result

Creation of the test case.

6 years ago0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
kgv [Tue, 30 May 2017 10:43:59 +0000 (13:43 +0300)]
0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View

Quantity_Factor, Quantity_Parameter, Quantity_Ratio, Quantity_Coefficient,
Quantity_PlaneAngle, Quantity_Length, V3d_Parameter and V3d_Coordinate
have been replaced by Standard_Real in visualization classes.

6 years ago0028782: Shape sewing behavior not consistent for the same CAD file
msv [Thu, 25 May 2017 14:02:07 +0000 (17:02 +0300)]
0028782: Shape sewing behavior not consistent for the same CAD file

Get rid of iterations on maps with shape key by replacing simple maps with indexed maps. So iteration is done on integer key.

The map containers have been updated to insert into them type definitions of key and value.

The new methods RemoveKey() and RemoveFromIndex() have been added to indexed [data] map to be able to remove an arbitrary key from the map.

All the code in OCCT has been updated where RemoveLast() and Substitute() methods were used to remove a key from indexed [data] map.

6 years ago0028714: Dimension of TDataStd_Real is not serialized to document
mpv [Tue, 30 May 2017 08:49:26 +0000 (11:49 +0300)]
0028714: Dimension of TDataStd_Real is not serialized to document

Added a comments and Standard_DEPRECATED macros to obsolete methods that these methods will be removed and that the corresponding field myDimension is not stored in the document.

6 years ago0028616: TNaming - DELETE evolution is not considered by TNaming_NewShapeIterator.
szy [Tue, 30 May 2017 12:47:27 +0000 (15:47 +0300)]
0028616: TNaming - DELETE evolution is not considered by TNaming_NewShapeIterator.

// Fixed TNaming_Builder.

6 years ago0028793: Visualization, TKV3d - make BVH_Builder::Build() const for propagating build...
kgv [Fri, 26 May 2017 16:03:03 +0000 (19:03 +0300)]
0028793: Visualization, TKV3d - make BVH_Builder::Build() const for propagating builder by value

Added const for method BVH_Builder::Build().
Added missing Standard_OVERRIDE to overridden methods.
Merged code from .lxx in BVH package directly into .hxx headers.

6 years ago0028259: Method MakeBlocksCnx is duplicated in two different places in BOPAlgo
emv [Sat, 29 Apr 2017 22:09:36 +0000 (01:09 +0300)]
0028259: Method MakeBlocksCnx is duplicated in two different places in BOPAlgo

The methods BOPAlgo_Tools::MakeBlocksCnx(), BOPAlgo_Tools::MakeBlocks() and static method MakeBlocksCnx in BOPAlgo_Builder_2.cxx have been replaced with the new template method BOPAlgo_Tools::MakeBlocks(). The blocks of connected elements are now stored into the list of list instead of data map.
All methods BOPAlgo_Tools::FillMap() have been replaced with the new template method BOPAlgo_Tools::FillMap().

Making the Pave Block with the smallest index of original edge to be the first in the Common Block (i.e. the representing Pave Block).

The following improvements have been made in Boolean Operations algorithm to avoid regressions:
- When updating the existing common block update its pave blocks in a way that the parameters of the paves should be valid for the original edge (bugs/modalg_5/bug24809);
- When trying to reduce the tolerance of the section edge check the tolerance of all Face/Face interferences that created this edge (boolean/volumemaker/C4,D2);
- Avoid producing the different Pave Blocks for the same section edge (boolean/volumemaker/D6);

Adjustment of the test cases.

6 years ago0028788: Visualization, StdPrs_WFShape - Add option to compute Isolines using multipl...
kgv [Thu, 25 May 2017 14:36:10 +0000 (17:36 +0300)]
0028788: Visualization, StdPrs_WFShape - Add option to compute Isolines using multiple threads

StdPrs_WFShape::Add() now accepts new argument theIsParallel (FALSE by default)
for computing Isolines using multiple threads (if there is more then 1 Face).
StdPrs_Isolines::addOnTriangulation() - changed the iteration order (cosmetics).

6 years ago0028796: Coding Rules - fix declaration of Move constructor in NCollection_Array1
kgv [Mon, 29 May 2017 09:46:59 +0000 (12:46 +0300)]
0028796: Coding Rules - fix declaration of Move constructor in NCollection_Array1

6 years ago0028790: Data Exchange - Wrong orientation of Annotation Plane in GD&T (Writing)
ika [Fri, 26 May 2017 09:33:03 +0000 (12:33 +0300)]
0028790: Data Exchange - Wrong orientation of Annotation Plane in GD&T (Writing)

Fix building of Axis2Placement3d.

6 years ago0028771: BRepOffset_MakeOffset incorrect result
ifv [Tue, 23 May 2017 12:43:23 +0000 (15:43 +0300)]
0028771: BRepOffset_MakeOffset incorrect result

Correction of tolerance of new edges, which belongs planar faces is improved
Test case added.

6 years ago0025536: XmlMDataXtd_GeometryDriver doesn't support TDataXtd_SPLINE, TDataXtd_PLANE...
mpv [Thu, 25 May 2017 10:11:50 +0000 (13:11 +0300)]
0025536: XmlMDataXtd_GeometryDriver doesn't support TDataXtd_SPLINE, TDataXtd_PLANE and TDataXtd_CYLINDER.

Added support of the missed geometrical types into the XML driver.

6 years ago0025537: XmlMPrsStd_PositionDriver::Paste runtime check crash.
mpv [Mon, 22 May 2017 11:35:57 +0000 (14:35 +0300)]
0025537: XmlMPrsStd_PositionDriver::Paste runtime check crash.

Increased a size of buffer in array of 'char' to fit the largest possible conversion from 'double' to %.17g string.

6 years ago0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input...
kgv [Thu, 11 May 2017 15:10:53 +0000 (18:10 +0300)]
0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input argument

AIS_InteractiveObject, virtual methods ::SetColor(), ::Color()
returning/accepting Quantity_NameOfColor have been removed.
Virtual method ::SetMaterial() accepting Graphic3d_NameOfMaterial has been also removed.

V3d_View, V3d_Viewer, V3d_AmbientLight, V3d_DirectionalLight,
V3d_Light, V3d_PositionalLight, V3d_SpotLight, Aspect_Window,
methods accepting Quantity_NameOfColor have been removed (duplicates)
or color argument(s) replaced with Quantity_Color.

6 years ago0027667: OCAF binary persistence hangs on reading truncated CBF file
vro [Mon, 22 May 2017 12:41:14 +0000 (15:41 +0300)]
0027667: OCAF binary persistence hangs on reading truncated CBF file

A check on "end of file" is added to the reader.

6 years ago0028222: Intersection of two cylinders fails
nbv [Thu, 15 Dec 2016 14:22:00 +0000 (17:22 +0300)]
0028222: Intersection of two cylinders fails

1. The reason of exception has been eliminated.

2. Algorithm in IntPatch_WLineTool::JoinWLines(...) method has been modified in order to forbid join curves in the point where more than two intersection lines meet. More over, joining is forbidden if local curvature in the connection point is too big (see function CheckArgumentsToJoin(...) in the file IntPatch_WLineTool.cxx).

3. Interface of IntPatch_WLineTool::JoinWLines(...) method has been modified in order to reduce number of arguments.

4. Small corrections in IsSeamOrBound(...) static function has been made. Namely, check has been added if two boundaries are in the same period region but are too far each to other (see IntPatch_WLineTool.cxx, IsSeamOrBound(...) function, line # 532).

5. "Reversed" flag has been made local. Now, it is pure local characteristic: the algorithm decides itself, shall we reverse the argument order. This correction makes the algorithm more commutative (see issue #25404). However, IntPatch_WLineTool::JoinWLines(...) method can return non-commutative result.

6. Algorithm of searching small intersection curves has been improved.

7. New methods have been added in Bnd_Range class.

Some test cases have been adjusted according to their new behavior.

1. tests\bugs\modalg_6\bug26310_3
   tests\bugs\modalg_6\bug26310_4
   tests\bugs\moddata_2\bug235
   tests\perf\modalg\bug26310_1
   tests\bugs\modalg_5\bug24915

Logic of these cases has been changed. Mover over, additional check has been added in "bug26310_1" test case. Therefore, its performance will be slower than on the current MASTER.

2. tests\bugs\modalg_5\bug25292*

Scripts have been rewritten in order to make it more readable. Logic of these cases has not been changed.

6 years ago0028778: Coding Rules - clean up confusing code from Select3D
kgv [Tue, 23 May 2017 16:05:41 +0000 (19:05 +0300)]
0028778: Coding Rules - clean up confusing code from Select3D

6 years ago0028446: Could not retrieve just kept document with Integer attribute
szy [Tue, 23 May 2017 12:14:51 +0000 (15:14 +0300)]
0028446: Could not retrieve just kept document with Integer attribute

6 years ago0027970: Improvement of standard attributes usability - containers.
szy [Thu, 11 May 2017 14:37:44 +0000 (17:37 +0300)]
0027970: Improvement of standard attributes usability - containers.

6 years ago0028776: Extend the field BOPAlgo_Builder::myOrigins so that the shape could have...
emv [Wed, 3 May 2017 12:42:53 +0000 (15:42 +0300)]
0028776: Extend the field BOPAlgo_Builder::myOrigins so that the shape could have multiple origins

Change the type of the field BOPAlgo_Builder::myOrigins so that the new shape could have multiple origins in case of overlapping.

6 years ago0028718: Section result has a break
nbv [Fri, 19 May 2017 13:38:18 +0000 (16:38 +0300)]
0028718: Section result has a break

6 years ago0028758: Visualization - Implement exporting generated image to HRD/EXR images
age [Tue, 16 May 2017 10:37:50 +0000 (13:37 +0300)]
0028758: Visualization - Implement exporting generated image to HRD/EXR images

OpenGl_View::BufferDump() - added support for dumping RayTracing HDR buffers.
Added new buffer type Graphic3d_BT_RGB_RayTraceHdrLeft.

6 years ago0028748: XCAFDoc_GraphNode does not restore child on Undo
dbv [Wed, 17 May 2017 15:43:59 +0000 (18:43 +0300)]
0028748: XCAFDoc_GraphNode does not restore child on Undo

Fixed calling Backup method. Now it called where data really changed.

6 years ago0028692: Projection failed (projponf)
ifv [Tue, 16 May 2017 14:37:13 +0000 (17:37 +0300)]
0028692: Projection failed (projponf)

Tolerance criterion is improved:
P.SquareDistance(p1) < Tol -> P.SquareDistance(p1) < Tol*Tol

6 years ago0028637: [regression] Extrema curve - curve can not find correct solution between...
ifv [Thu, 18 May 2017 13:10:45 +0000 (16:10 +0300)]
0028637: [regression] Extrema curve - curve can not find correct solution between edge based on the line and BSpline edge

Adding condition for preventing decreasing Lipschitz constant if derivative are too small
Test case is created

6 years ago0028740: Visualization, AIS_RubberBand - add an option to decide either create or...
ibs [Mon, 15 May 2017 11:22:11 +0000 (14:22 +0300)]
0028740: Visualization, AIS_RubberBand - add an option to decide either create or not create a closing boundary line

the flag is added and the Compute method is updated to consider this flag

6 years ago0028744: Visualization, OpenGl_FrameBuffer missing GL_RGB8 format
age [Tue, 16 May 2017 10:12:50 +0000 (13:12 +0300)]
0028744: Visualization, OpenGl_FrameBuffer missing GL_RGB8 format

Missing GL_RGB8 and GL_RGB formats added to getColorDataFormat function.

6 years ago0028724: Extrema between circle and plane cannot be found
nbv [Wed, 10 May 2017 14:22:18 +0000 (17:22 +0300)]
0028724: Extrema between circle and plane cannot be found

The main reason of the regression is that the Extrema algorithm finds the truth extrema point but cannot adjust it to the range of given circle. It is connected with the fact that Geom(2d)Adaptor_Curve::IsPeriodic() method returns false for given circle because adaptor contains a piece of the circle which is not closed.

New algorithm of IsPeriodic() method will return the information about periodicity of the curve itself (independently of first and last parameter of adaptor).

The documentation about Geom(2d)_TrimmedCurve and Geom_RectangularTrimmedSurface has been updated in frame of the information about IsPeriodic-methods.

6 years ago0028745: Wrong results of Boolean operations on hemisphere solids
emv [Wed, 17 May 2017 05:18:44 +0000 (08:18 +0300)]
0028745: Wrong results of Boolean operations on hemisphere solids

Test cases for the issue.

6 years ago0028727: Visualization, AIS_RadiusDimension - fix misprint in AIS_RadiusDimension...
kgv [Tue, 16 May 2017 09:05:06 +0000 (12:05 +0300)]
0028727: Visualization, AIS_RadiusDimension - fix misprint in AIS_RadiusDimension::IsValidAnchor() check

6 years ago0028646: Draw Harness, ViewerTest - rename vsetfilter command with vselfilter
kgv [Tue, 16 May 2017 13:37:18 +0000 (16:37 +0300)]
0028646: Draw Harness, ViewerTest - rename vsetfilter command with vselfilter

TopAbs::ShapeTypeToString() is now used instead of duplicating TopAbs_ShapeEnum printing code.
vselmode now accepts shape type string for activating standard AIS_Shape selection modes.

6 years ago0028314: Application Framework - Display mode is not saved within XML OCAF document
vro [Wed, 17 May 2017 09:41:29 +0000 (12:41 +0300)]
0028314: Application Framework - Display mode is not saved within XML OCAF document

A rebased up-to-date version:
    - a bug is fixed (storage and retrieval of display mode in XML file format)
    - draw-commands to manipulate the display and selection mode are implemented
    - a test command "caf presentation M1" is created

6 years ago0028736: An error to read a binary OCAF document of > 2Gb
vro [Tue, 16 May 2017 07:48:29 +0000 (10:48 +0300)]
0028736: An error to read a binary OCAF document of > 2Gb

A binary file of OCAF document contains file-position of several sections (header section, shape section).
This file-position represents an integer value.
For document files of less than 2Gb it is enough to use "int" type to keep the file-position.
But for greater document files we need more digits.
The fix consists in extension of the type for keeping of file-position within the document file on disk: it was "int", now it is "uint64_t".

6 years ago0028738: Data Exchange, XCAFPrs_Style - add transparency property
akz [Thu, 11 May 2017 10:52:18 +0000 (13:52 +0300)]
0028738: Data Exchange, XCAFPrs_Style - add transparency property

Use Quantity_ColorRGBA as surface color to store a transparency in XCAFPrs_Style.

6 years ago0028664: Documentation of Graphic3d_CView::Activate and Deactivate does not seem...
kgv [Tue, 2 May 2017 07:22:59 +0000 (10:22 +0300)]
0028664: Documentation of Graphic3d_CView::Activate and Deactivate does not seem to be correct

6 years ago0028741: Visualization, TKOpenGl - eliminate GL errors within Core Profile in OpenGl_...
akz [Thu, 11 May 2017 10:52:18 +0000 (13:52 +0300)]
0028741: Visualization, TKOpenGl - eliminate GL errors within Core Profile in OpenGl_View::copyBackToFront()

6 years ago0028734: Visualization, OpenGl_Texture - fix initialization of 1D texture
isk [Thu, 14 Apr 2016 09:04:54 +0000 (12:04 +0300)]
0028734: Visualization, OpenGl_Texture - fix initialization of 1D texture

OpenGl_Texture::Init() - fixed proxy check for 1D textures.
Declarations.glsl - defined occTexture1D/3D aliases similar to occTexture2D.

6 years ago0028725: Degradation in performance of BRepExtrema_DistShapeShape
nbv [Wed, 10 May 2017 14:51:51 +0000 (17:51 +0300)]
0028725: Degradation in performance of BRepExtrema_DistShapeShape

Test case has been created.

6 years ago0028704: Coding Rules - recommend adding the class header first in its source file
kgv [Tue, 2 May 2017 06:09:27 +0000 (09:09 +0300)]
0028704: Coding Rules - recommend adding the class header first in its source file

6 years ago0028683: Wrong result of CUT operation
emv [Wed, 26 Apr 2017 12:42:13 +0000 (15:42 +0300)]
0028683: Wrong result of CUT operation

Avoid creation of the small section edges in the Boolean Operations algorithm.

6 years ago0028347: Reuse OCCT implementation for producing end-user documentation for Products
apn [Thu, 30 Mar 2017 09:13:19 +0000 (12:13 +0300)]
0028347: Reuse OCCT implementation for producing end-user documentation for Products

Updated destination directory for generated by gendoc proc pdf files.

Added additional option "-update_images_size" for gendoc procedure to update width of images in *.md files during pdf generation for @figure alias.

Documentation was updated to use alias @figure instead of outdated @image

Added support of svg image format in procedure OCCDoc_UpdateImagesSize.

Added generation of overview for product components.

Added generation of products refman/chm for each component.

6 years ago0028677: Avoid change of wire orientation in BRepLib_MakeFace if the wire is open
nbv [Mon, 24 Apr 2017 10:48:28 +0000 (13:48 +0300)]
0028677: Avoid change of wire orientation in BRepLib_MakeFace if the wire is open

Method BRepLib_MakeFace::CheckInside() is not called for open wire. So, if the input wire is open its orientation is not changed in the result face.

6 years ago0028675: Invalid result of Boolean Cut operation when running with fuzzy value
emv [Mon, 24 Apr 2017 06:04:42 +0000 (09:04 +0300)]
0028675: Invalid result of Boolean Cut operation when running with fuzzy value

Avoid small edges with empty list of PaveBlocks (removed edges) in the result (BOPAlgo_Builder::FillImagesEdges()).

6 years ago0028691: Storage of Ocaf documents in XML file format in old document version
vro [Wed, 3 May 2017 12:22:21 +0000 (15:22 +0300)]
0028691: Storage of Ocaf documents in XML file format in old document version

6 years ago0027925: Visualization - implement order-independent transparency algorithm within...
apl [Tue, 25 Apr 2017 12:10:15 +0000 (15:10 +0300)]
0027925: Visualization - implement order-independent transparency algorithm within rasterization rendering

Weighted, Blended Order-Independent Transparency algorithm has been added rasterization pipeline.
In contrast to classical blending transparency it makes transparent objects look independent
from point of view. It also gives better depth occlusion when being used together with a weight factor
based on value of a GL depth buffer. The feature supports desktop OpenGL, OpenGL ES 3.0, ANGLE
and can be used together with MSAA on desktop GL.

To be used it require availability of:
1) Shaders pipeline.
2) Floating point color format for framebuffer (GL_ARB_color_buffer_float).
3) Multiple render targets (GL_ARB_draw_buffers).

Patch does not modify API and does not require application porting.
It adds new rendering options to Graphic3d_RenderingParams structure:
a) Transparency method from enumeration.
b) Scalar factor [0-1] controlling influence of a fragment's depth to its visibility.

Patch also simplifies processing of transparent objects for standard method:
rendering priority of transparent graphical structures is managed automatically,
therefore there is no need to care about it at application's side.

6 years ago0028698: Visualization, Graphic3d_CView - mark methods MinMaxValues() and NumberOfDis...
kgv [Fri, 28 Apr 2017 09:43:57 +0000 (12:43 +0300)]
0028698: Visualization, Graphic3d_CView - mark methods MinMaxValues() and NumberOfDisplayedStructures() virtual

6 years ago0028673: getsourcefile Draw command return different output on Linux and Windows...
msv [Fri, 21 Apr 2017 14:18:14 +0000 (17:18 +0300)]
0028673: getsourcefile Draw command return different output on Linux and Windows platforms

The method Draw_Interpretor::add() has been corrected so that the command getsourcefile returned the relative path starting with "src" without leading "/" on all platforms.

6 years ago0028693: Coding Rules - TDataStd_ExtStringArray and TDataStd_IntegerArray should...
kgv [Wed, 26 Apr 2017 14:51:30 +0000 (17:51 +0300)]
0028693: Coding Rules - TDataStd_ExtStringArray and TDataStd_IntegerArray should return Array() with const reference

6 years ago0027981: BRepExtrema_DistShapeShape returns not null distance on interfered shapes
ifv [Thu, 30 Mar 2017 13:44:21 +0000 (16:44 +0300)]
0027981: BRepExtrema_DistShapeShape returns not null distance on interfered shapes

The reason of the bug is bad start points on surfaces, which are used by searching roots algorithm as start points for iteration process. Starting with these points algorithm for searching roots of set of equations cannot reach correct root. To find correct start points increasing number of sampling points is applied.

6 years ago0027958: Visualization, AIS_Trihedron - add shaded presentation option
nds [Wed, 15 Feb 2017 12:59:48 +0000 (15:59 +0300)]
0027958: Visualization, AIS_Trihedron - add shaded presentation option
A new Shaded presentation flag configured through Datum aspect (NOT as usual Display Mode).
Creation of auxiliary Axis/Point/Plane presentations in Trihedron presentation is removed.
'vtrihedron' DRAW command to change parameters of trihedron is extended to cover whole functionality of AIS_Trihedron.

The following classes are redesignede:
AIS_Trihedron,
Prs3d_DatumAspect.

The followin enumermations are created to manage properties of trihedron:
Prs3d_DatumAttribute,
Prs3d/Prs3d_DatumAxes,
Prs3d_DatumMode

6 years ago0028639: Improve performance of the IntPolyh_MaillageAffinage algorithm
emv [Fri, 7 Apr 2017 04:43:44 +0000 (07:43 +0300)]
0028639: Improve performance of the IntPolyh_MaillageAffinage algorithm

The following improvements have been made:
1. Linking edges to triangles while creating the edges.
2. Replacing the array of couples of intersecting triangles with the list to avoid unnecessary allocations of memory.
3. Using the algorithm of unbalanced binary tree when looking for pairs of interfering triangles.
4. Building bounding boxes for the triangles only once and then reusing it.
5. Making the simple methods of the IntPolyh_Point, IntPolyh_Edge, IntPolyh_Triangle, IntPolyh_Couple classes inline.
6. The following methods of the *IntPolyh_Triangle* class have been removed as unused:
  - *CheckCommonEdge*
  - *SetEdgeandOrientation*
  - *MultipleMiddleRefinement2*.
7. The method *IntPolyh_Triangle::TriangleDeflection* has been replaced with the *IntPolyh_Triangle::ComputeDeflection*.
8. The following methods of the *IntPolyh_MaillageAffinage* class have been removed as unused:
  - *LinkEdges2Triangles*;
  - *TriangleEdgeContact2*;
  - *StartingPointsResearch2*;
  - *NextStartingPointsResearch2*;
  - *TriangleComparePSP*;
  - *StartPointsCalcul*.

6 years ago0028148: Samples - add 3D Viewer sample for iOS platform
aan [Tue, 6 Dec 2016 14:35:22 +0000 (17:35 +0300)]
0028148: Samples - add 3D Viewer sample for iOS platform

Sample that uses UIKit has been added.
- Import of STEP files is provided
- Zoom, Rotate, Pan actions are provided
- Selection of solids is supported

6 years ago0028661: BRepOffsetAPI_MakePipeShell throws an exception Standard_NoSuchObject: NColl...
jgv [Thu, 20 Apr 2017 11:08:07 +0000 (14:08 +0300)]
0028661: BRepOffsetAPI_MakePipeShell throws an exception Standard_NoSuchObject: NCollection_DataMap::Find

1. Clearance of fields of class has been added to the method BRepFill_PipeShell::Prepare().
2. Calculation of error on surfaces has been corrected in the method GeomFill_Sweep::BuildKPart().
3. New Draw command "errorsweep" has been added to check the error reached on the surfaces built by BRepOffsetAPI_MakePipeShell algorithm.

6 years ago0028679: Foundation Classes - OSD_Process::UserName rises EXC_BAD_ACCESS on iphone...
ibs [Mon, 24 Apr 2017 16:23:55 +0000 (19:23 +0300)]
0028679: Foundation Classes - OSD_Process::UserName rises EXC_BAD_ACCESS on iphone simulator

check for a null pointer is added

6 years ago0028601: ShapeFix_Shape increases tolerance of sub-shapes of a valid shape
imn [Fri, 14 Apr 2017 12:15:18 +0000 (15:15 +0300)]
0028601: ShapeFix_Shape increases tolerance of sub-shapes of a valid shape
- Avoid increase of edge/vertex tolerance if the distance between 3D curve and p-curve is within old tolerance.

6 years ago0028564: Support of applications using old persistence (ShapeSchema)
snn [Tue, 28 Mar 2017 14:13:04 +0000 (17:13 +0300)]
0028564: Support of applications using old persistence (ShapeSchema)

1. Bug fix in reading old persistent data using FSD_File storage driver
2. Persistence compatible with legacy format was restored for shapes
   a. Implemented a storage read / write wrapper for legacy persistence
   b. Added DRAW commands to read / write files in legacy format
   c. Added test cases for reading / writing operations with checking number of sub-shapes and physical properties
   d. Updated related sections of the development guide

6 years ago0028227: ShapeUpgrade_UnifySameDomain modifies the edges even if it is not requested
imn [Tue, 28 Mar 2017 13:00:13 +0000 (16:00 +0300)]
0028227: ShapeUpgrade_UnifySameDomain modifies the edges even if it is not requested

- The option SafeInputMode has been added in the class ShapeUpgrade_UnifySameDomain. If it is set then the input shape is protected against modifications of any aspects of its sub-shapes. Default value is true.
- The option "-nosafe" has been added in draw command "unifysamedom". If it is not set the algorithm is run with SafeInputMode switched off.

7 years ago0028663: Integration of TortoiseGit with bug tracker
msv [Wed, 19 Apr 2017 15:02:21 +0000 (18:02 +0300)]
0028663: Integration of TortoiseGit with bug tracker

The file .tgitconfig has been added to the root.