occt.git
9 years agoUpdate of template for compilation in debug mode OCCT680-REF V6_8_0
apn [Mon, 10 Nov 2014 10:14:44 +0000 (13:14 +0300)]
Update of template for compilation in debug mode

9 years agoIncrementation of OCCT version up to 6.8.0
bugmaster [Fri, 7 Nov 2014 14:56:30 +0000 (17:56 +0300)]
Incrementation of OCCT version up to 6.8.0

9 years ago0025195: Samples - add Java sample for Android 4.x
kgv [Fri, 7 Nov 2014 08:20:13 +0000 (12:20 +0400)]
0025195: Samples - add Java sample for Android 4.x

9 years ago0025149: Samples - add Qt5/QML sample for Android 4.x
ibs [Fri, 3 Oct 2014 10:11:30 +0000 (14:11 +0400)]
0025149: Samples - add Qt5/QML sample for Android 4.x

9 years ago0025446: The method BRepAlgoAPI_BooleanOperation::IsDeleted() returns TRUE for the...
emv [Thu, 6 Nov 2014 14:39:01 +0000 (18:39 +0400)]
0025446: The method BRepAlgoAPI_BooleanOperation::IsDeleted() returns TRUE for the faces contained in the result of BOP

1. The method
  Standard_Boolean BOPAlgo_Builder::IsDeleted
    (const TopoDS_Shape& theS)
  has been modified to return TRUE only if the shape theS has been deleted.
2. Added new draw (QA) command OCC25446 to test this method.

9 years ago0025420: Wrong result obtained by General Fuse operator.
apn [Fri, 7 Nov 2014 10:58:19 +0000 (13:58 +0300)]
0025420: Wrong result obtained by General Fuse operator.

Added test case bugs/modalg_5/bug25420

9 years agoUpdate CMakeLists.txt for standard mfc sample
bugmaster [Fri, 7 Nov 2014 11:18:45 +0000 (14:18 +0300)]
Update CMakeLists.txt for standard mfc sample

9 years ago0025438: Visualization, TKOpenGl - always setup viewport within OpenGl_Workspace...
kgv [Thu, 6 Nov 2014 16:21:39 +0000 (19:21 +0300)]
0025438: Visualization, TKOpenGl - always setup viewport within OpenGl_Workspace::Redraw()

suppress new warning

9 years ago0025445: Draw command incmesh should support all parameters used in BRepMesh
oan [Thu, 6 Nov 2014 13:05:14 +0000 (16:05 +0300)]
0025445: Draw command incmesh should support all parameters used in BRepMesh

Test-case for issue #25445

9 years ago0025270: OCCT fails to calculate extrema between extruded surface and line
apn [Thu, 6 Nov 2014 11:55:10 +0000 (14:55 +0300)]
0025270: OCCT fails to calculate extrema between extruded surface and line

Added test case bugs/modalg_5/bug25270

9 years ago0025439: Enabling shape binary persistence without OCAF
Roman Lygin [Fri, 31 Oct 2014 12:40:03 +0000 (16:40 +0400)]
0025439: Enabling shape binary persistence without OCAF

9 years ago0025367: IGES and BRep persistence - support unicode file names on Windows
pdn [Wed, 22 Oct 2014 08:17:10 +0000 (12:17 +0400)]
0025367: IGES and BRep persistence - support unicode file names on Windows

OSD_OpenFile.hxx header is created for using in file open operations with Unicode names.

Fix for STEP files reading.

Adding test cases for issue 25367
Update test case for issue 25364
Update test cases due to improvements

9 years ago0025364: BRepMesh is not able to triangulate the shape with fine deflection
oan [Wed, 5 Nov 2014 14:57:41 +0000 (17:57 +0300)]
0025364: BRepMesh is not able to triangulate the shape with fine deflection

Don't create data structures for whole set of faces. Necessary structures are created directly in BRepMesh_FastDiscret.
Don't copy nodes data during scaling, single structure is used.

Remove lines used for debug

Fix sphere: resolve problem came from merging.

Keep code clean - remove unnecessary logic, expected to be used for complicated restoration process.

Test cases for issue CR25364

9 years ago0025438: Visualization, TKOpenGl - always setup viewport within OpenGl_Workspace...
kgv [Fri, 31 Oct 2014 12:33:12 +0000 (15:33 +0300)]
0025438: Visualization, TKOpenGl - always setup viewport within OpenGl_Workspace::Redraw()

9 years ago0024381: Visualization, TKOpenGl - revise matrices stack and usage of temporary matrices
duv [Mon, 3 Nov 2014 20:18:25 +0000 (23:18 +0300)]
0024381: Visualization, TKOpenGl - revise matrices stack and usage of temporary matrices
0025301: Visualization, TKOpenGl - transpose matrix manually before glUniformMatrix4fv()

OpenGl_View::ReleaseGlResources() - release GL resources of trihedron, do not destroy it

9 years ago0025442: Visualization, TKOpenGl - prevent inclusion of system header glxext.h
kgv [Sat, 1 Nov 2014 00:42:31 +0000 (20:42 -0400)]
0025442: Visualization, TKOpenGl - prevent inclusion of system header glxext.h

Define GLX_GLXEXT_LEGACY in addition to GL_GLEXT_LEGACY to prevent implicit
inclusion of header GL/glxext.h by system header GL/glx.h

Update glext.t to current state.

