occt.git
9 years ago0024936: Remove unused package IncludeLibrary
abv [Mon, 19 May 2014 13:17:09 +0000 (17:17 +0400)]
0024936: Remove unused package IncludeLibrary

Unused package IncludeLibrary and file IGESToBRep/project.pxx removed.

9 years ago0024835: Graphic structure for highlighting is not erased if presentable object for...
aba [Thu, 22 May 2014 14:15:21 +0000 (18:15 +0400)]
0024835: Graphic structure for highlighting is not erased if presentable object for highlight is deleted

Corrections in highlight state checks.

9 years ago0024879: Wrong result of General Fuse operation
emv [Thu, 22 May 2014 14:12:35 +0000 (18:12 +0400)]
0024879: Wrong result of General Fuse operation

Modifications:
1. class BOPAlgo_WireSplitter
  1.1. Removed static method RecomputeAngles(...).
  1.2. Minor corrections.
2. class BOPTools_AlgoTools
  2.1 method GetFaceOff
  For definition of an angles between faces the same step in 3D space has been used for all faces in the list.
  To define that step new static function MinStep3D has been implemented.

Added test case bugs/modalg_5/bug24879
Deleted unnecessary TODOs in test case bugs/modalg_2/bug497_3

9 years ago0023511: The function BRepTools::UVBounds provides icorrect result for a face
nbv [Mon, 19 May 2014 07:57:24 +0000 (11:57 +0400)]
0023511: The function BRepTools::UVBounds provides icorrect result for a face

