occt.git
10 years ago0024533: Use 0 to check null handle instead of UndefinedHandleAccess
Roman Lygin [Thu, 23 Jan 2014 09:37:50 +0000 (13:37 +0400)]
0024533: Use 0 to check null handle instead of UndefinedHandleAccess

Handle classes now use 0 as invalid value for pointer instead of custom (and platform-dependent) value like 0xfefd0000.
Compiler macros UndefinedHandleAddress and _OCC64 are eliminated.

10 years ago0024517: Crash at StepToTopoDS_TranslateEdge::Init()
gka [Thu, 23 Jan 2014 07:44:07 +0000 (11:44 +0400)]
0024517: Crash at StepToTopoDS_TranslateEdge::Init()

Fixed crash at StepToTopoDS_TranslateEdge::Init() for case when curve is absent)

Corrected error message for case of absence geom curve in edge curve

10 years ago0024545: Convertation of the generic classes to the non-generic (XmlObjMgt).
dln [Tue, 21 Jan 2014 11:59:23 +0000 (15:59 +0400)]
0024545: Convertation of the generic classes to the non-generic (XmlObjMgt).
In the package "XmlObjMgt" class "XmlObjMgt_Array1" was converted to the non-generic.
And some changes were made in "XmlNaming" package for correct compilation of the application.

10 years ago0024453: TKViewerTest - extend information provided by vstate command
kgv [Tue, 10 Dec 2013 13:19:39 +0000 (17:19 +0400)]
0024453: TKViewerTest - extend information provided by vstate command

10 years ago0024536: GCC compiler warning on breakage of pointer aliasing rules in BRepFill_Evolv...
abv [Thu, 16 Jan 2014 10:25:34 +0000 (14:25 +0400)]
0024536: GCC compiler warning on breakage of pointer aliasing rules in BRepFill_Evolved.cxx

Avoid storing result of call to TopoDS::Edge() as reference

10 years ago0024479: Ray Tracing mode does not work in Qt IE sample
dbp [Wed, 22 Jan 2014 15:07:53 +0000 (19:07 +0400)]
0024479: Ray Tracing mode does not work in Qt IE sample
Implementation of  Ray Tracing mode in standard Qt sample
Fix compile warnings in Qt samples.
Fix tabs in Common-string.ts.
Update Code style.

0024415: Update QT samples
Code which was based on QT3 was removed. Some bugs and warnings has been also fixed.
Porting from QT4 to QT5 sample files.

10 years agoUpdate of testing case due to changes in issue 24370
mkv [Tue, 21 Jan 2014 07:15:51 +0000 (11:15 +0400)]
Update of testing case due to changes in issue 24370

10 years agoCorrection for Fedora 18 64 bit issue 24473
bugmaster [Fri, 17 Jan 2014 11:27:10 +0000 (15:27 +0400)]
Correction for Fedora 18 64 bit issue 24473

10 years agoCorrection of test cases for 24474 issue
bugmaster [Fri, 17 Jan 2014 08:35:12 +0000 (12:35 +0400)]
Correction of test cases for 24474 issue

10 years ago0024473: TKMath, BVH - introduce template-based package for Bounding volume hierarchy...
dbp [Wed, 15 Jan 2014 13:21:18 +0000 (17:21 +0400)]
0024473: TKMath, BVH - introduce template-based package for Bounding volume hierarchy structures and tools

10 years ago0024320: TKOpenGl, Ray Tracing - OpenGL resources created for OpenCL interconnection...
dbp [Tue, 14 Jan 2014 09:05:08 +0000 (13:05 +0400)]
0024320: TKOpenGl, Ray Tracing - OpenGL resources created for OpenCL interconnection should be managed in common way

10 years ago0024521: Visualization - automatic back face culling is not turned on for Solids...
kgv [Thu, 16 Jan 2014 17:09:20 +0000 (21:09 +0400)]
0024521: Visualization - automatic back face culling is not turned on for Solids packed into compound

StdPrs_ToolShadedShape::IsClosed():
- return true if shape is closed Solid (NOT just free closed Shell)
- accept compound of closed Solids as well
- ignore Solids with incomplete triangulation

TKOpenGl, automatically disable back face culling when:
- clipping/capping planes are in effect
- for translucent objects

Update bug23227 test case (now back faces are clipped).

OpenGl_Workspace::AspectFace() - disable culling in case of hatched style

10 years ago0024252: GCC warnings on breakage of strict-aliasing rules
abv [Wed, 15 Jan 2014 02:40:18 +0000 (06:40 +0400)]
0024252: GCC warnings on breakage of strict-aliasing rules

Fixed type casts in NCollection maps
Avoid invalid type cast in handling of LDOM text object
Use correct pointer type in callback function of Graphic3d_CGraduatedTrihedron class
Format of printf() simplified in IntPatch_Point.cxx

10 years ago0024526: Guide on Automatic Test System is obsolete
ysn [Thu, 16 Jan 2014 11:00:11 +0000 (15:00 +0400)]
0024526: Guide on Automatic Test System is obsolete

Update and revision of Testing System Guide

10 years ago0024427: Wrong section curves
nbv [Wed, 15 Jan 2014 06:56:16 +0000 (10:56 +0400)]
0024427: Wrong section curves

Incorrect curve is got after Decompose method applying. This method's using should be restrict.
Decomposition is required if intersection curve contains some parts, where U-parameter on quadric surface changes too sharply.

Decompose method is called for Cone and Sphere only (it does not require for Cylinder).

Comments are changed by jgv.

Test case for issue CR24427

Added test case bugs/moddata_3/bug24427_2

Compiler warning is liquidated.
Test is corrected.

10 years ago0024388: Option to enable visualization of hidden lines in DRAW
aba [Thu, 16 Jan 2014 10:09:05 +0000 (14:09 +0400)]
0024388: Option to enable visualization of hidden lines in DRAW