9 years ago0025443: Documentation - update packages names in Building 3rd-party libraries on...
kgv [Sat, 1 Nov 2014 07:50:43 +0000 (10:50 +0300)]
0025443: Documentation - update packages names in Building 3rd-party libraries on Linux

Update README files for samples

9 years ago0025343: Visualization - Update user's guide and DRAW commands description
isz [Fri, 31 Oct 2014 15:37:45 +0000 (18:37 +0300)]
0025343: Visualization - Update user's guide and DRAW commands description

Redesign of Visualisation user guide's structure with some changes in the guide.
Update Draw_test_harness user guide. Added dimension commands to DRAW test harness.
Update of prerequisites and building 3rd party tools sections
Move VIS draw tests to Draw Test Harness section.

Additionally, fix bugs 24117 and 25353.
Correct output of new imaged in PDF in modeling algos guide and errors introduced by bug 24699 in the overview.

9 years ago0025174: Provide ShapeCustom and BRepModifier with ProgressIndicator and ReShape...
razmyslovich [Wed, 20 Aug 2014 13:17:53 +0000 (15:17 +0200)]
0025174: Provide ShapeCustom and BRepModifier with ProgressIndicator and ReShape features

Conflicts:
src/TNaming/TNaming_Name.cxx

9 years ago0024934: Section: crash for two faces
aml [Wed, 5 Nov 2014 14:26:31 +0000 (17:26 +0300)]
0024934: Section: crash for two faces

Added protection from null vertexes.

Test case for issue CR24934

9 years ago0024548: Ray Tracing mode not available in MFC samples
ski [Thu, 30 Oct 2014 13:03:24 +0000 (16:03 +0300)]
0024548: Ray Tracing mode not available in MFC samples

Ray tracing functionality was added to OCCT MFC samples.

9 years ago0025157: Face missing depending the angle of revolution
apn [Fri, 31 Oct 2014 13:58:29 +0000 (16:58 +0300)]
0025157: Face missing depending the angle of revolution

Added test case bugs/mesh/bug25157

9 years ago0022125: TCollection_ExtendedString: conversion from UTF-8 to unicode
apn [Fri, 31 Oct 2014 13:46:53 +0000 (16:46 +0300)]
0022125: TCollection_ExtendedString: conversion from UTF-8 to unicode

Added test case bugs/fclasses/bug22125

9 years ago0025413: Line-Shape intersection algorithm became 400 times slower
azv [Wed, 5 Nov 2014 14:02:23 +0000 (17:02 +0300)]
0025413: Line-Shape intersection algorithm became 400 times slower

Changed the procedure of creating initial samples

Test-case for issue #25413

9 years ago0025418: Debug output to be limited to OCC development environment
abv [Tue, 28 Oct 2014 09:41:04 +0000 (12:41 +0300)]
0025418: Debug output to be limited to OCC development environment

Macros ending on "DEB" are replaced by OCCT_DEBUG across OCCT code; new macros described in documentation.
Macros starting with DEB are changed to start with "OCCT_DEBUG_".
Some code cleaned.

9 years ago0025307: Problems resulted from re-triangulation
apn [Fri, 31 Oct 2014 12:08:49 +0000 (15:08 +0300)]
0025307: Problems resulted from re-triangulation

Added test case bugs/mesh/bug25307

9 years ago0024519: Intersection of a cylinder and a plane does not return
apn [Fri, 31 Oct 2014 10:34:03 +0000 (13:34 +0300)]
0024519: Intersection of a cylinder and a plane does not return

Added test case bugs/modalg_5/bug24519

9 years ago0025281: BRepMesh_IncrementalMesh does not return
apn [Fri, 31 Oct 2014 09:28:02 +0000 (12:28 +0300)]
0025281: BRepMesh_IncrementalMesh does not return

Added test case bugs/mesh/bug25281

9 years ago0025427: Algorithm of building plane from wire hangs
ifv [Wed, 5 Nov 2014 13:44:37 +0000 (16:44 +0300)]
0025427: Algorithm of building plane from wire hangs

Test-case for issue #25427

9 years agoUpdate for building with MS Visual C++ without VTK 3rdparty products
bugmaster [Wed, 5 Nov 2014 12:53:31 +0000 (15:53 +0300)]
Update for building with MS Visual C++ without VTK 3rdparty products

9 years ago0025410: Tool for extended check of validity of the curve on the surface
nbv [Thu, 30 Oct 2014 11:26:16 +0000 (14:26 +0300)]
0025410: Tool for extended check of validity of the curve on the surface

Modifications:
1. class BOPTools_AlgoTools
1.1. method
 Standard_Boolean BOPTools_AlgoTools::ComputeTolerance
  (const Handle(Geom_Curve)& theCurve3D,
   const Handle(Geom2d_Curve)& theCurve2D,
   const Handle(Geom_Surface)& theSurf,
   const Standard_Real theFirst,
   const Standard_Real theLast,
   Standard_Real& theMaxDist,
   Standard_Real& theMaxPar)
  It computes the max distance between points taken from 3D and 2D curves by the same parameter

1.2. method
 Standard_Boolean BOPTools_AlgoTools::ComputeTolerance
  (const TopoDS_Face& theFace,
   const TopoDS_Edge& theEdge,
   Standard_Real& theMaxDist,
   Standard_Real& theParameter)
  Computes the valid value of the tolerance for the edge using the function above.