Range of changing of some analytic curves is computed by other methods. It allows computing face's boundaries with more precise.
Tolerance was increased to provide successful work of some algorithms.
Functions BRepOffsetAPI_MiddlePath::Build() and ApproxWithPCurves(...) (file IntTools_FaceFace.cxx) were changed according to new result of algorithm's work.
It is possibly for "outboundaried faces" (see bug#23675) to compute incorrect UV-Bounds, when first parameter is more than last. To avoid it, extended control of computed bounds was added.
Function for fail sameparameter fixing was added to HLRAppli_ReflectLines to avoid creation bad shapes after algorithm's work.

In file ShapeFix_ComposeShell.cxx only text formatting was changed.

Some test cases are changed according to their new behavior.
Added test case bugs/moddata_3/bug23511

9 years ago0024832: Performance of new boolean operations has become worse
dbp [Thu, 22 May 2014 13:52:20 +0000 (17:52 +0400)]
0024832: Performance of new boolean operations has become worse

Replace C pointers with handles.
Encapsulate handles in Extrema_ExtPExtS and Extrema_ExtPRevS classes.

9 years ago0024157: Parallelization of assembly part of BO
pkv [Thu, 22 May 2014 13:49:52 +0000 (17:49 +0400)]
0024157: Parallelization of assembly part of BO

The modifications deal with the parallelization of P-curves computations.
Added test cases bugs/modalg_5/bug24157_1 ... bug24157_9

9 years ago0024928: Visualization - FSAA is not working in ray-tracing mode
dbp [Thu, 15 May 2014 06:45:49 +0000 (10:45 +0400)]
0024928: Visualization - FSAA is not working in ray-tracing mode

9 years ago0002883: It is impossible to set material, color and transparency to compound
aba [Thu, 22 May 2014 13:33:02 +0000 (17:33 +0400)]
0002883: It is impossible to set material, color and transparency to compound

Fast shading presentation update on setting color, material and transparency for AIS_Shape:
- Iterate through all groups not only last one.
- Iterate through all presentation (to change presentations in all viewers).

Added test cases bugs/vis/bug2883_1 and bugs/vis/bug2883_2

9 years ago0006897: Impossible to change edge line type in 3D View
aba [Thu, 22 May 2014 13:29:57 +0000 (17:29 +0400)]
0006897: Impossible to change edge line type in 3D View

Added command vsetedgetype; added test case bugs/vis/bug6897 to test edge type management.
vunsetedgetype DRAW command was added and test case was updated.
added -force option to set edge type commands to force redisplay.
Otherwise  primitive aspects are updated without object redisplaying.

9 years ago0024430: vviewlist draw command does not added name of viewer created by XShow draw...
kgv [Thu, 22 May 2014 13:26:26 +0000 (17:26 +0400)]
0024430: vviewlist draw command does not added name of viewer created by XShow draw command

Remove ViewerTest_Tool, keep only one unified way to create viewer using ViewerTest - ViewerTest::ViewerInit().
Remove test case bugs/vis/buc60851 and command BUC60851.
Added test case bugs/xde/bug24430

9 years ago0024933: Inconsistent results of self-interferences checker in SALOME and DRAW Applic...
pkv [Thu, 22 May 2014 13:24:17 +0000 (17:24 +0400)]
0024933: Inconsistent results of self-interferences checker in SALOME and DRAW Applications.

class BOPAlgo_CheckerSI
   - methods:
void BOPAlgo_CheckerSI::Perform()

class BOPAlgo_ArgumentAnalyzer
   - methods:
void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences()

The changes have been done to provide the consistence
between results in SALOME Application and DRAW Application

The sytax of the command "bopcheck" has been changed:
bopcheck Shape [level of check: 0 - 9] [-t -s]
The options:
 -t - display elapsed CPU time
 -s - run in serial (non-parallel) mode. The default mode is parallel.

Modified test cases bugs/modalg_5/bug24029 and bugs/modalg_5/bug24764 according to changed output format of the "bopcheck" command.

9 years ago0024885: Getting rid of "TKAdvTools" toolkit
dln [Thu, 22 May 2014 13:20:38 +0000 (17:20 +0400)]
0024885: Getting rid of "TKAdvTools" toolkit

"TKAdvTools" toolkit was deleted.
And packages from this toolkit were:
- GraphDS -> deleted
- GraphTools -> moved to WOK
- Dynamic -> deleted
- Materials -> deleted
- Expr -> moved to TKMath
- ExprIntrp -> moved to TKMath
- TKAdvTools -> deleted
All references of the "TKAdvTools" toolkit were removed

9 years ago0024509: Suspect unused variable in TPrsStd_ConstraintTools.cxx
aba [Thu, 22 May 2014 13:13:04 +0000 (17:13 +0400)]
0024509: Suspect unused variable in TPrsStd_ConstraintTools.cxx

- AIS_TypeOfDist is not used for length dimension construction;
- Added opportunity to build TPrsSrd length constraint on one edge.
- length dimension in TPrsStd_ConstraintTool is build on one or two shapes, but not on three.
Added validation of dimension plane.
Warnings were corrected.

9 years ago0024024: Slow import of specific STEP data
ika [Thu, 22 May 2014 13:09:07 +0000 (17:09 +0400)]
0024024: Slow import of specific STEP data

Add using bounding boxes to accelerating of import
Replace Map of bounding boxes with array.
fix cosmetic mistake
Improving check for periodic cases.

9 years ago0024880: Invalid result of pipe creation
jgv [Thu, 22 May 2014 13:03:34 +0000 (17:03 +0400)]
0024880: Invalid result of pipe creation

Modified test case bugs/modalg_5/bug24840 according to new behavior. Added checkshape.

9 years ago0024924: ShapeFix_SplitTool doesn't verify the new range after cutting an edge
razmyslovich [Wed, 14 May 2014 15:20:14 +0000 (17:20 +0200)]
0024924: ShapeFix_SplitTool doesn't verify the new range after cutting an edge

Validate the new cut range before setting it to edge

9 years ago0024922: ShapeAnalysis_Wire::CheckIntersectingEdges doesn't report an intersection...
razmyslovich [Wed, 14 May 2014 11:30:02 +0000 (13:30 +0200)]
0024922: ShapeAnalysis_Wire::CheckIntersectingEdges doesn't report an intersection point if it is inside of tolerance even only on edge

Fix the tolerances check for an intersection point in ShapeAnalysis_Wire::CheckIntersectingEdges

9 years ago0024921: ShapeAnalysis_Curve::ValidateRange doesn't adjust the range for periodic...
razmyslovich [Wed, 14 May 2014 11:16:16 +0000 (13:16 +0200)]
0024921: ShapeAnalysis_Curve::ValidateRange doesn't adjust the range for periodic curves

Fix the sequence of conditional checks and always try to adjust the range for periodic curves

9 years ago0024919: ShapeFix can crash time-to-time due to inproper interator handling inside...
razmyslovich [Wed, 14 May 2014 10:28:15 +0000 (12:28 +0200)]
0024919: ShapeFix can crash time-to-time due to inproper interator handling inside of Approx_SameParameter::Build function

Check inter variable to be inside of the desired range

9 years agoAdded TODO in unstable test case.
apn [Fri, 16 May 2014 10:15:54 +0000 (14:15 +0400)]
Added TODO in unstable test case.

9 years agoChenge extension of shape in test case bugs/moddata_3/bug24800
apn [Fri, 16 May 2014 10:15:11 +0000 (14:15 +0400)]
Chenge extension of shape in test case bugs/moddata_3/bug24800

9 years agoIncrease cpulimits in test cases (for debug mode).
apn [Fri, 16 May 2014 10:14:27 +0000 (14:14 +0400)]
Increase cpulimits in test cases (for debug mode).

9 years ago0024855: Revision of parameters of standard materials
dbp [Wed, 30 Apr 2014 11:14:17 +0000 (15:14 +0400)]
0024855: Revision of parameters of standard materials

Improve consistency and visual appearance of predefined OCCT materials in various rendering modes, including ray-tracing:
- Increase the specular exponents (shininesses) for metallic surfaces: Brass, Bronze, Copper, Gold, Pewter, Silver, Steel, Chrome, Aluminum.
- Revise specular colors for metals: Copper, Gold, Aluminum, Silver (according to "Real-Time Rendering, 3rd Edition", AK Peters 2008).
- Increase diffuse reflection of metals: Silver, Aluminum, Chrome (to make them brighter in OpenGL mode).
- Extend Material definition by Refraction Index.
  Advanced rendering methods based on shaders or ray-tracing can utilize it to produce refraction effects.

In addition:
- Introduce three translucent materials: Water, Glass, and Diamond.
- Add Charcoal for modeling dark diffuse surfaces.

Add new TCL-based sample (materials.tcl) and test case (tests/v3d/materials/bug24855).

9 years ago0024854: Merge of Technical Overview from opencascade.org site into the documentation
ysn [Thu, 17 Apr 2014 12:36:11 +0000 (16:36 +0400)]
0024854: Merge of Technical Overview from opencascade.org site into the documentation

The Technical overview has been reviewed and extended:
with the sections (and other pieces of text) present on org, but missing in the documentation, most important:
  - Extended Data exchange
  - Sewing
  - Mesh
with more inter-page links reproducing left-column "more about" links
some images from site, mostly in "Data Exchange" Section.

9 years ago0024896: BRepExtrema is giving wrong intersection point between curve and planar...
ifv [Thu, 15 May 2014 13:53:58 +0000 (17:53 +0400)]
0024896: BRepExtrema is giving wrong intersection point between curve and planar face

Added test case bugs/moddata_3/bug24896. Modified unstable test cases and increased cpu limit in bugs/modalg_5/bug24190.

9 years ago0024899: Time of computation of intersection points with help of class BRepIntCurveSu...
gka [Thu, 15 May 2014 13:52:43 +0000 (17:52 +0400)]
0024899: Time of computation of intersection points with help of class BRepIntCurveSurface_Inter is big.

Sorting by intersection of bounding boxes of faces with line or box built for curve was added.
Recursive call method Find() was replaced on sequential call.
Added method Init  to initialize algorithm by separate curve for intersection of shape by multiple curves.
Added possibility to intersect shape by multiple curves in DRAW command.

Added test case bugs/modalg_5/bug24899

9 years ago0024608: Development of methods of global optimization of multivariable function
aml [Tue, 15 Apr 2014 06:36:52 +0000 (10:36 +0400)]
0024608: Development of methods of global optimization of multivariable function

math_GlobOptMin - new global optimization minimization algorithm
Extrema_GlobOptFuncCC, Extrema_ExtCC, Extrema_ExtCC2d - implementation of GlobOptMin algorithm to extrema curve / curve
Extrema_CurveCache - deleted as obsolete code
ChFi3d_Builder.cxx  - fixed processing of extrema
math_NewtonMinimum.cxx - fixed step to avoid incorrect behavior
Test cases modification to meet new behavior.

9 years ago0024841: Remove duplicated and/or unused instances of collections
abv [Wed, 23 Apr 2014 08:45:31 +0000 (12:45 +0400)]
0024841: Remove duplicated and/or unused instances of collections

Removed duplicated instantiations of TCollection classes:
- BRepMAT2d_SequenceOfBasicElt: duplicates MAT_SequenceOfBasicElt
- BRepMesh_NodeHasherOfDataStructureOfDelaun, BRepMesh_IDMapOfNodeOfDataStructureOfDelaun: not used
- QADNaming_DataMapOfShapeOfName: duplicates DNaming_DataMapOfShapeOfName
- TDF_LabelLabelMap: not used
- Graphic3d_SequenceOfAddress: not used
- CDM_StackOfDocument: duplicates ListOfDocument (after fix on #24742)
- Draw_MapOfFunctions: duplicates Plugin_MapOfFunctions
- ExprIntrp_SkackOfNames: duplicates TColStd_ListOfAsciiString (after fix on #24742)
- in package Storage: (H)SeqOfPersistent, MapPSDHasher, (H)SeqOfCallback: not used

In addition, inheritance of MeshVS_ColorHasher from TColStd_MapIntegerHasher is dropped as it is useless but leads to problems if TColStd_MapIntegerHasher is converted to template.
First of the two overloaded functions Draw::Load() removed as it is unused.
Removed unused classes and files from PCollection and related packages.

9 years ago0024907: Compilation fails on vc12 (VS2013)
kgv [Thu, 8 May 2014 07:38:55 +0000 (11:38 +0400)]
0024907: Compilation fails on vc12 (VS2013)

Include <algorithm> when needed.

9 years ago0024913: BRepOffsetAPI_ThruSections::CreateSmoothed contains unused declaration of...
abv [Mon, 12 May 2014 05:39:07 +0000 (09:39 +0400)]
0024913: BRepOffsetAPI_ThruSections::CreateSmoothed contains unused declaration of GeomFill_SectionGenerator

Unused local variable deleted

9 years ago0024912: Remove unused Graphic3d_Strips
kgv [Tue, 13 May 2014 18:25:11 +0000 (22:25 +0400)]
0024912: Remove unused Graphic3d_Strips

9 years ago0024914: Micro edge is created during Boolean Operations
pkv [Thu, 15 May 2014 13:45:46 +0000 (17:45 +0400)]
0024914: Micro edge is created during Boolean Operations

class IntAna_QuadQuadGeo
The changes have been done to provide the treatment the cases
when the value of the angle between the planes is small and
the origin of intersection line should be refined.

class IntTools_FaceFace
The changes have been done to provide the treatment of faces
in cases when both are based on planar surfaces.
The UV-bounds have been extended to provide correct solutions
as it has been done for all other cases with plane-based faces.

Added test case bugs/modalg_5/bug24914
Modified length of result shape in test case bugs/modalg_1/bug10232

9 years ago0024916: Use custom-built Tcl instead of ActiveTcl distribution
abv [Thu, 15 May 2014 13:43:28 +0000 (17:43 +0400)]
0024916: Use custom-built Tcl instead of ActiveTcl distribution

Added instructions for building Tcl/Tk from sources
Remove Overview.md (artifact or changing case on Windows)
Correction of misprints in the documentation.

9 years agoRemoving file duplicate
bugmaster [Thu, 15 May 2014 13:23:14 +0000 (17:23 +0400)]
Removing file duplicate

9 years ago0024873: Draw Harness, ViewerTest - add command vbounding to show presentation boundi...
kgv [Thu, 8 May 2014 08:57:03 +0000 (12:57 +0400)]
0024873: Draw Harness, ViewerTest - add command vbounding to show presentation bounding box

Test cases for issue CR24873
findPresentation() - fix wrong type of the argument

9 years ago0024799: [regression] BRepAlgoAPI_Common returns empty result
emv [Tue, 29 Apr 2014 10:07:16 +0000 (14:07 +0400)]
0024799: [regression] BRepAlgoAPI_Common returns empty result
To track the modification of the source vertices, the new vertices, created in PostTreatFF, have been added to myShapesSD map.

9 years ago0024893: CLang warnings -Wlogical-not-parentheses for gce_Done comparisons
abv [Sat, 3 May 2014 04:58:18 +0000 (08:58 +0400)]
0024893: CLang warnings -Wlogical-not-parentheses for gce_Done comparisons

Incorrect comparison in condition within RiseIf macro fixed

9 years ago0024892: AIS_TexturedShape::ShowTriangles overloads mismatch
kgv [Mon, 5 May 2014 05:13:57 +0000 (09:13 +0400)]
0024892: AIS_TexturedShape::ShowTriangles overloads mismatch

9 years ago0024829: sprops with precision throws an exception
nbv [Thu, 8 May 2014 07:53:41 +0000 (11:53 +0400)]
0024829: sprops with precision throws an exception

Reason of exception is reading nonexistent element of array.

Test case for issue CR24829

9 years ago0024894: TKOpenGl - refactor OpenGl_FrameBuffer and OpenGl_Texture classes.
osa [Mon, 5 May 2014 12:10:00 +0000 (16:10 +0400)]
0024894: TKOpenGl - refactor OpenGl_FrameBuffer and OpenGl_Texture classes.

9 years ago0024877: GCC 4.4.5 compiler warnings on Debian when OCCT is bult using CMake
abv [Mon, 28 Apr 2014 13:12:27 +0000 (17:12 +0400)]
0024877: GCC 4.4.5 compiler warnings on Debian when OCCT is bult using CMake

Warnings fixed

9 years ago0024882: Visualization - default orientation is ignored
kgv [Tue, 29 Apr 2014 14:44:21 +0000 (18:44 +0400)]
0024882: Visualization - default orientation is ignored

Restore lines removed from V3d_View constructors.

9 years ago0024867: Visualization - polygon offsets look broken
duv [Thu, 8 May 2014 07:39:02 +0000 (11:39 +0400)]
0024867: Visualization - polygon offsets look broken

If specific layer setting is not enabled, default value extracted from current OpenGl state will be used.
Default value fix.
Updated test case bugs/vis/bug24867
Linux warning fixed.

9 years ago0024869: OCAF testing framework extending
szy [Thu, 8 May 2014 07:35:35 +0000 (11:35 +0400)]
0024869: OCAF testing framework extending

OCAF testing framework extending.
Test case for issue CR24869

9 years ago0023804: Visualization - unexpected color modulation during texture mapping
dbp [Thu, 8 May 2014 07:26:39 +0000 (11:26 +0400)]
0023804: Visualization - unexpected color modulation during texture mapping

AIS_TexturedShape - use material set to the Drawer, not default undefined one

Test case for issue CR23804

9 years ago0024742: Remove rarely used collection classes: Set
dln [Tue, 8 Apr 2014 08:55:04 +0000 (12:55 +0400)]
0024742: Remove rarely used collection classes: Set

Classes NCollection_Set and NCollection_HSet removed as unused (along with NCollection_DefineSet.hxx and NCollection_DefineHSet.hxx).

Classes TCollection_Set and TCollection_HSet removed (along with TCollection_SetIterator and TCollection_SetList nested classes).
Code previously using Set classes updated to equivalent use of Sequence (Adaptor3d and Visual3d packages) or TColStd_PackedMapOfInteger (BRepAlgo package).

In Adaptor3d_CurveOnSurface, calculation of continuity intervals refactored so as to build and store sorted sequence of reals, instead of collecting them to set, copying to array, and then sorting.

9 years ago0024742: Remove rarely used collection classes: Stack
dln [Tue, 8 Apr 2014 10:22:56 +0000 (14:22 +0400)]
0024742: Remove rarely used collection classes: Stack

Generic class TCollection_Stack removed (along with TCollection_StackIterator and TCollection_StackNode).

Code using TCollection_Stack changed to equivalent use of TCollection_List (replacing Push -> Prepend, Top -> First, Pop -> RemoveFirst).

9 years ago0024742: Remove rarely used collection classes: SList
dln [Tue, 8 Apr 2014 10:21:26 +0000 (14:21 +0400)]
0024742: Remove rarely used collection classes: SList

Generic "TCollection_SList" class and nested "TCollection_SListNode" class moved (as non-generic) to the "TopLoc" package (the only place where they were instantiated).
Names of these classes changed to "TopLoc_SListOfItemLocation" and "TopLoc_SListNodeOfItemLocation".

"NCollection_SList" class removed as unused (along with NCollection_DefineSList.hxx).

9 years ago0024742: Remove rarely used collection classes: Queue
dln [Fri, 4 Apr 2014 09:15:11 +0000 (13:15 +0400)]
0024742: Remove rarely used collection classes: Queue

Generic "TCollection_Queue" class removed (along with "TCollection_QueueNode" and three instantiations in TColStd). Template class TCollection_Queue removed.

The code using queue classes converted to use lists for the same purpose (replacing Push -> Append, Front -> First, Pop -> RemoveFirst). In OpenGl_Context, list is used as stack instead of queue, for it looks more natural for release of resources (last allocated - first released).

9 years ago0024742: Remove rarely used collection classes
dln [Tue, 8 Apr 2014 06:22:02 +0000 (10:22 +0400)]
0024742: Remove rarely used collection classes

"TCollection_Array1Descriptor" and "TCollection_Array2Descriptor" classes were removed as unused.

9 years ago0024847: CLang warnings -Wdeprecated-writable-strings in OpenGl_Display
kgv [Wed, 30 Apr 2014 09:38:50 +0000 (13:38 +0400)]
0024847: CLang warnings -Wdeprecated-writable-strings in OpenGl_Display

Remove obsolete properties, remove OpenGl_Display class.
Fix compilation on Linux

9 years ago0024858: Convert class V3d_ListOfTransient to non-CDL
abv [Tue, 22 Apr 2014 12:45:16 +0000 (16:45 +0400)]
0024858: Convert class V3d_ListOfTransient to non-CDL

Class V3d_ListOfTransient converted to non-CDL form (pure HXX)

9 years ago0024513: Suspicious code highlighted by 0024510
aml [Wed, 16 Apr 2014 06:42:28 +0000 (10:42 +0400)]
0024513: Suspicious code highlighted by 0024510

Blend_Walking_1: value returned by TestArret() deleted.
IntTools_EdgeFace: deleted redundant parameter ff2 and anIsProj2 associated with ff2, since ff2 = !ff1. Refactoring.
ProjLib_ProjectedCurve: treatment of surface of revolution is symmetric for surface of revolution now. Refactoring.

9 years ago0024157: Parallelization of assembly part of BO
pkv [Tue, 22 Apr 2014 07:16:46 +0000 (11:16 +0400)]
0024157: Parallelization of assembly part of BO

The branch deals with the parallelization of Post-Treatment part of the Builder

9 years ago0024884: expand the list of short compiler names in CMake meta-project
abv [Wed, 30 Apr 2014 08:18:33 +0000 (12:18 +0400)]
0024884: expand the list of short compiler names in CMake meta-project

List of compiler short names expanded (added: gcc, gxx, mingw, clang, intel); generation of install folder name is corrected to include compiler name without spaces even if short name is not recognized.

Tcl search was fixed (tcl8.6 has higher priority than tcl or tcl8.5);
Search for fb2build.h of freetype 2.5.1 was corrected

THRDPARTY_PATH is included into LD_LIBRARY_PATH

9 years ago0024707: Problem building C# sample win VC 10
abv [Tue, 29 Apr 2014 06:06:21 +0000 (10:06 +0400)]
0024707: Problem building C# sample win VC 10

Need to check and correct Target Framework in C# projects after conversion to new versions of Visual Studio described in the sample documentation

9 years ago0024347: problem by tolerance of the distance of Face and Vertex
apn [Mon, 28 Apr 2014 11:24:34 +0000 (15:24 +0400)]
0024347: problem by tolerance of the distance of Face and Vertex

Added test case bugs/modalg_5/bug24347

9 years ago0024811: Intersection is insufficient
apn [Mon, 28 Apr 2014 11:15:42 +0000 (15:15 +0400)]
0024811: Intersection is insufficient

Added test case bugs/modalg_5/bug24811

9 years ago0024496: Crash on BRepAlgoAPI_Section
apn [Mon, 28 Apr 2014 11:10:50 +0000 (15:10 +0400)]
0024496: Crash on BRepAlgoAPI_Section

Added test case bugs/modalg_5/bug24496

9 years ago0024629: Possibility to install binaries in vc*/bin(d), vc*/lib(d) directories
ibs [Mon, 28 Apr 2014 14:52:21 +0000 (18:52 +0400)]
0024629: Possibility to install binaries in vc*/bin(d), vc*/lib(d) directories

Install occt folder now can contain several occt configurations

- custom.bat/sh was added to include specific (for each occt config) custom.bat/sh files
- specific custom.bat/sh is added for each configuration (e.g., custom_vc9_win32_d.bat), generated by cmake and included within custom.bat/sh
- draw.bat has three argument, e.g., vc9 win32 debug (as occt behavior)
- sample.bat has one or four arguments, e.g., sample_name vc8 win64 release
- PATH is not changed. DRAWEXE.exe is called from specific folder

patched custom.[bat/sh].[main/in] files have higher priority than origin ones

Documentation was updated to describe new features of CMake

Seeking process of OpenCL include folder was fixed

9 years ago0024810: "Patch" feature should be introduced in OCC CMake building procedure
ibs [Thu, 17 Apr 2014 12:57:28 +0000 (16:57 +0400)]
0024810: "Patch" feature should be introduced in OCC CMake building procedure

BUILD_PATCH_DIR variable added
patched source/project files have higher priority to be included than origin source files

9 years agoIncrementation of OCCT version up to 6.7.2 dev
bugmaster [Tue, 29 Apr 2014 09:47:40 +0000 (13:47 +0400)]
Incrementation of  OCCT version up to 6.7.2 dev

9 years agoUpdate of testing cases for debug mode and MacOS
mkv [Fri, 25 Apr 2014 10:32:32 +0000 (14:32 +0400)]
Update of testing cases for debug mode and MacOS

9 years ago0024218: ShapeFix_Face requires double execution to produce valid shape when FixSplit...
ika [Thu, 24 Apr 2014 12:31:26 +0000 (16:31 +0400)]
0024218: ShapeFix_Face requires double execution to produce valid shape when FixSplitFaceMode is in effect

Test case for issues CR24218

9 years ago0024834: Allocation of memory for exception message must not throw another exception
msv [Thu, 24 Apr 2014 12:25:08 +0000 (16:25 +0400)]
0024834: Allocation of memory for exception message must not throw another exception

- Add QA draw command OCC24834
- Make functions allocate_message/deallocate_message use malloc/free instead of operator new/delete
- Eliminate compilation error on Linux

Test case for issue CR24834

9 years ago0024376: BMP image cannot be read
mkv [Wed, 23 Apr 2014 10:34:04 +0000 (14:34 +0400)]
0024376: BMP image cannot be read

Test case for issues CR24376

9 years ago0024852: Crash on storage of an Ocaf document in XML file format
vro [Thu, 17 Apr 2014 11:56:55 +0000 (15:56 +0400)]
0024852: Crash on storage of an Ocaf document in XML file format

Blanks are removed.
A check is implemented to correct a GUID in case of presence of the blanks.

Test case for issues CR24852

9 years ago0024842: Crash on change of HLR-algo in top and bottom views of customer's shape
jgv [Wed, 16 Apr 2014 11:55:09 +0000 (15:55 +0400)]
0024842: Crash on change of HLR-algo in top and bottom views of customer's shape

Test cases for issues CR24842

9 years ago0024861: Extra solid is in the result of General Fuse Operation
pkv [Mon, 21 Apr 2014 11:54:03 +0000 (15:54 +0400)]
0024861: Extra solid is in the result of General Fuse Operation

I. New features:
No new features.

II. Changes:
II.1. class BOPAlgo_ShellSplitter
   - statc function:
void RefineShell(TopoDS_Shell& theShell);
has been addded.
The function provides splitting connexity block of faces when the block begins with
the face that is intended to be internal.

II.2. class BOPAlgo_ShellSplitter
   - statc function:
Standard_Boolean IsClosedShell(const TopoDS_Shell& theShell);
has been modified to process empty shells.

II.3. class BOPAlgo_ShellSplitter
   - method:
void BOPAlgo_ShellSplitter::SplitBlock(BOPTools_ConnexityBlock& aCB);
has been modified to process connexity blocks of faces when the block
begins with the face that is intended to be internal [ II.1 ].

III. Modified entities:
packages:
BOPAlgo

Test case for issue CR24861

9 years ago0024857: CLang warnings -Wunused-function
ski [Fri, 18 Apr 2014 11:15:21 +0000 (15:15 +0400)]
0024857: CLang warnings -Wunused-function

Unused functions were removed.

9 years ago0024798: Boolean operation CUT produces incorrect result
emv [Mon, 14 Apr 2014 11:52:02 +0000 (15:52 +0400)]
0024798: Boolean operation CUT produces incorrect result

Face classifier has been used to check adjustment of 2d curve for the face.

Test case for issue CR24798

9 years ago0024853: CLang warnings -Wunused-const-variable
ski [Thu, 17 Apr 2014 09:41:11 +0000 (13:41 +0400)]
0024853: CLang warnings -Wunused-const-variable

Unused variables were removed.

9 years ago0024840: Exception in BRepOffsetAPI_MakePipe
jgv [Mon, 21 Apr 2014 11:47:53 +0000 (15:47 +0400)]
0024840: Exception in BRepOffsetAPI_MakePipe

Test cases for issues CR24840 and CR24849

9 years ago0024845: CLang warnings -Wunused-variable
ski [Thu, 17 Apr 2014 11:48:25 +0000 (15:48 +0400)]
0024845: CLang warnings -Wunused-variable
Unused variables were removed.

9 years ago0024800: Point of intersection was not found for 2d offset curve.
gka [Thu, 10 Apr 2014 11:45:18 +0000 (15:45 +0400)]
0024800: Point of intersection was not found for 2d offset curve.

For fix this case in method Geom2dInt_Geom2dCurveTool::NBSamples() number of samples for 2d offset and trimmed curve is computed as max value from number of samples for other curve and number of samples for basis curve.

Test case for issue CR24800

9 years ago0024827: Incorrect result of projection of an edge on a face
mkv [Tue, 22 Apr 2014 12:19:26 +0000 (16:19 +0400)]
0024827: Incorrect result of projection of an edge on a face

Test cases for issue CR24827

9 years ago0024814: Avoid using explicit names of Handle classes
abv [Wed, 9 Apr 2014 14:48:28 +0000 (18:48 +0400)]
0024814: Avoid using explicit names of Handle classes

Sources corrected replacing Handle_XXX by Handle(XXX)

10 years ago0024856: CLang warnings -Wunused-private-field
ski [Fri, 18 Apr 2014 11:02:41 +0000 (15:02 +0400)]
0024856: CLang warnings -Wunused-private-field

Actual warnings were fixed.

10 years ago0024843: CLang warnings -Wconstant-logical-operand
ski [Thu, 17 Apr 2014 15:16:58 +0000 (19:16 +0400)]
0024843: CLang warnings -Wconstant-logical-operand

Logical expression is corrected to take into account input argument

10 years ago0024823: Hang up in "bopcheck" command
emv [Thu, 17 Apr 2014 15:14:50 +0000 (19:14 +0400)]
0024823: Hang up in "bopcheck" command

Modifications:
class IntTools_EdgeEdge
 1. method
   Standard_Boolean IntTools_EdgeEdge::FindParameters(
      const BRepAdaptor_Curve& theB
      const Standard_Real aT1,
      const Standard_Real aT2,
      const Standard_Real theRes,
      const Standard_Real thePTol,
      const Bnd_Box& theCBox,
      Standard_Real& aTB1,
      Standard_Real& aTB2)

   Added protection for large values of parameters of the edges.

 2. methods
    static Standard_Boolean BndCommon(const Bnd_Box& theB1,
                                      const Bnd_Box& theB2,
                                      Bnd_Box& theBOut)
   and
    IntTools_EdgeEdge::FindSolutions()

   have been removed as redundant.

Test case for issue CR24823

10 years ago0024844: Wrong result of Boolean Cut operation.
emv [Thu, 17 Apr 2014 15:03:12 +0000 (19:03 +0400)]
0024844: Wrong result of Boolean Cut operation.

Small correction in intersection between Cone and Torus with collinear axes.

Test case for issue CR24844

10 years ago0024793: Documentation of methods using BRepFill_TypeOfContact has to be updated...
jgv [Thu, 17 Apr 2014 09:44:16 +0000 (13:44 +0400)]
0024793: Documentation of methods using BRepFill_TypeOfContact has to be updated according to changes introduced in OCCT 6.7.0

10 years ago0024846: CLang warnings -Wunneeded-internal-declaration
ski [Wed, 16 Apr 2014 13:34:07 +0000 (17:34 +0400)]
0024846: CLang warnings -Wunneeded-internal-declaration

Unused function was removed.

10 years ago0024820: CLang compiler warning -Wreturn-stack-address
emv [Tue, 15 Apr 2014 12:07:02 +0000 (16:07 +0400)]
0024820: CLang compiler warning -Wreturn-stack-address
The signature of the function BOPDS_DS::CommonBlock(const Handle(BOPDS_PaveBlock)& thePB)
has been changed to return handle, not a reference to handle.

10 years ago0024818: CLang warnings -Wlogical-not-parentheses
ski [Wed, 16 Apr 2014 11:59:21 +0000 (15:59 +0400)]
0024818: CLang warnings -Wlogical-not-parentheses

CLang warnings -Wlogical-not-parentheses were fixed.

10 years agoDeleted TODO in test case de/step_3/E6 regarding to issue 24249.
apn [Fri, 18 Apr 2014 10:41:47 +0000 (14:41 +0400)]
Deleted TODO in test case de/step_3/E6 regarding to issue 24249.

10 years agoDeleted unnecessary TODOs in test cases with improvements on MacOS platform. Small...
apn [Fri, 18 Apr 2014 10:37:15 +0000 (14:37 +0400)]
Deleted unnecessary TODOs in test cases with improvements on MacOS platform. Small corrections of test cases for MacOS.

10 years ago0024406: Visualization - crash on re-usage of the same primitive array
kgv [Thu, 17 Apr 2014 14:01:04 +0000 (18:01 +0400)]
0024406: Visualization - crash on re-usage of the same primitive array

Redesign Graphic3d_ArrayOfPrimitives
Store vertices data in buffer objects managed using smart-pointers
- no more low-level memory corruption by memory releasing after VBO creation.
Remove broken hasEdgeInfos.

Interleave vertex attributes (position, color, normal, uv) in single buffer.
Remove from Graphic3d_ArrayOfPrimitives methods ::Orientate().
Remove structures Graphic3d_PrimitiveArray, CALL_DEF_PARRAY.
Add support for 2D vertex arrays.

Graphic3d_Group - remove array or primitive arrays.
Introduce more universal method Graphic3d_Group::AddPrimitiveArray().

Fix warning

10 years ago0024851: Extra vertex is in the result of Boolean Fuse Operation
pkv [Thu, 17 Apr 2014 12:22:10 +0000 (16:22 +0400)]
0024851: Extra vertex is in the result of Boolean Fuse Operation

class IntTools_FaceFace
   - statc function:
void CorrectSurfaceBoundaries(const TopoDS_Face&  theFace,
                              const Standard_Real theTolerance,
                              Standard_Real&      theumin,
                              Standard_Real&      theumax,
                              Standard_Real&      thevmin,
                              Standard_Real&      thevmax)
The faces based on cylidrical surface has been added to the list of candidates to extend the boundaries

Test case for issue CR24851

10 years ago0024822: Solve selection fails after copying
vro [Thu, 17 Apr 2014 12:18:38 +0000 (16:18 +0400)]
0024822: Solve selection fails after copying

The method ::Paste() copies myIndex now.
Test case for issue CR24822

10 years ago0024249: Crash on ShapeFix_Shape
ibs [Thu, 17 Apr 2014 12:16:36 +0000 (16:16 +0400)]
0024249: Crash on ShapeFix_Shape

MAIN CHANGES:
FixAddNaturalBound: the boundaries of "natural bound addition" are restricted: a face, that does not contains an outer wire, should not have any infinite UV boundaries due to new face building (with using a surface) requires specified UV boundaries.
FixAddNaturalBound: myResult is updated in FixAddNaturalBound when the method creates a new face with natural boundary. myResult is required to be updated for next "fix small-area wires" algorithm
IsPeriodicConicalLoop: incorrect working BRepTools_WireExplorer was replaced on TopoDS_Iterator.
a natural bound is added to all the faces are constructed with UV-periodical surfaces (not only sphere and torus; e.g., closed b-splines)

other:
ShapeAnalysis: ReverceSeq renamed to ReverseSeq
BRep_Tool Pnt and Tolerance has the check for null TShape
Test cases for issue CR24249

required null checks were added
test cases were corrected according to their new behavior
Correction test case for issue CR24249

10 years ago0024775: False detecting of intersection in BRepMesh_Classifier class.
azn [Thu, 17 Apr 2014 12:12:49 +0000 (16:12 +0400)]
0024775: False detecting of intersection in BRepMesh_Classifier class.

Increased checking accuracy of endpoints touching of segments.
Code formatting improvement.
Test case for issue CR24775
Correction test case for issue CR24775

10 years ago0024848: CLang warnings -Wunused-value
ski [Wed, 16 Apr 2014 14:16:33 +0000 (18:16 +0400)]
0024848: CLang warnings -Wunused-value

Warning should be fixed.

10 years ago0024639: Parallelization FillDS part of BO
pkv [Tue, 15 Apr 2014 03:19:00 +0000 (07:19 +0400)]
0024639: Parallelization FillDS part of BO

The contents dealing with:
Parallel computation of Face/Face interferences;
Parallel computation of Edge/Edge interferences (Post-Treatment Level);
Parallel intersection of bounding boxes (BOPDS_Iterator Level).

10 years ago0024825: Fit Boolean Operation Algorithm to treat multiple arguments.
pkv [Thu, 17 Apr 2014 12:04:29 +0000 (16:04 +0400)]
0024825: Fit Boolean Operation Algorithm to treat multiple arguments.

class BOPTest
class BOPAlgo_BOP
class BOPAlgo_Builder
class BOPTest
class BRepFeat_Builder
class BRepFeat_MakeCylindricalHole

The format of the command has been changed:
bbop r op [-s -t]
The following options has been added:
-s - run in serial mode
-t  - print the CPU time

Test cases for issue CR24825

10 years ago0024821: CLang warning -Wunsequenced in StdSelect_ViewerSelector3d
kgv [Thu, 10 Apr 2014 12:16:27 +0000 (16:16 +0400)]
0024821: CLang warning -Wunsequenced in StdSelect_ViewerSelector3d

10 years ago0024805: Eliminate unused static functions and methods: ShallowDump(), ShallowCopy...
abv [Fri, 11 Apr 2014 09:59:41 +0000 (13:59 +0400)]
0024805: Eliminate unused static functions and methods: ShallowDump(), ShallowCopy(), STANDARD_TYPE(...)

Implementation of global functions STANDARD_TYPE() for types not inheriting Standard_Transient or Standard_Persistent are eliminated.

Global functions and class methods ShallowCopy() are removed; also removed unused classes Visual3d_PickPath and Visual3d_PickDescriptor.

Global functions and class methods ShallowDump() are removed, except for classes Standard_GUID, TopLoc_Datum, and TopLoc_Location as the latter are still used in some Debug printouts.

10 years ago0024785: Visualization - Modifying z-layers concept to gain more control over OpenGl...
duv [Thu, 17 Apr 2014 11:56:41 +0000 (15:56 +0400)]
0024785: Visualization - Modifying z-layers concept to gain more control over OpenGl depth buffer.

Cosmetic fixes.
glDepthFunc fix.

10 years ago0024649: Update user's guide for Boolean operations
ysn [Mon, 31 Mar 2014 07:09:22 +0000 (11:09 +0400)]
0024649: Update user's guide for Boolean operations

New User's Guide on Boolean operations added.

10 years ago0024578: Typos in Developer Guide "Building OCCT from sources"
ysn [Tue, 1 Apr 2014 11:53:48 +0000 (15:53 +0400)]
0024578: Typos in Developer Guide "Building OCCT from sources"

Dev guides for building 3rd party products and "short guide" to WOK have been reviewed.