Added additional snapshot dumping to /tests/bugs/vis/bug24388_2. Corrected bug24388_1. Corrected vhlr command.

10 years ago0024532: BRepOffsetAPI_MakePipeShell raises an exception in a case with auxiliary...
jgv [Thu, 16 Jan 2014 10:03:22 +0000 (14:03 +0400)]
0024532: BRepOffsetAPI_MakePipeShell raises an exception in a case with auxiliary guide

Test case for issue CR24532

10 years ago0024458: Add commands for basic shape transformations
szv [Thu, 12 Dec 2013 06:25:36 +0000 (10:25 +0400)]
0024458: Add commands for basic shape transformations

Added commands for basic transformations

10 years ago0024370: [Regression] 6.7.0beta ShapeFix_EdgeProjAux breaks conventions on using...
gka [Thu, 16 Jan 2014 09:11:45 +0000 (13:11 +0400)]
0024370: [Regression] 6.7.0beta ShapeFix_EdgeProjAux breaks conventions on using IsDone flag.

Projection of 3d points corresponding to range of edge on 2d curve considered as successful for  all cases to except for cases when projection is not made.

Initialization initial values of flags
Modification initial values of flags setting status Done for first and last parameters

Adding new draw-command for issue CR24370

Test case for issue CR24370

10 years ago0024474: GCPnts_AbscissaPoint calculates invalid point
abk [Tue, 17 Dec 2013 13:01:51 +0000 (17:01 +0400)]
0024474: GCPnts_AbscissaPoint calculates invalid point
DRAW command discrCurve was created to test GCPnts_UniformAbscissa by count of discretization point.
Two bugs in GCPnts_AbscissaPoint were fixed.
DRAW tests for the bug were created.

10 years ago0024485: Draw Harness - create subfolder in temporary directory for temporary test...
ibs [Thu, 16 Jan 2014 08:33:39 +0000 (12:33 +0400)]
0024485: Draw Harness - create subfolder in temporary directory for temporary test results

for each test execution a specific directory is created in a temp directory.
the format of the created directory is next: group-gridname-casename_<data>_<time with secs>

indentations in changes were realigned

Output of warning messages on use of temporary directory disabled

10 years ago0024505: Wrong section curves between Cone and Cylinder with collinear axes.
emv [Thu, 16 Jan 2014 08:29:12 +0000 (12:29 +0400)]
0024505: Wrong section curves between Cone and Cylinder with collinear axes.

The intersection between Cone and one of the following surfaces: Cylinder, Sphere, Cone and Torus
is treated as analytical when the axes of the surfaces are collinear.

Test case for issue CR24505

10 years ago0024204: The algorithm BRepOffsetAPI_MakePipeShell produces resulting shape with...
jgv [Thu, 16 Jan 2014 08:20:12 +0000 (12:20 +0400)]
0024204: The algorithm BRepOffsetAPI_MakePipeShell produces resulting shape with unwarrantably big tolerance

Added test case bugs/modalg_5/bug24204

Modified following test cases:
bugs modalg_3 bug605 - case with bad input data, command "settolerance w1 1.e-7" was added;
bugs modalg_4 bug629 - wrong case, now the algorithm can not build pipes on such profiles, test case was removed;
bugs modalg_4 bug13595_1, bug13595_1 - number of subshapes was has changed;
bugs modalg_5 bug23706_2 - square of resulting face was changed;
bugs modalg_5 bug23870_1, bug23870_2, bug23870_3, bug23870_4, bug23870_5 - the number of subshapes was changed.

10 years ago0024088: Unsafe window handle management in Draw using GetWindowLong
omy [Thu, 16 Jan 2014 08:16:56 +0000 (12:16 +0400)]
0024088: Unsafe window handle management in Draw using GetWindowLong

Replaced Get-/SetWindowLong with Get-/SetWindowLongPtr in files of TKDraw.

Reverted the unrelated changes

10 years ago0024157: Parallelization of assembly part of BO
pkv [Fri, 10 Jan 2014 04:29:02 +0000 (08:29 +0400)]
0024157: Parallelization of assembly part of BO

Patch 06

I.1. class Bnd_Box2d
- method:
inline Standard_Real Bnd_Box2d::SquareExtent() const
has been added.
Purpose : The method returns the squared diagonal of the bounding box.

I.3. class BOPCol_BoxBndTree
has been added.
Purpose : The class is the instantiation of the algorithm of unbalanced binary tree
of overlapped bounding boxes 3D.

I.4. class BOPCol_Box2DBndTree
has been added.
Purpose : The class is the instantiation of the algorithm of unbalanced binary tree
of overlapped bounding boxes 2D.

I.5. class BOPAlgo_Algo
- method:
void BOPAlgo_Algo::SetRunParallel(const Standard_Boolean theFlag)
has been added.
Purpose: Set the flag of parallel processing
     if <theFlag> is true  the parallel processing is switched on
     if <theFlag> is false the parallel processing is switched off

- method:
Standard_Boolean BOPAlgo_Algo::RunParallel()const
has been added
Purpose: Returns the flag of parallel processing

II.1. class BOPAlgo_Builder
- method:
void BOPAlgo_Builder::SetRunParallel(const Standard_Boolean theFlag)
has been removed due to I.5.

- method:
Standard_Boolean BOPAlgo_Builder::RunParallel()const
has been removed due to I.5

II.2. class BOPDS_BoxBndTree
has been removed due to I.3

II.3. classes
BOPDS_Iterator,
BOPDS_IteratorSI,
BOPDS_SubIterator
BOPAlgo_PaveFiller,
BOPAlgo_Builder
the calls to BOPDS_BoxBndTree have been changed to
the calls to BOPCol_BoxBndTree
due to I.3