2.  Added possibility to check shape on the validity of the curves on the surfaces.
2.1. New status BOPAlgo_InvalidCurveOnSurface has been added to the enumeration BOPAlgo_CheckStatus
2.2. class BOPAlgo_ArgumentAnalyzer
 method
   void BOPAlgo_ArgumentAnalyzer::TestCurveOnSurface()
 It checks each edge/face pair in the shape using the method ComputeTolerance from BOPTools_AlgoTools and stores invalid pairs to myResults.
 Invalid pairs are those which contain the edge with tolerance value less then the value computed by the ComputeTolerance method.

2.3. class BOPAlgo_CheckResult
 Added new fields:
    myMaxDist1 : Real from Standard;
    myMaxDist2 : Real from Standard;
    myMaxPar1  : Real from Standard;
    myMaxPar2  : Real from Standard;
 and corresponding setters and getters.
 These fields are used to store the results of the TestCurveOnSurface() check.

3. Added new option to the bopargcheck command and two new commands.
class BOPTest_CheckCommands
3.1. command bopargcheck
 As it is using the BOPAlgo_ArgumentAnalyzer class to check the shapes
 it checks also the validity of the curves on the surfaces.
 The output for the invalid shapes is following:

Draw[]> bopargcheck b2 /ic #f
Made faulty shape: s1COnS_1 (MaxDist = 0.0013334343378738308, MaxPar = 0.02884285498274167)
Made faulty shape: s1COnS_2 (MaxDist = 0.0013334340648766174, MaxPar = 0.02884285497934707)
Made faulty shape: s1COnS_3 (MaxDist = 0.0013335086668628978, MaxPar = 1.4133051942712607)
Made faulty shape: s1COnS_4 (MaxDist = 0.0013335086525838983, MaxPar = 1.4133051942713901)
Faulties for FIRST  shape found : 4
---------------------------------
Shapes are not suppotrted by BOP: NO
Self-Intersections              : NO
Check for SI has been aborted   : NO
Too small edges                 : NO
Bad faces                       : NO
Too close vertices              : NO
Too close edges                 : NO
Shapes with Continuity C0       : NO
Invalid Curve on Surface        : YES  Cases(4)  Total shapes(8)

Faulties for SECOND  shape found : 0

 The compounds s1COnS_* contain pair of edge and face.
 MaxDist is maximal distance between points taken from 3D curve of the edge and 2D curve of that edge on the face.
 MaxPar is a parameter in which the MaxDist is reached.

 To disable this check it is necessary to use option /S (bopargcheck shape /S).

3.2. command xdistef
 Usage of the command:
   xdistef edge face
 It computes distance between points taken from 3D curve of the edge and 2D curve of that edge on the face.
 Example:
Draw[]> explode s1COnS_1
s1COnS_1_1 s1COnS_1_2
Draw[]> whatis s1COnS_1_1
s1COnS_1_1 is a shape EDGE FORWARD Modified Orientable
Draw[]> whatis s1COnS_1_2
s1COnS_1_2 is a shape FACE FORWARD Modified Orientable
Draw[]> xdistef s1COnS_1_1 s1COnS_1_2
Max Distance = 0.0013334343378738308; Parameter on curve = 0.02884285498274167

3.3. command checkcurveonsurf
 Usage of the command:
  checkcurveonsurf shape.
 It checks each edge/face pair in the shape using the method ComputeTolerance from BOPTools_AlgoTools.
Example:
Draw[]> checkcurveonsurf b2
Invalid curves on surface:
edge e_0 on face f_0 (max dist: 0.0013334343378738, parameter on curve: 0.0288428549827417)
edge e_1 on face f_0 (max dist: 0.0013334340648766, parameter on curve: 0.0288428549793471)
edge e_2 on face f_1 (max dist: 0.0013335086668629, parameter on curve: 1.4133051942712607)
edge e_3 on face f_1 (max dist: 0.0013335086525839, parameter on curve: 1.4133051942713901)

Sugestions to fix the shape:
explode b2 e;
settolerance b2_6 0.0013335086668629;
settolerance b2_7 0.0013334343378738;
settolerance b2_8 0.0013334340648766;
settolerance b2_10 0.0013335086525839;

The command gives suggestions to fix the shape by increasing tolerance values of the invalid edges.
In some cases the tolerance values suggested by the tool can be very large.
Such values should be used very carefully, because setting large tolerance values to the sub-shapes
of the shape can make it non valid (self-interfered) or lead to unexpected result when using
such shapes in some operations (boolean for example).

Test case for issue CR25410

9 years ago0025422: Visualization, TKOpenGl - support re-assignment of new window to existing...
kgv [Thu, 30 Oct 2014 10:51:14 +0000 (13:51 +0300)]
0025422: Visualization, TKOpenGl - support re-assignment of new window to existing View

Do not throw "Window already defined" exception in Visual3d_View/V3d_View.
Handle window change within OpenGl_GraphicDriver::View().

OpenGl_GraphicDriver - introduce dedicated methods to initialize/release shared OpenGL context.
::InitEglContext() to using existing EGL context.

OpenGl_Context - always enable NPOT textures on OpenGL ES 2.0

OpenGl_Workspace - do not call glDisable/glEnable(GL_TEXTURE_2D) on GL ES

OpenGl_GraphicDriver::ReleaseContext() - release EGL context on destruction

OpenGl_GraphicDriver::InitEglContext() - escape method implementation with HAVE_EGL macros