II.4. class BOPAlgo_BuilderFace
- method:
void BOPAlgo_BuilderFace::PerformLoops()
the changes that provide parallel run the  WireSplitter algorithm have been done.

- method:
void BOPAlgo_BuilderFace::PerformAreas()
the classification the grows and holes has been done using
the algorithm of unbalanced binary tree of overlapped bounding boxes

II.5. class BOPAlgo_WireSplitter
- method:
void BOPAlgo_WireSplitter::SplitBlock(const TopoDS_Face& myFace,
          BOPTools_ConnexityBlock& aCB)
the method is transferred to the static, the signature of the method have been changed

- method:
void BOPAlgo_WireSplitter::MakeWires()
the changes to provide parallel run the SplitBlock algorithm have been done

10 years ago0024438: Message_Algorithm - allow customized status descriptions
kgv [Thu, 16 Jan 2014 07:55:43 +0000 (11:55 +0400)]
0024438: Message_Algorithm - allow customized status descriptions

10 years ago0024497: TKOpenGl, OpenGl_Context - Add getter for window field
kgv [Wed, 8 Jan 2014 08:21:29 +0000 (12:21 +0400)]
0024497: TKOpenGl, OpenGl_Context - Add getter for window field

10 years ago0024209: Cppcheck errors "unusedScopedObject"
omy [Tue, 24 Dec 2013 06:13:13 +0000 (10:13 +0400)]
0024209: Cppcheck errors "unusedScopedObject"
Fixed bug with temporary objects.

10 years ago0024510: Remove unused local variables
Denis Barbier [Thu, 9 Jan 2014 08:20:06 +0000 (12:20 +0400)]
0024510: Remove unused local variables

When warnings are enabled, compilers report lots of occurrences
of unused local variables, which makes it harder to find other
meaningful warnings.
This commit does not fix all unused local variables.

Fix new type conversion warning

Code cleaned to avoid MSVC compiler warnings on unused function arguments.
Several useless pieces of code are removed.
Changes in IntTools_EdgeFace.cxx, Blend_Walking_1.gxx, Bnd_BoundSortBox.cxx, ProjLib_ProjectedCurve.cxx are reverted (separated to specific issue for more in-depth analysis).

10 years ago0024511: Remove obsolete Image_PixelAddress.cxx
Denis Barbier [Thu, 9 Jan 2014 08:14:05 +0000 (12:14 +0400)]
0024511: Remove obsolete Image_PixelAddress.cxx

Image_PixelAddress.cxx had been removed from src/Image/FILES in CR23486 (commit 2361d7e), but the file had not been deleted.

Correction of inconsistent file and units lists (units DebugTools and OpenCL are removed from UDLIST; files EXTERNLIB and SCAN.tcl added to FILES list in Cocoa and DrawResources units)

10 years ago0024512: clang++ compiler complains about extra semicolon
Denis Barbier [Thu, 2 Jan 2014 21:54:45 +0000 (22:54 +0100)]
0024512: clang++ compiler complains about extra semicolon

Clang++ compiler emits warnings like these ones when parsing superfluous semicolons:
  .../src/OSD/OSD_MAllocHook.cxx:49:2: warning: extra ';' outside of a function is a C++11 extension [-Wc++11-extra-semi]
  .../src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx:317:30: warning: extra ';' after member function definition [-Wextra-semi]

10 years ago0024516: Copyright information has been corrupted within some headers
bugmaster [Wed, 8 Jan 2014 10:47:11 +0000 (14:47 +0400)]
0024516: Copyright information has been corrupted within some headers

Update incorrectly modified header files

10 years ago0024470: Wrong result done by General Fuse algorithm.
emv [Thu, 9 Jan 2014 08:01:01 +0000 (12:01 +0400)]
0024470: Wrong result done by General Fuse algorithm.

Modifications:
1. The validity of the intersection point between edge and face is checked with sum of the tolerance values of the edge and face.
2. The intersection between toroidal surface and one of the following surfaces: Plane, Cylinder, Sphere, Cone or Torus
   is treated as analytical in the following cases:
   1) Torus and Plane: a. Axes of the surfaces are parallel;
                       b. Axes of the surfaces are perpendicular and location of the torus is lying on the plane;
   2) Torus and Sphere: The location of the sphere is lying on the line made from toruses axis;
   3) Torus and Cone, Cylinder or Torus: The axis of the surfaces are collinear.
   In all cases the intersection line(s) is(are) circle(s).

Added test cases bugs/modalg_5/bug24470

The intersection between torus with minor radius more than (or equal to) the major radius and any other surface is considered as parametric.

10 years ago0024489: Avoid type casts in call to Standard::Free()
abv [Thu, 9 Jan 2014 07:56:20 +0000 (11:56 +0400)]
0024489: Avoid type casts in call to Standard::Free()

Method Standard::Free() is converted to template, so that pointer is nullified using its proper type.
Unnecessary type cases in calls to Standard::Free(), Standard::Reallocate(), and NCollection_BaseAllocator::Free() eliminated throughout OCCT code.

10 years ago0024491: Partition algorithm history bug (faces).
emv [Wed, 25 Dec 2013 12:24:57 +0000 (16:24 +0400)]
0024491: Partition algorithm history bug (faces).
Modifications in history:
1. All splits of the shape are returned as Modified from that shape.
2. For SECTION operation section edges are returned as Generated from the face.

10 years ago0024495: Crash during performeng boolean operation on attached shape for Windows...
emv [Wed, 25 Dec 2013 11:14:54 +0000 (15:14 +0400)]
0024495: Crash during performeng boolean operation on attached shape for Windows VC2010 64 bit
Recursion in the method Path in BOPAlgo_WireSplitter has been replaced with cycle.

10 years ago0024483: Visualization - drop unused class StdSelect_BRepHilighter
kgv [Thu, 19 Dec 2013 04:53:37 +0000 (08:53 +0400)]
0024483: Visualization - drop unused class StdSelect_BRepHilighter