OpenGl_ShaderManager - clear shader programs on shared context invalidation

9 years ago0025337: Regression to version 6.7.1 : boolean operations fail on two planar circular...
emv [Wed, 29 Oct 2014 06:31:18 +0000 (10:31 +0400)]
0025337: Regression to version 6.7.1 : boolean operations fail on two planar circular faces lying in the same plane

class IntTools_EdgeEdge
method
  void IntTools_EdgeEdge::FindSolutions(const IntTools_Range& theR1,
                                        const IntTools_Range& theR2,
                                        const Bnd_Box& theBox2,
                                        IntTools_SequenceOfRanges& theRanges1,
                                        IntTools_SequenceOfRanges& theRanges2)
Looking for the solutions of the intersection between edges with greater precision.

Test cases for the issue.

9 years ago0024404: The function BRepTools::UVBounds gives wrong result for the face
apn [Thu, 30 Oct 2014 09:01:05 +0000 (12:01 +0300)]
0024404: The function BRepTools::UVBounds gives wrong result for the face

Added test case bugs/modalg_5/bug24404

9 years ago0022829: Incorrect result of boolean Fuse operation
apn [Thu, 30 Oct 2014 07:47:50 +0000 (10:47 +0300)]
0022829: Incorrect result of boolean Fuse operation

Added test case bugs/modalg_5/bug22829

9 years ago0025368: BREPExtrma DistShapeShape gives wrong result for Sphere and Line
aml [Fri, 24 Oct 2014 03:44:40 +0000 (07:44 +0400)]
0025368: BREPExtrma DistShapeShape gives wrong result for Sphere and Line

Changed analytical Sphere/Line and Cylinder/Line extrema algorithms. Now they search perpendicular and intersection points.
Test cases added.

9 years ago0025292: Face/Face intersection algorithm gives different results for different order...
nbv [Thu, 30 Oct 2014 10:24:23 +0000 (13:24 +0300)]
0025292: Face/Face intersection algorithm gives different results for different order of the arguments

Method of adjusting was corrected.

Test cases for issue CR25292

9 years ago0025184: Non-deterministic order of wires in the result of General Fuse
pkv [Thu, 30 Oct 2014 10:18:42 +0000 (13:18 +0300)]
0025184: Non-deterministic order of wires in the result of General Fuse

The source is brought in line with the current version

Test case for issue CR25184

9 years ago0022872: BRepClass3d_SolidClassifier::PerformInfinitePoint fails
apn [Wed, 29 Oct 2014 16:04:36 +0000 (19:04 +0300)]
0022872: BRepClass3d_SolidClassifier::PerformInfinitePoint fails

Added test case bugs/modalg_5/bug22872

9 years ago0024746: Bug in BRepAlgoAPI
apn [Wed, 29 Oct 2014 15:23:18 +0000 (18:23 +0300)]
0024746: Bug in BRepAlgoAPI

Added test case bugs/modalg_5/bug24746

9 years ago0021898: Empty result of intersection between a surface of revolution and a line
apn [Wed, 29 Oct 2014 14:40:41 +0000 (17:40 +0300)]
0021898: Empty result of intersection between a surface of revolution and a line

Added test case bugs/modalg_5/bug21898

9 years ago0025354: Intersection operation
mkv [Thu, 30 Oct 2014 09:48:20 +0000 (12:48 +0300)]
0025354: Intersection operation

Update dimensions tcl sample due to new order of edges after explode.

9 years ago0025405: STL reader doesn't keep shared nodes
vro [Thu, 30 Oct 2014 09:18:22 +0000 (12:18 +0300)]
0025405: STL reader doesn't keep shared nodes

An improved RWSTL::ReadFile() method + a draw-command returning the number of nodes and triangles for a MeshVS_Mesh object based on STL mesh data source.

An indexed map of points is replaced by a CellFilter of XYZ objects already implemented in BRepBuilderAPI.
Also, BRepBuilderAPI_VertexInspector became exported for TKTopAlgo library (Standard_EXPORT is added for the methods of this class).

Standard_EXPORT is removed for in-line methods of BRepBuilderAPI_VertexInspector

Test-case for issue #25405

Update of test-cases, according to new behavior

9 years ago0025387: Error appears during export to STEP operation in ImportExport MFC sample
ski [Thu, 30 Oct 2014 09:12:17 +0000 (12:12 +0300)]
0025387: Error appears during export to STEP operation in ImportExport MFC sample

Combo-box for selection of translation mode is available in Export to STEP and CSFDB files.
Default valuer for STEP export mode is set to As Is, i.e. automatic selection.

Added #define in function CFileDialog because it takes only 6 parameters in Visual Studio 2005.

9 years ago0023249: BRepFeat_SplitShape could not split a simple face by edge
apn [Wed, 29 Oct 2014 10:04:09 +0000 (13:04 +0300)]
0023249: BRepFeat_SplitShape could not split a simple face by edge

Added test case bugs/modalg_5/bug23249

9 years ago0025380: Intersection curve cannot reach boundary of surface
aml [Thu, 30 Oct 2014 09:04:27 +0000 (12:04 +0300)]
0025380: Intersection curve cannot reach boundary of surface

Changed next point computation in IntWalk_PWalker.cxx.
Now trying to walk over another isoline if new point is too close to previous.

Test case for issue CR25380