10 years ago0024463: BRepAlgo_Section::Build hangs
pkv [Thu, 26 Dec 2013 11:47:44 +0000 (15:47 +0400)]
0024463: BRepAlgo_Section::Build hangs

Added test case bugs/modalg_5/bug24463

10 years ago0024492: The command bopargcheck produces wrong results for cases.
pkv [Thu, 26 Dec 2013 11:43:44 +0000 (15:43 +0400)]
0024492: The command bopargcheck produces wrong results for cases.

New features:
- class BOPDS_InterfVZ has been added.
Purpose: The class BOPDS_InterfVZ is is to store the information about
the interference of the type vertex/solid.

- class BOPDS_InterfEZ has been added.
Purpose: The class BOPDS_InterfEZ is is to store the information about
the interference of the type edge/solid.

- class BOPDS_InterfFZ has been added.
Purpose: The class BOPDS_InterfFZ is is to store the information about
the interference of the type face/solid.

- class BOPDS_InterfFZ has been added.
Purpose: The class BOPDS_InterfZZ is is to store the information about
the interference of the type solid/solid.

- class BOPDS_DS
-methods
inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ()
Purpose: Returns the collection of interferences Vertex/Solid

inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ()
Purpose: Returns the collection of interferences Edge/Solid

inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ()
Purpose: Returns the collection of interferences Face/Solid

inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ()
Purpose: Returns the collection of interferences Solid/Solid

inline Standard_Integer BOPDS_DS::NbInterfTypes()
Purpose: Returns the number of types of the interferences
have been added.

- class BOPDS_Tools
-method
inline Standard_Boolean BOPDS_Tools::IsInterfering
  (const TopAbs_ShapeEnum theT)
has been added.
Purpose: Returns true if the type <theT> can be participant of  an interference

- class BOPDS_ShapeInfo
-method
inline Standard_Boolean BOPDS_ShapeInfo::IsInterfering()const
has been added.
Purpose: Returns true if the object can be participant of  an interference

- class BOPDS_ShapeInfo
-methods
void BOPAlgo_CheckerSI::PerformVZ()
Purpose: Computes Vertex/Solid interferences

void BOPAlgo_CheckerSI::PerformEZ()
Purpose: Computes Edge/Solid interferences

void BOPAlgo_CheckerSI::PerformFZ()
Purpose: Computes Face/Solid interferences

void BOPAlgo_CheckerSI::PerformZZ()
Purpose: Computes Solid/Solid interferences
have been added

Changes:
- class BOPDS_DS
- method:
Standard_Boolean BOPDS_DS::HasInterfShapeSubShapes
  (const Standard_Integer theI1,
   const Standard_Integer theI2,
   const Standard_Boolean theFlag)const
has been modified.
Purpose:
  Returns true if the shape with index theI1 is interfered  with
    - at least one sub-shape of the shape with index theI2  (theFlag=true)
    --all sub-shapes of the shape with index theI2 (theFlag=false)

- class BOPDS_Tools
- method:
inline Standard_Integer BOPDS_Tools::TypeToInteger
 (const TopAbs_ShapeEnum aType1,
 const TopAbs_ShapeEnum aType2)
The method has been extended to treat */Solid interfertences.

- class BOPDS_Iterator
- constructors:
BOPDS_Iterator::BOPDS_Iterator();
BOPDS_Iterator::BOPDS_Iterator
  (const Handle(NCollection_BaseAllocator)& theAllocator);
- method:
void BOPDS_Iterator::Prepare();
The constant number of types of the interferences has been changed by
the call: BOPDS_DS::NbInterfTypes();

- class BOPDS_IteratorSI
- method:
void BOPDS_IteratorSI::UpdateByLevelOfCheck(const Standard_Integer theLevel)
The constant number of types of the interferences has been changed by
the call: BOPDS_DS::NbInterfTypes();

- method:
void BOPDS_IteratorSI::Intersect()
The method has been extended to treat */Solid interfertences.

- class BOPAlgo_CheckerSI
- constructor:
BOPAlgo_CheckerSI::BOPAlgo_CheckerSI()
The constant number of types of the interferences has been changed by
the call: BOPDS_DS::NbInterfTypes();

- method:
void BOPAlgo_CheckerSI::SetLevelOfCheck(const Standard_Integer theLevel)
The constant number of types of the interferences has been changed by
the call: BOPDS_DS::NbInterfTypes();

- methods:
void BOPAlgo_CheckerSI::Perform()
void BOPAlgo_CheckerSI::PostTreat()
The methods have been extended to treat */Solid interfertences.

- class BOPAlgo_ArgumentAnalyzer
- method:
void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences()
The method has been extended to treat */Solid interfertences.

Added test case bugs/modalg_5/bug24492

10 years ago0024482: Documentation - provide descipriprion of CSF_ShadersDirectory variable in...
kgv [Wed, 18 Dec 2013 13:44:24 +0000 (17:44 +0400)]
0024482: Documentation - provide descipriprion of CSF_ShadersDirectory variable in the Overview

10 years ago0024484: sprops gives incorrect matrix of inertia and moments
skv [Thu, 26 Dec 2013 11:29:45 +0000 (15:29 +0400)]
0024484: sprops gives incorrect matrix of inertia and moments

Added test case bugs/modalg_5/bug24484

10 years ago0024494: Value of OCC_VERSION_DEVELOPMENT is not accounted in generated overview...
abv [Tue, 24 Dec 2013 07:14:43 +0000 (11:14 +0400)]
0024494: Value of OCC_VERSION_DEVELOPMENT is not accounted in generated overview documentation

Parser of OCCT version corrected to include development macro in complete version number.