9 years ago0025424: Performance regression on step import
pdn [Thu, 30 Oct 2014 08:59:38 +0000 (11:59 +0300)]
0025424: Performance regression on step import

Regression was caused by checking of shell closeness on each face add iteration. Fixed.

Test case for issue CR25424

9 years ago0025400: Visualization, TKOpenGl - Structure disappears if assigned a non-default...
san [Thu, 30 Oct 2014 08:57:09 +0000 (11:57 +0300)]
0025400: Visualization, TKOpenGl - Structure disappears if assigned a non-default Z layer

- BVH tree in the target Z layer was not updated when OpenGl_Structure
was moved to another Z layer.
- vpriority DRAW command added to test how BVH tree is updated when
display priority is changed
- Test case for Z layers and display priorities added

Handle -noupdate argument within vpriority command

9 years ago0025407: Exception in extrema operation.
aml [Thu, 30 Oct 2014 08:46:08 +0000 (11:46 +0300)]
0025407: Exception in extrema operation.

Special handling of curve / surface of extrusion case is deleted.
Corresponding test case fixed.

Test cases for issue CR25407

9 years ago0025414: Visualization - Optimize ray-tracing performance
dbp [Thu, 23 Oct 2014 14:18:24 +0000 (18:18 +0400)]
0025414: Visualization - Optimize ray-tracing performance

This patch increases ray-tracing performance up to 12% in regular mode, and up to 36% in FSAA mode.

9 years ago0025408: Wrong result obtained by General Fuse operator.
pkv [Thu, 30 Oct 2014 08:42:32 +0000 (11:42 +0300)]
0025408: Wrong result obtained by General Fuse operator.

Changes:

class BOPTools_AlgoTools2D
        method:
    void BOPTools_AlgoTools2D::AdjustPCurveOnFace
      (const TopoDS_Face& aF,
       const Standard_Real aFirst,
       const Standard_Real aLast,
       const Handle(Geom2d_Curve)& aC2D,
       Handle(Geom2d_Curve)& aC2DA)

The location of 2D-curve is adjusted to face boubaries if necessary
using the precision value in parametric space

Unnecessary comments are removed

Test case for issue CR25408

9 years ago0025403: Wrong storage of model units in AIS_AngleDimension: corrected AIS_Drawer...
aba [Wed, 22 Oct 2014 15:01:52 +0000 (19:01 +0400)]
0025403: Wrong storage of model units in AIS_AngleDimension: corrected AIS_Drawer model units setters; added parameters to vdimensin and vdimparam commands.

9 years ago0025397: Iteration on a tree of nodes is too slow
vro [Mon, 20 Oct 2014 11:32:13 +0000 (15:32 +0400)]
0025397: Iteration on a tree of nodes is too slow

Added "const Handle(TDataStd_TreeNode)&" for the method TDataStd_ChildNodeIterator::Value().

9 years agoUpdate of testing cases after integration fixes for issue 25354 and 25406
bugmaster [Fri, 24 Oct 2014 11:35:41 +0000 (15:35 +0400)]
Update of testing cases after integration fixes for issue 25354 and 25406

9 years ago0025417: Visualization, OpenGl_Context - fix preprocessor check to load GL functions...
kgv [Thu, 23 Oct 2014 19:51:43 +0000 (23:51 +0400)]
0025417: Visualization, OpenGl_Context - fix preprocessor check to load GL functions on OS X

9 years ago0025411: BVH package - eliminate warning about hidden overloaded method ::Box
kgv [Thu, 23 Oct 2014 14:40:12 +0000 (18:40 +0400)]
0025411: BVH package - eliminate warning about hidden overloaded method ::Box

Correction of merge error

Fix for compilation

9 years ago0025374: [6.8.0beta regression] gp_Trsf2d::SetMirror() looses transformation form
nbv [Thu, 23 Oct 2014 14:02:23 +0000 (18:02 +0400)]
0025374: [6.8.0beta regression] gp_Trsf2d::SetMirror() looses transformation form

1. Elements of gp_TrsfForm have been documented
2. gp_Trsf2d class has been reverted to non-regression case.

Update of test-cases

9 years ago0025361: Sample "Voxel" crashes during "Demo - Collisions" demonstration
vro [Tue, 14 Oct 2014 04:28:47 +0000 (08:28 +0400)]
0025361: Sample "Voxel" crashes during "Demo - Collisions" demonstration

Deletion of an array was incorrect.

9 years ago0025352: Analytical calculation of fillets 2d: an improvement of precision
vro [Fri, 10 Oct 2014 11:32:06 +0000 (15:32 +0400)]
0025352: Analytical calculation of fillets 2d: an improvement of precision

Already calculated points of the fillet are used instead of getting of the points on curve by a parameter.

9 years ago0025406: BRepOffset_MakeOffset algorithm fails on the face with two degenerated edges...
jgv [Thu, 23 Oct 2014 11:31:47 +0000 (15:31 +0400)]
0025406: BRepOffset_MakeOffset algorithm fails on the face with two degenerated edges on u-iso null curves

Test cases for issue CR25406

9 years ago0025244: CMake building procedure should support VTK usage
apn [Thu, 23 Oct 2014 11:19:51 +0000 (15:19 +0400)]
0025244: CMake building procedure should support VTK usage

Added functionality for searching VTK products.

Added procedure install for VTK.

9 years ago0025354: Intersection operation
pkv [Thu, 23 Oct 2014 11:11:39 +0000 (15:11 +0400)]
0025354: Intersection operation