10 years ago0024475: Regression on OCCT6.6.0 relative to OCCT6.5.3: wrong result of ThruSections...
jgv [Tue, 17 Dec 2013 13:01:52 +0000 (17:01 +0400)]
0024475: Regression on OCCT6.6.0 relative to OCCT6.5.3: wrong result of ThruSections algorithm on two customer's wires

10 years ago0024456: Graphic3d_MaterialAspect - use static assert instead of runtime exception
omy [Thu, 19 Dec 2013 10:17:33 +0000 (14:17 +0400)]
0024456: Graphic3d_MaterialAspect - use static assert instead of runtime exception

Graphic3d_MaterialAspect::NumberOfMaterials() : Standard_ASSERT_RAISE instead of run-time check is now used.
Replaced with Standard_STATIC_ASSERT

10 years ago0024157: Parallelization of assembly part of BO
pkv [Tue, 10 Dec 2013 05:08:44 +0000 (09:08 +0400)]
0024157: Parallelization of assembly part of BO

New features
class BOPAlgo_BuilderSolid
-method:
void BOPAlgo_BuilderSolid::SetSolid(const TopoDS_Solid& theSolid) has been added.
Purpose: Sets the source solid <theSolid>

class BOPAlgo_BuilderSolid
-method:
const TopoDS_Solid& BOPAlgo_BuilderSolid::Solid()const
has been added.
Purpose: Returns the source solid

Auxiliary classes
BOPAlgo_BuilderSolidFunctor
BOPAlgo_BuilderSolidCnt
have been added.
Purpose: The classes provide the interface and implementation of the parallel computations.

class BOPTools_AlgoTools
-method:
Standard_Boolean  BOPTools_AlgoTools::IsOpenShell(const TopoDS_Shell& theShell) has been added.
Purpose: Returns true if the shell <theShell> is open

class BOPTools_AlgoTools
-method:
Standard_Boolean  BOPTools_AlgoTools::IsInvertedSolid(const TopoDS_Solid& theSolid) has been added.
Purpose: Returns true if the solid <theSolid> is inverted

class BOPDS_DS
-protected  method:
void BOPDS_DS::BuildBndBoxSolid(const Standard_Integer theIndex, Bnd_Box& theBoxS) has been added.
The method computes bouding box <theBoxS> for the solid with DS-index <theIndex>

Changes
class BOPDS_DS
- method:
void BOPDS_DS::Init()
The block to compute bouding box for the solids has been added.

class BOPAlgo_Builder
- method:
void BOPAlgo_Builder::FillIn3DParts
(BOPCol_DataMapOfShapeListOfShape& theInParts,
BOPCol_DataMapOfShapeShape& theDraftSolids,
const BOPCol_BaseAllocator& theAllocator)
The order of treatment of the unbalanced binary tree of overlapped bounding boxes has been changed

class BOPAlgo_Builder
- method:
 void BOPAlgo_Builder::BuildSplitSolids
(BOPCol_DataMapOfShapeListOfShape& theInParts,
BOPCol_DataMapOfShapeShape& theDraftSolids,
const BOPCol_BaseAllocator&  theAllocator)
The algorithm has been adapted to provide the parallel computations

10 years agoChanging OCCT version to 6.7.1 and define OCC_VERSION_DEVELOPMENT to "dev"
bugmaster [Thu, 19 Dec 2013 09:26:32 +0000 (13:26 +0400)]
Changing OCCT version to 6.7.1 and define OCC_VERSION_DEVELOPMENT to "dev"

10 years ago0024428: Implementation of LGPL license V6_7_0
abv [Fri, 13 Dec 2013 12:50:27 +0000 (16:50 +0400)]
0024428: Implementation of LGPL license

OCCT documentation updated to refer to LGPL as applicable license

10 years ago0024428: Implementation of LGPL license
bugmster [Wed, 4 Dec 2013 17:18:05 +0000 (21:18 +0400)]
0024428: Implementation of LGPL license

Update of OCCT samples source code due to moving to LGPL license

10 years ago0024428: Implementation of LGPL license
bugmster [Wed, 4 Dec 2013 17:05:36 +0000 (21:05 +0400)]
0024428: Implementation of LGPL license

The copying permission statements at the beginning of source files updated to refer to LGPL.
Copyright dates extended till 2014 in advance.

10 years ago0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
vro [Tue, 17 Dec 2013 08:27:29 +0000 (12:27 +0400)]
0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
Turning on the light to display the shapes of the sample.

10 years ago0024469: cmake mfcsample project skippes ParamsFacesPage
ibs [Tue, 17 Dec 2013 06:17:09 +0000 (10:17 +0400)]
0024469: cmake mfcsample project skippes ParamsFacesPage

add ParamsFacesPage.cpp and ParamsFacesPage.h in mfcsample cmake project

Unrelated changes: common samples include paths have lower priority than specific ones
Unrelated changes: debug tbb cmake seeks with _debug postfix

10 years ago0024426: CMake ignores 3rd party options; env.sh does not set "CASROOT" environment...
ibs [Mon, 16 Dec 2013 14:05:20 +0000 (18:05 +0400)]
0024426: CMake ignores 3rd party options; env.sh does not set "CASROOT" environment variable

unrelative changes: #!/bin/bash line was added to env.sh.in
CMake: debug environment was removed for the time being; env.sh and env.bat templates were refactored
possibility of using of redundant command line parameters were removed from env.sh & env.bat scripts
tcl installation corrected;
Removed "echo off" from shell script

10 years ago0024471: Erasing of the shape in HLR sample leads to sample crash.
aba [Mon, 16 Dec 2013 14:10:58 +0000 (18:10 +0400)]
0024471: Erasing of the shape in HLR sample leads to sample crash.

10 years agoPreparation for OCCT 6.7.0 release: 'beta' removed from OCCT version
abv [Fri, 13 Dec 2013 11:23:40 +0000 (15:23 +0400)]
Preparation for OCCT 6.7.0 release: 'beta' removed from OCCT version

10 years ago0024466: Visualization - PrsMgr_Presentation3d::Erase() now leads to incomplete destr...
kgv [Sun, 15 Dec 2013 12:25:16 +0000 (16:25 +0400)]
0024466: Visualization - PrsMgr_Presentation3d::Erase() now leads to incomplete destruction of Graphic3d_Structure

10 years ago0024440: Regressions in products test group sat/doc_1
szv [Thu, 12 Dec 2013 08:32:51 +0000 (12:32 +0400)]
0024440: Regressions in products test group sat/doc_1

Check for closed shell is corrected

10 years ago0024425: Improve usage ergonomics of new dimension presentations
aba [Wed, 11 Dec 2013 15:16:07 +0000 (19:16 +0400)]
0024425: Improve usage ergonomics of new dimension presentations

- Added format for value string.
- Construction and validness.
- Revise modification of properties and update of presentations.
- Units moved to Drawer; code revisions.
- Length and angle initialization was changed. Type of geometry filed was added to AIS_Dimension.
- Method for test case bugs/vis/buc60915 was corrected. Description of the dimension classes was corrected.
- Fixed initialization of angle and length.

10 years ago0024448: Possible copy-paste bug in IGESGeom_SplineCurve.cxx
Pawel [Mon, 9 Dec 2013 16:15:39 +0000 (17:15 +0100)]
0024448: Possible copy-paste bug in IGESGeom_SplineCurve.cxx

Replaced 'allXPolynomials' with 'allYPolynomials' to avoid redundancy.

10 years ago0024451: Logical conjunction always evaluates to false
Pawel [Tue, 10 Dec 2013 09:26:10 +0000 (10:26 +0100)]
0024451: Logical conjunction always evaluates to false

As the variable gets casted on Standard_Byte it is checked to be within the range <0; 255>

10 years ago0024455: Graphic3d_Group - restore Marker() method to simplify porting
kgv [Wed, 11 Dec 2013 05:31:04 +0000 (09:31 +0400)]
0024455: Graphic3d_Group - restore Marker() method to simplify porting

10 years ago0024283: STEP read failes to read unbound advanced_face
gka [Wed, 4 Dec 2013 06:47:40 +0000 (10:47 +0400)]
0024283: STEP read failes to read unbound advanced_face

Fix to avoid exception if sphere is written without bounds.

10 years ago0024452: TKOpenGl - Memory leak in OpenGl_ShaderManager
Pawel [Tue, 10 Dec 2013 10:05:08 +0000 (14:05 +0400)]
0024452: TKOpenGl - Memory leak in OpenGl_ShaderManager

10 years ago0024450: TKOpenGl - Fixed pipeline materials update optimization does not distinguish...
kgv [Tue, 10 Dec 2013 08:44:10 +0000 (12:44 +0400)]
0024450: TKOpenGl - Fixed pipeline materials update optimization does not distinguish front/back faces

10 years ago0024403: BRepBuilderAPI_Sewing should have get/set Context methods
ibs [Wed, 27 Nov 2013 13:11:25 +0000 (17:11 +0400)]
0024403: BRepBuilderAPI_Sewing should have get/set Context methods

Methods to get/set context introduced

10 years ago0024434: The result of Boolean FUSE operation is not correct
emv [Mon, 9 Dec 2013 07:01:49 +0000 (11:01 +0400)]
0024434: The result of Boolean FUSE operation is not correct
Small correction in splitting SEAM edge on face.

10 years ago0024389: Invalid hilight of AIS dimension line in local selection
apl [Sat, 7 Dec 2013 10:07:41 +0000 (14:07 +0400)]
0024389: Invalid hilight of AIS dimension line in local selection

- Fixed invalid presentation of dimension highlight.
- Fixed bug on switching between selection modes. Individual sensitive entities generated for each selection mode.
- Revised selection: AIS_DimensionSelectionMode enumeration added, redundant AIS_DimensionDisplayMode is removed.
- Revised entity owner usage: used standard SelectMgr_EntityOwner for neutral selection, AIS_DimensionOwner for "line", "text" selection modes.
- Made arrows selectable.
- Got rid of predefined arrow angle. The arrow angle is now taken from dimension aspect.
- The 3D text is now centered by bounding box for better alignment.

10 years ago0024422: Wrong result done by FaceClassifier algorithm
nbv [Wed, 4 Dec 2013 11:07:25 +0000 (15:07 +0400)]
0024422: Wrong result done by FaceClassifier algorithm

Control of out of boundaries by finding circle-point extrema.

10 years ago0024459: Exception during clearing object in test case v3d/raytrace/connected in...
dbp [Thu, 12 Dec 2013 15:22:02 +0000 (19:22 +0400)]
0024459: Exception during clearing object in test case v3d/raytrace/connected in DEBUG mode

10 years ago0024391: Erased AIS object can not be displayed in AIS_InteractiveContext after AIS_I...
aba [Thu, 28 Nov 2013 15:50:58 +0000 (19:50 +0400)]
0024391: Erased AIS object can not be displayed in AIS_InteractiveContext after AIS_InteractiveContext::Remove(): added  presentations removing after presentable object is removed from context.

vremove command was corrected. Test case was corrected.

few mistakes corrected

10 years agoAdjusting test cases for current state of OCCT
bugmaster [Fri, 6 Dec 2013 11:41:07 +0000 (15:41 +0400)]
Adjusting test cases for current state of OCCT

1. Modified test cases to improve using of Japanese characters
bugs vis bug22149
bugs vis bug22796_2

2. Modified test case bugs vis bug23813 to avoid regression caused by using vdump command with non-default parameters on remote PCs
bugs vis bug23813