I. New features:
I.1 class BOPAlgo_Section
     The class clontains the algorithm to build a result of Secton between the arguments.
     The result of Section consists of vertices and edges.
     The result of Section contains:
     1. new vertices that are subjects of V/V, E/E, E/F, F/F interferences
     2. vertices that are subjects of V/E, V/F interferences
     3. new edges that are subjects of F/F interferences
     4. edges that are Common Blocks
     5.a vertex is included in result of Section only when it is not shared
     between the edges of the result of Section

The class BOPAlgo_Section inherits the functionality of root class BOPAlgo_Builder

1.2 class BOPTest_Objects
method:
BOPAlgo_Section& BOPTest_Objects::Section()
has been added to get access to BOPAlgo_Section object

II. Changes:
II.1. class BOPAlgo_BOP
method:
void BOPAlgo_BOP::BuildSection()
has been removed
methods:
void BOPAlgo_BOP::CheckData()
void BOPAlgo_BOP::Prepare()
void BOPAlgo_BOP::PerformInternal1(const BOPAlgo_PaveFiller& theFiller)
const TopTools_ListOfShape& BOPAlgo_BOP::Generated
  (const TopoDS_Shape& theS)
have been modified to eliminate references on Section operation

II.2. class BOPAlgo_PaveFiller
method:
void BOPAlgo_PaveFiller::UpdateFaceInfo
  (BOPDS_DataMapOfPaveBlockListOfPaveBlock& theDME)
modified to prevent the usage of negative index in Data Structure

II.3. class BOPTest_Objects
static function:
Standard_Integer bopsection(Draw_Interpretor& di, Standard_Integer n, const char** a)
has been modified to use BOPAlgo_Section object instead of BOPAlgo_BOP object

static function:
Standard_Integer bbop(Draw_Interpretor& di,
                      Standard_Integer n,
                      const char** a)
has been modified to use BOPAlgo_Section object instea of BOPAlgo_BOP object

II.4. class BRepAlgoAPI_BooleanOperation
field:
myBuilder
the type has been changed from BOPAlgo_BOP* to BOPAlgo_Builder*
method:
void BRepAlgoAPI_BooleanOperation::Build()
has been modified  to use BOPAlgo_Section object

II.5. class QANewModTopOpe_Tools
method:
Standard_Boolean QANewModTopOpe_Tools::HasSameDomain(
                                                   const BOPAlgo_PBOP& theBuilder,
                                                     const TopoDS_Shape& theFace)

void QANewModTopOpe_Tools::SameDomain(
                                      const BOPAlgo_PBOP&   theBuilder,
                                      const TopoDS_Shape&   theFace,
                                      TopTools_ListOfShape& theResultList)

the type of the parameter <theBuilder> has been modified
to use BOPAlgo_Builder* instead of BOPAlgo_BOP*

II.6. The method:
const TopTools_ListOfShape& BOPAlgo_BOP::Generated
  (const TopoDS_Shape& theS)
has been removed

9 years ago0025412: BRepMesh_FastDiscretFace::tryToInsertAnalyticVertex() - fix invalid comparison
kgv [Wed, 22 Oct 2014 12:09:15 +0000 (16:09 +0400)]
0025412: BRepMesh_FastDiscretFace::tryToInsertAnalyticVertex() - fix invalid comparison

Remove unused field BRepMesh_FastDiscretFace::myWithShare.
Remove "virtual" from method of class <anonymous>::FixedVExplorer.

9 years ago0025411: BVH package - eliminate warning about hidden overloaded method ::Box
kgv [Wed, 22 Oct 2014 11:43:17 +0000 (15:43 +0400)]
0025411: BVH package - eliminate warning about hidden overloaded method ::Box

Conflicts:
src/OpenGl/OpenGl_SceneGeometry.hxx

9 years ago0025396: Crash occurs when using TBB allocator on an Intel architecture not supportin...
msv [Thu, 23 Oct 2014 11:02:54 +0000 (15:02 +0400)]
0025396: Crash occurs when using TBB allocator on an Intel architecture not supporting SSE2 instructions

During initialization of memory manager, check if SSE2 instructions are supported, when MMGT_OPT=2 is in effect. If not then use MMgrRaw instead of MMgrTBBalloc. It is to avoid runtime crash when running on a CPU that supports SSE but does not support SSE2 (some modifications of AMD Sempron).

Fix broken compilation on MSVC for x64 platform

Correct the last fix.

9 years ago0025349: Graphic3d_MaterialAspect::Color() returns a value different from that set...
dbp [Thu, 23 Oct 2014 10:59:20 +0000 (14:59 +0400)]
0025349: Graphic3d_MaterialAspect::Color() returns a value different from that set by the method Graphic3d_MaterialAspect::SetColor

Fix bug with default color of clip plane.

9 years ago0022196: Problem with puting texture on the bottle.brep shape
apn [Wed, 22 Oct 2014 12:49:59 +0000 (16:49 +0400)]
0022196: Problem with puting texture on the bottle.brep shape

Test case bugs/modalg_2/bug22196 was modified to apply texture.

9 years ago0023911: Invalid output of command Xdump
apn [Thu, 23 Oct 2014 10:42:17 +0000 (14:42 +0400)]
0023911: Invalid output of command Xdump

Improved output of Xdump command using Draw_Interpretor.