3. Behavior change of test case de iges_2 B1 in DEBUG mode on Linux and Windows platforms (OCC24442)
de iges_2 B1

10 years ago0024279: bug in Standard_Boolean STEPCAFControl_Reader::Transfer
gka [Wed, 4 Dec 2013 06:37:41 +0000 (10:37 +0400)]
0024279: bug in Standard_Boolean STEPCAFControl_Reader::Transfer

10 years ago0024420: Add methods to switch the type of sensitivity in AIS_Circle and AIS_Plane
dbv [Thu, 5 Dec 2013 11:43:48 +0000 (15:43 +0400)]
0024420: Add methods to switch the type of sensitivity in AIS_Circle and AIS_Plane

Added methods to AIS_Circle and AIS_Plane for switching type of sensitivity
By default AIS_Circle and AIS_Plane have boundary sensitivity

10 years ago0024372: HLR Sample: erased objects are shown in HLR
aba [Thu, 5 Dec 2013 11:39:48 +0000 (15:39 +0400)]
0024372: HLR Sample: erased objects are shown in HLR

Compilation errors were corrected.
Removed .aps files
Sample paths fields were updated to read help file from sample folder.

10 years ago0024359: Crash on BRepAlgoAPI_Fuse
ifv [Thu, 5 Dec 2013 11:36:22 +0000 (15:36 +0400)]
0024359: Crash on BRepAlgoAPI_Fuse

Test case for issue CR24359

10 years ago0023921: IGES reader cannot map subshapes colors inside nested assemblies
gka [Thu, 5 Dec 2013 11:26:01 +0000 (15:26 +0400)]
0023921: IGES reader cannot map subshapes colors inside nested assemblies

Modification to avoid creation of redundant labels in XCAF for any shapes  belonging compound even if colors are not defined for them.
Fix to avoid compiler warning.
Fix for regression for test case de iges_2 A6
Test case for issue CR23921

10 years ago0024313: BRepAlgoAPI_Section and IntTools_FaceFace aren't written to handle Geom_Surf...
ifv [Thu, 5 Dec 2013 11:16:11 +0000 (15:16 +0400)]
0024313: BRepAlgoAPI_Section and IntTools_FaceFace aren't written to handle Geom_SurfaceOfLinearExtrusion

Test case for issue CR24313

10 years ago0023931: Incorrect image export code in MFC sample: Added OCC_BaseDoc::ExportView...
aba [Thu, 5 Dec 2013 11:03:53 +0000 (15:03 +0400)]
0023931: Incorrect image export code in MFC sample: Added OCC_BaseDoc::ExportView() method to unify image export procedure in all MFC samples.

Compilation errors were corrected.

10 years ago0024304: Eliminate GCC compiler warning about exceeding maximum value for type in...
ski [Thu, 28 Nov 2013 14:10:25 +0000 (18:10 +0400)]
0024304: Eliminate GCC compiler warning about exceeding maximum value for type in case label

Methods OSD::Handler(), OSD::SegvHandler(), OSD::WntHandler() were made static
Type cast were removed when pointer on signal handler function is used
Enumeration OSD_Signal removed

10 years agoDeleting MSVC compiler warning in BRepBuilderAPI_Sewing.cxx(920) caused integration...
mkv [Fri, 29 Nov 2013 07:56:12 +0000 (11:56 +0400)]
Deleting MSVC compiler warning in BRepBuilderAPI_Sewing.cxx(920) caused integration of fix for 24390

10 years ago0023813: TKOpenGl, OpenGl_Texture ignores stride image property
kgv [Thu, 28 Nov 2013 09:55:52 +0000 (13:55 +0400)]
0023813: TKOpenGl, OpenGl_Texture ignores stride image property
Added test case tests/bugs/vis/bug23813

10 years ago0024336: Content of OCCT documentation should be updated. Iter 2
ysn [Thu, 28 Nov 2013 08:17:08 +0000 (12:17 +0400)]
0024336: Content of OCCT documentation should be updated. Iter 2

Minor corrections in documentation (dev guides)

Finalized brep_wp guide (by DLN); entirely removed non-PNG images to provide smooth PDF generation;  Restored cross-guide links in Technical overview; small improvements and editing in GIT guide.

Resized some images to better fit on PDF pages.

10 years ago0024008: ShapeAnalysis_Surface causes exception in Geom_OffsetSurface
gka [Thu, 28 Nov 2013 08:13:15 +0000 (12:13 +0400)]
0024008: ShapeAnalysis_Surface causes exception in Geom_OffsetSurface

Refactoring on current master fix for bug 0024008: ShapeAnalysis_Surface causes exception in Geom_OffsetSurface.
And modified test scripts in order to avoid report regressions
Test cases for issue CR24008

10 years ago0024399: ICC warnings 3280 "declaration hides..."
ski [Tue, 26 Nov 2013 14:17:10 +0000 (18:17 +0400)]
0024399: ICC warnings 3280 "declaration hides..."

Renamed local variables to avoid ICC compiler warnings about repeated names

10 years ago0024396: "vselmode" - disable auto loading of objects into Local Context
apl [Thu, 28 Nov 2013 07:32:53 +0000 (11:32 +0400)]
0024396: "vselmode" - disable auto loading of objects into Local Context

Corrected DRAWEXE "vselmode" command.
Added test case.

corrected test cases

- 24293 failed due to initialization view without "name".
- 24374 adjusted, the test case was initially incorrect.

Modified test cases bugs/vis/bug24293 and bugs/vis/bug24374

10 years ago0024398: Output of extrema draw-command has various format on optimise and debug...
aml [Thu, 28 Nov 2013 07:25:41 +0000 (11:25 +0400)]
0024398: Output of extrema draw-command has various format on optimise and debug modes