Improved output of Xdump command using Standard_SStream.

OStream is used instead of SStream.

Test cases for issue CR23911

9 years ago0025399: Visualization - XCAFPrs_AISObject ignores global aspect settings
san [Mon, 20 Oct 2014 16:36:42 +0000 (20:36 +0400)]
0025399: Visualization - XCAFPrs_AISObject ignores global aspect settings

Copying of the default drawer's parameters added.

9 years ago0025401: Some warnings could be eliminated
abv [Tue, 21 Oct 2014 05:20:54 +0000 (09:20 +0400)]
0025401: Some warnings could be eliminated

Do not redefine macro "strcasecmp" on Windows (MSVC) if it is already defined.
Some useless declarations and comments removed.

9 years ago0025334: BRepOffsetAPI_MakeOffset algorithm crashes on some customer's shape
jgv [Thu, 23 Oct 2014 10:36:48 +0000 (14:36 +0400)]
0025334: BRepOffsetAPI_MakeOffset algorithm crashes on some customer's shape

Test cases for issue CR25334

9 years ago0025373: Visualization, AIS_MultipleConnectedInteractive - transformation persistence...
kgv [Wed, 15 Oct 2014 11:20:26 +0000 (15:20 +0400)]
0025373: Visualization, AIS_MultipleConnectedInteractive - transformation persistence flags are ignored for connected objects

Provide method AIS_MultipleConnectedInteractive::Connect() taking transformation persistence flags.
Copy transformation persistence flags from original objects when called Connect() without extra arguments.

9 years ago0025344: Draw variables do not follow the scope of TCL level
msv [Thu, 23 Oct 2014 10:30:28 +0000 (14:30 +0400)]
0025344: Draw variables do not follow the scope of TCL level

Use NCollection_Map instead of instantiation of TCollection_Map

Test-cases for issue #25344

Correct error in test script: the shape variable assigned by the command 'restore' must not be referred by '$'.

9 years ago0025294: Visualization, PrsMgr_Presentation - detach connected presentations on destr...
kgv [Fri, 17 Oct 2014 15:14:32 +0000 (19:14 +0400)]
0025294: Visualization, PrsMgr_Presentation - detach connected presentations on destruction

9 years ago0025348: Method Assign of NCollection containers must not change own allocator of...
msv [Thu, 23 Oct 2014 10:19:15 +0000 (14:19 +0400)]
0025348: Method Assign of NCollection containers must not change own allocator of the target

Correct according to remarks of reviewer:
- Assign() and operator=() should implement equal approach to allocators
- Protect all collections against assignment to itself with operator=()

Test-case for issue #25348

9 years ago0025381: Visualization - XCAFPrs_AISObject ignores visibility flag for sub-shapes
kgv [Thu, 23 Oct 2014 10:15:59 +0000 (14:15 +0400)]
0025381: Visualization - XCAFPrs_AISObject ignores visibility flag for sub-shapes

Test case for issue CR25381

9 years ago0024965: Problem in local selection mode with selected objects staying in the viewer
apl [Thu, 23 Oct 2014 10:13:46 +0000 (14:13 +0400)]
0024965: Problem in local selection mode with selected objects staying in the viewer

Added method to clear outdated selection of entity owners on recompute (update) of selection.
Added test case to check selection behavior in local context.

Cosmetic corrections

9 years ago0025371: Visualization - raise exception in AIS_ConnectedInteractive::Connect() on...
kgv [Tue, 14 Oct 2014 15:17:11 +0000 (19:17 +0400)]
0025371: Visualization - raise exception in AIS_ConnectedInteractive::Connect() on invalid argument

Indicate API misuse by program exception.

9 years ago025306: Visualization, TKOpenGl - support texturing within RayTracing
dbp [Thu, 23 Oct 2014 10:09:23 +0000 (14:09 +0400)]
025306: Visualization, TKOpenGl - support texturing within RayTracing

Fix bug with overlay OpenGL text.

9 years ago0025376: Inconsistence between function and derivatives evaluation in Extrema_GlobOpt...
aml [Wed, 15 Oct 2014 07:44:53 +0000 (11:44 +0400)]
0025376: Inconsistence between function and derivatives evaluation in Extrema_GlobOptFuncCS.

Changed "value" function behavior in Extrema/Extrema_GlobOptFuncCS.cxx. Now it compute square distance between point on curve and point on surface.

Fixed description in Extrema_GlobOptFuncCC.

9 years ago0025332: Visualization - rewrite MinMaxValues methods to using of Bnd_Box
osa [Tue, 14 Oct 2014 14:27:57 +0000 (18:27 +0400)]
0025332: Visualization - rewrite MinMaxValues methods to using of Bnd_Box

9 years ago0023698: BRepBuilderAPI_Copy creates invalid copy
apn [Mon, 20 Oct 2014 12:00:44 +0000 (16:00 +0400)]
0023698: BRepBuilderAPI_Copy creates invalid copy

Added test case bugs/modalg_5/bug23698

9 years ago0025359: In Draw Test Harness: content of menu-items "Curves" and "Surfaces" is incre...
isz [Mon, 13 Oct 2014 12:41:00 +0000 (16:41 +0400)]
0025359: In Draw Test Harness: content of menu-items "Curves" and "Surfaces" is increased after each sample launching

Menus "Curves" and "Surfaces" are destroyed now (if they exist) before displaying.