Fixed creation of extrema curve in debug mode.
Deleted space between ";" and "V" in debug output to make "llength" DRAW funcion work correctly in debug mode.
Deleted TODOs in tests/bugs/modalg_5/bug24327
Deleted TODOs in test cases with improvement in extrema output. Increased cpulimit in de, boolean and perf.

10 years ago0024383: Access violation during STEP file import
gka [Thu, 28 Nov 2013 07:19:34 +0000 (11:19 +0400)]
0024383: Access violation during STEP file import

Protection for null magnitude of vector written in file was added.

Test cases for issue CR24383

10 years ago0024180: Eliminate CLang / GCC compiler warning -Wswitch
ski [Thu, 28 Nov 2013 07:13:41 +0000 (11:13 +0400)]
0024180: Eliminate CLang / GCC compiler warning -Wswitch

Eliminated warnings -Wswitch shown by gcc
Eliminated two new warnings about wrong initialization order
Eliminated warnings about unused functions.
A few more ICC warnings (type conversions) fixed

10 years ago0024400: Wrong result obtained by Section
pdn [Thu, 28 Nov 2013 07:10:10 +0000 (11:10 +0400)]
0024400: Wrong result obtained by Section

Changes:
class IntTools_FaceFace
- static function:
void CorrectSurfaceBoundaries(const TopoDS_Face&  theFace,
       const Standard_Real theTolerance,
       Standard_Real&      theumin,
       Standard_Real&      theumax,
       Standard_Real&      thevmin,
       Standard_Real&      thevmax)

Remove unnecessary broadening of UV-bounds for the faces based on the sperical surfaces.

Test case for issue CR24400

10 years ago0024385: Shape fix shape does not correct closed flag for shell
pdn [Thu, 28 Nov 2013 06:45:18 +0000 (10:45 +0400)]
0024385: Shape fix shape does not correct closed flag for shell

Modified test cases de/step_4/C9 and de/step_4/D1 regarding to new reference data

10 years ago0024380: OSD_MAllocHook - Improvement of malloc hook to follow maximal peack size
pdn [Fri, 22 Nov 2013 09:07:17 +0000 (13:07 +0400)]
0024380: OSD_MAllocHook - Improvement of malloc hook to follow maximal peack size

10 years ago0024392: TKService, Image_PixMap - use bottom-up image data storage by default
kgv [Fri, 22 Nov 2013 02:54:16 +0000 (06:54 +0400)]
0024392: TKService, Image_PixMap - use bottom-up image data storage by default

10 years ago0023708: The correct shape is interpreted as invalid
pdn [Thu, 28 Nov 2013 06:35:31 +0000 (10:35 +0400)]
0023708: The correct shape is interpreted as invalid

Added test case bugs/modalg_5/bug23708
Improvements in test case de/step_3/B8 (problem in second TODO is not reproduced)
Modified test case de/iges_2/H1 regarding to new reference data

10 years ago0024390: Sewing produces the result with huge tolerance
gka [Thu, 28 Nov 2013 06:30:32 +0000 (10:30 +0400)]
0024390: Sewing produces the result with huge tolerance

Test cases for issue CR24390

10 years agoCorrection test cases for adequate behavior for platforms with OpenCL
bugmaster [Fri, 22 Nov 2013 10:49:51 +0000 (14:49 +0400)]
Correction test cases for adequate behavior for platforms with OpenCL

10 years agoAdjusting testing cases
apn [Fri, 22 Nov 2013 10:08:40 +0000 (14:08 +0400)]
Adjusting testing cases

boolean bsection M9 N5
Adjusting test cases in DEBUG mode to current state of master (increase cpulimit and modified TODOs)

bugs modalg_5 bug24327
Added TODO in test case to avoid regression in DEBUG mode caused by integration of 24327

perf bop builface
Increase cpulimit of test case (problem in DEBUG mode)

10 years agoCorrection of test cases due to fix for issue 24130
apn [Fri, 22 Nov 2013 08:49:09 +0000 (12:49 +0400)]
Correction of test cases due to fix for issue 24130

10 years agoCorrection of testing case for issue 24374
bugmaster [Thu, 21 Nov 2013 13:37:12 +0000 (17:37 +0400)]
Correction of testing case for issue 24374

10 years ago0024374: Flipping affects highlight presentation of dimension. Model-view matrix...
aba [Thu, 21 Nov 2013 13:34:24 +0000 (17:34 +0400)]
0024374: Flipping affects highlight presentation of dimension. Model-view matrix restoring in immediate mode was added in OpenGl_Flipper::Render() method. Test case was added.

10 years ago0024351: Test cases for AIS dimension presentations to check arrow orientation, text...
apl [Thu, 21 Nov 2013 13:30:06 +0000 (17:30 +0400)]
0024351: Test cases for AIS dimension presentations to check arrow orientation, text position

- Added test cases to check label and arrows positioning of AIS length, angle, radius, diameter dimensions;
- Added new arguments to "vdim" command to modify "flyout", "arrow orientation", "label position" properties;
- Corrected bug: duplication of text label of linear dimensions for the horizontal-centered text.
- Rename and revise argument interface of "vdimension" (vdim) command.
- Correct test cases for new command name and arguments style.

corrected test cases - check with testdiff instead of "checkcolor"

10 years ago0024326: Get rid of confusing extension line
apl [Thu, 21 Nov 2013 13:27:33 +0000 (17:27 +0400)]
0024326: Get rid of confusing extension line

1) Removed confusing part of labeled extension for 3d text.
2) Removed unused "TextOffset" property of AIS_Dimension class, revised function of "ExtensionSize" property.
3) Added options to specify automatic or user-defined arrow orientation and value label positioning to dimension aspect enumerations.
4) Use proper naming: Prs3d_DimensionTextVerticalPosition, Prs3d_DimensionTextHorizontalPosition instead of Prs3d_HorizontalTextAlignment, Prs3d_VerticalTextAlignment.
Correction of label length computing method.