9 years ago0025265: Perspective projection - selecting front point of two
apl [Tue, 14 Oct 2014 11:47:34 +0000 (15:47 +0400)]
0025265: Perspective projection - selecting front point of two

9 years agoFix compilation without TBB (VC9)
abv [Fri, 17 Oct 2014 08:50:49 +0000 (12:50 +0400)]
Fix compilation without TBB (VC9)

9 years agoCorrection of testing cases
mkv [Fri, 17 Oct 2014 12:39:54 +0000 (16:39 +0400)]
Correction of testing cases

9 years agoEliminating of warning
bugmaster [Fri, 17 Oct 2014 12:38:33 +0000 (16:38 +0400)]
Eliminating of warning

9 years ago0025266: Debug statements in the source are getting flushed on to the console
abv [Thu, 16 Oct 2014 12:45:55 +0000 (16:45 +0400)]
0025266: Debug statements in the source are getting flushed on to the console

Suppress remaining couts in packages explicitly mentioned in the original bug description

Correction of test cases for issue CR25266

9 years ago0025313: Review of TODOs in test cases for unused platforms
apn [Wed, 1 Oct 2014 13:24:00 +0000 (17:24 +0400)]
0025313: Review of TODOs in test cases for unused platforms

TODOs for unused platforms were deleted. Issue 22988 was closed.

9 years ago0023547: Tests failures in debug mode
nbv [Fri, 26 Sep 2014 11:32:46 +0000 (15:32 +0400)]
0023547: Tests failures in debug mode

1. DRAW-commands for curve/surface continuity returning were changed.
2. Output of "distmini" DRAW-command is amended.
3. Function MinMax() was moved from Standard_Real to IntPatch_ImpImpIntersection_4.gxx.
4. Incorrect computing of nbcurveC1 in Geom2dConvert::C0BSplineToC1BSplineCurve(...) function was liquidated.

Test cases were changed.

9 years ago0025266: Debug statements in the source are getting flushed on to the console
dbv [Wed, 8 Oct 2014 15:00:20 +0000 (19:00 +0400)]
0025266: Debug statements in the source are getting flushed on to the console

Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB

9 years ago0025369: Visualization, Image_AlienPixMap - handle UTF-8 names in image read/save...
kgv [Thu, 16 Oct 2014 12:13:20 +0000 (16:13 +0400)]
0025369: Visualization, Image_AlienPixMap - handle UTF-8 names in image read/save operations on Windows

Test-case for issue #25369

9 years ago0025340: Visualization, AIS_InteractiveContext - properly apply selection filters...
kgv [Thu, 16 Oct 2014 12:07:36 +0000 (16:07 +0400)]
0025340: Visualization, AIS_InteractiveContext - properly apply selection filters at Neutral point

Do not use myMainSel->OnePicked() in AIS_InteractiveContext::MoveTo().

Test-case for issue #25340

9 years ago0025100: Self-intersection of surfaces with using GeomAPI_IntSS rises run-time check...
nbv [Wed, 15 Oct 2014 06:41:17 +0000 (10:41 +0400)]
0025100: Self-intersection of surfaces with using GeomAPI_IntSS rises run-time check failure

1. Bug command added.
2. Dynamic array is used in place of static.

9 years ago0025370: Visualization - misprint in PrsMgr_PresentationManager::Connect()
kgv [Tue, 14 Oct 2014 15:07:00 +0000 (19:07 +0400)]
0025370: Visualization - misprint in PrsMgr_PresentationManager::Connect()

fix theMode -> theOtherMode

9 years ago0025383: Broken vrecord command
san [Wed, 15 Oct 2014 14:06:52 +0000 (18:06 +0400)]
0025383: Broken vrecord command

Pass HWND of the current 3D view to OpenGl_AVIWriter::StartRecording()
in order to make it work.

9 years ago0025365: Regressions after changes in IsClosed flag
abv [Mon, 13 Oct 2014 16:44:33 +0000 (20:44 +0400)]
0025365: Regressions after changes in IsClosed flag

Restore previous behavior of BRep_Tool::IsClosed() for shells: empty shells and shells containing only INTERNAL or EXTERNAL sub-shapes are considered non-closed.

9 years ago0025363: Visualization - add test command for V3d_View::FitAll by view area
apl [Wed, 15 Oct 2014 08:01:16 +0000 (12:01 +0400)]
0025363: Visualization - add test command for V3d_View::FitAll by view area

9 years ago0021802: Not all names are transferred from STEP to IGES via XDE
dbv [Thu, 16 Oct 2014 11:35:22 +0000 (15:35 +0400)]
0021802: Not all names are transferred from STEP to IGES via XDE

Method IGESCAFControl_Writer::WriteNames now iterates over all nested assemblies and collects names for shapes.
Regression fix
Test-case for issue #21802

9 years ago0025319: Bop Common produces strange results with same shapes.
emv [Thu, 16 Oct 2014 11:30:12 +0000 (15:30 +0400)]
0025319: Bop Common produces strange results with same shapes.

class BOPAlgo_Builder
method
  void BOPAlgo_Builder::FillIn3DParts
    (BOPCol_DataMapOfShapeListOfShape& theInParts,
     BOPCol_DataMapOfShapeShape& theDraftSolids,
     const BOPCol_BaseAllocator&)
Sort faces before its classification relatively to the solid.

Test cases for issue CR25319

Correction of test cases for issue CR25319