occt.git
8 years ago0026941: Building on Windows with VC14 - debug info is generated for Release build
abv [Sun, 14 Feb 2016 04:33:18 +0000 (07:33 +0300)]
0026941: Building on Windows with VC14 - debug info is generated for Release build

Generation of debug info is explicitly disabled on link step in templates of Visual Studio 10+ project files used by genproj, to avoid relying on default settings of Visual Studio.

8 years ago0027086: Samples, jniviewer - avoid duplicating viewer redraws
kgv [Mon, 18 Jan 2016 09:57:23 +0000 (12:57 +0300)]
0027086: Samples, jniviewer - avoid duplicating viewer redraws

8 years ago0026939: Configuration, NCollection_UBTreeFiller - do not use _REENTRANT in a header...
kgv [Fri, 22 Jan 2016 12:55:55 +0000 (15:55 +0300)]
0026939: Configuration, NCollection_UBTreeFiller - do not use _REENTRANT in a header file

Use std::mt19937 random number generator instead of rand() in NCollection_UBTreeFiller.

boolean gdml_private ZI7 ZJ7 - TODO "bopcheck failed" is only for Linux now, checkshape faulty is unstable (issue #27052)
boolean volumemaker B6 - Added TODO (bopcheck and checkshape faulties)
boolean volumemaker C9 - Added TODO (checkprops and checkshape faulties)
boolean volumemaker D2 - Added TODO (checkshape faulty)
boolean volumemaker H4 - Added TODO (checkprops and checkshape faulties Linux only)
boolean volumemaker D5 - IMVPROVEMENT, TODOs were deleted (bopcheck and checkshape faulties)
bugs modalg_1 buc60462_2 - modified TODOs according to new behavior
boolean gdml_private ZI7 ZJ7 - unstable case, added check for surface area and TODO

samples/tcl/ANC101.tcl - amended due to changed order of edges in BOP result

8 years agoRevert "0026314: Method SetShape working not correctly."
abv [Tue, 16 Feb 2016 11:53:16 +0000 (14:53 +0300)]
Revert "0026314: Method SetShape working not correctly."

This reverts commit e2df45413ea1d506d911c6f29dacf42c80ca8a35.

8 years agoMerge between correction test case in issue 27119 and 26939
bugmaster [Fri, 12 Feb 2016 08:33:08 +0000 (11:33 +0300)]
Merge between correction test case in issue 27119 and 26939

8 years ago0027053: Compilation fails with "fatal error RC1103: invalid option, /fp:precise"
abv [Sun, 24 Jan 2016 06:28:08 +0000 (09:28 +0300)]
0027053: Compilation fails with "fatal error RC1103: invalid option, /fp:precise"

CMake script is corrected to add compiler options (except macro definitions) to CMAKE_CXX_FLAGS and CMAKE_C_FLAGS variables directly, instead of using add_definitions() command.
This eliminates failure of build by NMake due to incorrect options passed to RC compiler.

8 years ago0026260: Tcl scripts for MBB Gehause Rohteil and ANC101 to be added to Samples
ssv [Mon, 8 Feb 2016 07:43:54 +0000 (10:43 +0300)]
0026260: Tcl scripts for MBB Gehause Rohteil and ANC101 to be added to Samples

Two new sample scripts added, modeling classic shapes from used for comparing modeling systems in 1979 and again in 1983 by Computer Aided Manufacturing International (CAM-I).

8 years ago0027137: Visualization - handle shadow structures within V3d_View::Gravity()
kgv [Wed, 10 Feb 2016 13:19:20 +0000 (16:19 +0300)]
0027137: Visualization - handle shadow structures within V3d_View::Gravity()

OpenGl_StructureShadow - copy bounding box from parent structure.
Prs3d_PresentationShadow::CalculateBoundBox() - do nothing.

V3d_View::Gravity() - skip presentations with transformation persistence flags.
Use cached presentation bounding box.

8 years ago0027119: Regression: Draw command "incmesh" hangs on the attacheced face.
oan [Mon, 1 Feb 2016 14:20:37 +0000 (17:20 +0300)]
0027119: Regression: Draw command "incmesh" hangs on the attacheced face.

BRepMesh_CircleTool: extend radius of circle by quite small value in order to classify points forming inscribed triangle as lying on it. Do not use PConfusion due to false positive result leading algorithm to hanging.

Small correction in test cases bugs/mesh/bug27119

Update of test cases according to the new behavior:
bugs/moddata_1/bug22759
mesh/data/standard/M4

8 years ago0012042: Problem with standard Qt-based Import/Export sample application
apn [Tue, 9 Feb 2016 11:30:52 +0000 (14:30 +0300)]
0012042: Problem with standard Qt-based Import/Export sample application

Front and right views in OCCT CSharp/mfc/qt samples were swapped.

8 years ago0027145: Remove redundant usage of GetPercent procedure
ski [Tue, 9 Feb 2016 13:57:15 +0000 (16:57 +0300)]
0027145: Remove redundant usage of GetPercent procedure

Usage of GetPercent procedure was replaced by checkreal procedure.

8 years ago0027134: Offset algorithm produces an invalid shape from a cone
jgv [Wed, 10 Feb 2016 11:37:31 +0000 (14:37 +0300)]
0027134: Offset algorithm produces an invalid shape from a cone

Correction of test case for issue CR27134

8 years ago0027065: BRepOffsetAPI_MakePipe misses definition of virtual method Generated()
jgv [Thu, 4 Feb 2016 10:35:52 +0000 (13:35 +0300)]
0027065: BRepOffsetAPI_MakePipe misses definition of virtual method Generated()

Virtual method Generated() inherited from BRepPrimAPI_MakeSweep is overridden in class BRepOffsetAPI_MakePipe, providing information on shapes generated from the profile.

8 years ago0026333: Regression of BRepOffsetAPI_MakeOffset regarding to 6.7.0: it fails on a...
ski [Tue, 22 Dec 2015 13:59:20 +0000 (16:59 +0300)]
0026333: Regression of BRepOffsetAPI_MakeOffset regarding to 6.7.0: it fails on a shape with BSpline boundaries

Added test case

Small corrections for issue CR26333

8 years ago0027136: Visualization - skip void bounding box within SelectMgr_SelectableObjectTrsf...
kgv [Fri, 5 Feb 2016 10:12:36 +0000 (13:12 +0300)]
0027136: Visualization - skip void bounding box within SelectMgr_SelectableObjectTrsfPersSet::BVH()

8 years ago0026980: Intersection algorithm spends much system time and system memory
nbv [Mon, 8 Feb 2016 07:01:22 +0000 (10:01 +0300)]
0026980: Intersection algorithm spends much system time and system memory

1. Step of Walking-line has been increased as possible and now computes by iteratively adaptive algorithm (every iteration checks if current step is too big/small and decreases/increases one).

2. Interface of IntWalk_PWalking class has been changed
2.1. Method MaxStep() has been added in order to know about maximal distance between 2D-points.
2.2. Method ComputePasInit(...) has been added in order to initial step value computation.
2.3. Fields myTolTang (tolerance for intersection algorithm) and myStepMin (minimal step value) have been added.

Correction of some test cases.
Creation test case for this issue.
Changes to eliminate compiler warnings.

8 years ago0026415: <TFunction_GraphNode> XML should not break line in the middle of text.
abv [Mon, 1 Feb 2016 14:33:25 +0000 (17:33 +0300)]
0026415: <TFunction_GraphNode> XML should not break line in the middle of text.

Line break between "previous" and "next" ids is replaced by additional spaces (these facilitate visual separation of the two sub-lists).

8 years ago0027114: [Regression to 6.7] DistShapeShape does not find a solution edge-face
aml [Fri, 29 Jan 2016 06:11:46 +0000 (09:11 +0300)]
0027114: [Regression to 6.7] DistShapeShape does not find a solution edge-face

Extrema Curve / Surface algorithm changed to perform more accurate search.

test case bug25232_8 - improvement, one additional intersection point is detected now.
test case bug23830 - normal behavior, position of extrema is changed.

test case for original issue added.

8 years ago0027126: Create command checktrinfo to verify meshes
ski [Tue, 2 Feb 2016 14:14:15 +0000 (17:14 +0300)]
0027126: Create command checktrinfo to verify meshes

Command checktrinfo was created.
Test cases were updated to use command checktrinfo.

8 years ago0027120: Documentation for check commands
apn [Thu, 28 Jan 2016 13:14:23 +0000 (16:14 +0300)]
0027120: Documentation for check commands

Added documentation fot checkprops, checkdump and checklength commands.

Corrected line break in generated documentation.

8 years ago0027095: Configuration, CMake - configuration process finds tcl folder with incorrect...
ski [Wed, 3 Feb 2016 13:37:52 +0000 (16:37 +0300)]
0027095: Configuration, CMake - configuration process finds tcl folder with incorrect bitness for 32bit case

New pattern for seeking of 3rdparty products was added.

8 years ago0027063: BRepGProps raises exception on edge with no curves
ifv [Tue, 10 Dec 2013 11:40:40 +0000 (15:40 +0400)]
0027063: BRepGProps raises exception on edge with no curves

Method BRepGProp::LinearProperties() is corrected to treat not geometric edges (their length is zero). To avoid wrong working of command nexplode global properties are calculated as point properties of vertexes. Small value Epsilon(1.) is used as density of points. This prevents exception on shapes that contain such edges, e.g. copy of a wire containing degenerated edge.

Method BRep_Tool::IsGeometric() is optimized to avoid nested iteration for check of 3D curve for Null.
Small bug is fixed in GProp_PGProps.cxx

8 years ago0026833: Create command checkview containing all viewer types
ski [Wed, 27 Jan 2016 06:55:25 +0000 (09:55 +0300)]
0026833: Create command checkview containing all viewer types

Created command checkview for displaying shapes.

8 years ago0025574: gp_YawPitchRoll Euler Angle computation gives wrong results - warnings
abv [Fri, 5 Feb 2016 08:14:03 +0000 (11:14 +0300)]
0025574: gp_YawPitchRoll Euler Angle computation gives wrong results - warnings

Eliminate VC14 compiler warnings

8 years ago0027121: Configuration, CMake - build process does not use patched header files
ski [Thu, 28 Jan 2016 11:48:07 +0000 (14:48 +0300)]
0027121: Configuration, CMake - build process does not use patched header files

Corrected collecting of all headers to <binary dir>/inc folder

Small correction of documentation about CMake configuration process

8 years ago0027123: Visualization, TKOpenGl - fix environment texture GLSL program
kgv [Sat, 30 Jan 2016 15:24:12 +0000 (18:24 +0300)]
0027123: Visualization, TKOpenGl - fix environment texture GLSL program

OpenGl_ShaderManager::prepareStdProgramFlat() - properly initialize vec4.

8 years ago0027110: Regression: Draw command "parameters" can not compute parameter on the line.
ifv [Tue, 26 Jan 2016 13:56:23 +0000 (16:56 +0300)]
0027110: Regression: Draw command "parameters" can not compute parameter on the line.

Useless variable MAXTOLERANCEGEOM is removed in order to allow to place point at any distance from curve/surface.
Algorithm is simplified: particular calculations for analytical geometry are removed, only using of Extrema_... is kept.

Test case for issue #27110

8 years ago0026726: Draw Harness, ViewerTest - AIS_InteractiveContext::EraseSelected() lacks...
isk [Fri, 29 Jan 2016 07:34:22 +0000 (10:34 +0300)]
0026726: Draw Harness, ViewerTest - AIS_InteractiveContext::EraseSelected() lacks test case
Update draw command ViewerTest::Erase().

8 years ago0027094: Create command checkdump for parsing dumps (geometry test group)
apn [Fri, 22 Jan 2016 12:59:10 +0000 (15:59 +0300)]
0027094: Create command checkdump for parsing dumps (geometry test group)

checkdump - procedure to parse output dump and compare it with reference values;
checklength - procedure to compute length of input shape.
Added procedures and modified test group geometry.

8 years ago0027109: Modifiy test cases using procedure checklength
apn [Mon, 25 Jan 2016 15:55:11 +0000 (18:55 +0300)]
0027109: Modifiy test cases using procedure checklength

Modify cases

8 years ago0027083: Visualization, Ray Tracing - shape with visible face boundaries disappears...
vpa [Wed, 20 Jan 2016 19:11:02 +0000 (22:11 +0300)]
0027083: Visualization, Ray Tracing - shape with visible face boundaries disappears after turning the ray-tracing on

- default state of aspects is now restored to prevent backface culling which is not supported by ray-tracing yet;
- added test case for issue #27083

8 years ago0027048: BSpline cache is always wrong outside of surface
azv [Thu, 21 Jan 2016 08:35:24 +0000 (11:35 +0300)]
0027048: BSpline cache is always wrong outside of surface

1. Disable recalculation of B-spline cache when the parameter is out of surface boundary but near the cached span.
2. Rebuild cache each time a curve/surface is loaded into adaptor (B-spline knots may be re-parametrized outside adaptor without changing base curve)
3. Test cases.

8 years ago0025574: gp_YawPitchRoll Euler Angle computation gives wrong results
akz [Tue, 13 Oct 2015 07:30:52 +0000 (10:30 +0300)]
0025574: gp_YawPitchRoll Euler Angle computation gives wrong results

Conversion of gp_Quaternion to and from intrinsic Tait-Bryan angles (including gp_YawPitchRoll) is fixed.

Before that fix the sequence of rotation axes was opposite to intended; e.g. gp_YawPitchRoll (equivalent to gp_Intrinsic_ZYX) actually was defining intrinsic rotations around X, then Y, then Z.
Now this is fixed, and rotations are made in correct order.

Comments to gp_EulerSequence enumeration are restored (lost due to CDL extraction).

Test bugs fclasses bug25574 is added to check correctness of Euler sequences, including cases from #25574 and #25946.

8 years ago0027077: OCAF: Implementation of streaming save/load (OCC26229) is incomplete/incorrect
ibs [Thu, 14 Jan 2016 16:17:00 +0000 (19:17 +0300)]
0027077: OCAF: Implementation of streaming save/load (OCC26229) is incomplete/incorrect

XmlOcaf reading is non-seekable

// 1. Read method of XmlLDrivers_DocumentRetrievalDriver extended to read complete document (with "document" tag) in compatible mode (when reading is performed from file)
// 2. the empty statement removed
// 3. the description of LDOMPARSER::parse method extended

8 years ago0026187: Implement m-dashes in the documentation
ysn [Thu, 21 Jan 2016 11:21:27 +0000 (14:21 +0300)]
0026187: Implement m-dashes in the documentation

- m-dashes added.
- some other cases of incorrect dash use fixed
- unicode dashes were removed throughout the documentation.
- other comments taken into account.

8 years ago0024677: Control of license statements and non-ascii characters in integrated code
bugmaster [Wed, 27 Jan 2016 11:27:29 +0000 (14:27 +0300)]
0024677: Control of license statements and non-ascii characters in integrated code

Update of license statements and non-ascii characters

8 years ago0027097: GCC and CLang compiler warnings and errors with -Wpedantic
abv [Fri, 22 Jan 2016 08:42:32 +0000 (11:42 +0300)]
0027097: GCC and CLang compiler warnings and errors with -Wpedantic

Useless semicolons are removed after closing braces of namespaces and macros in code dependent on FreeImage and VTK.
Comments added at the closing braces of namespaces to help comprehension.
In OSD_File.cxx and OSD_Disk.cxx, unnecessary declarations of system functions are removed

8 years ago0027105: Make code ISO-compliant [-Wpedantic fixes]
Jacob Abel [Fri, 22 Jan 2016 00:28:38 +0000 (16:28 -0800)]
0027105: Make code ISO-compliant [-Wpedantic fixes]

Remove extra semicolons and correct function prototypes for GCC -pedantic ISO compliance option

8 years ago0027088: Documentation of add method of GeomConvert_CompCurveToBSplineCurve lacks...
Benjamin Bihler [Mon, 18 Jan 2016 13:01:56 +0000 (14:01 +0100)]
0027088: Documentation of add method of GeomConvert_CompCurveToBSplineCurve lacks speed hint

Improved documentation

8 years ago0026132: Invalid result of boolean operation
nbv [Tue, 19 Jan 2016 11:05:25 +0000 (14:05 +0300)]
0026132: Invalid result of boolean operation

1. The procedures for check of coincidence between Edge-Edge and Edge-Face have been added. These methods are used instead of searching interferences between corresponding sub-shapes. In most cases (including case for this issue), new methods are more reliable and faster than intersections. However, its use should be avoided in case when the edge is not coincide with edge/face of another argument evidently (e.g. if edge vertices are not in another edge/face).

2. Interface of both IntTools_EdgeFace and IntTools_EdgeEdge has been changed (adding/deleted some field and methods).

Some test cases have been corrected in accordance with their new behavior.
Test case for issue CR26132.

8 years ago0027085: ShapeUpgrade_UnifySameDomain very large performance difference for seemingly...
isn [Fri, 15 Jan 2016 13:22:32 +0000 (16:22 +0300)]
0027085: ShapeUpgrade_UnifySameDomain very large performance difference for seemingly similar shapes

Performance of the algorithm ShapeUpgrade_UnifySameDomain has been improved by avoiding of multiple calls of ShapeBuild_ReShape::Apply() method.

New test cases have been added.

8 years ago0027078: Exception in ShapeFixIntersectionTool::UnionVertexes()
ika [Thu, 14 Jan 2016 12:46:25 +0000 (15:46 +0300)]
0027078: Exception in ShapeFixIntersectionTool::UnionVertexes()

Add checks to avoid exceptions.
Remove check for small 3D curve, now pcurve will be built for all small edges, which have not been removed by FixSmall.

8 years ago0027092: Coding - src/BRep/BRep_Tool.hxx extra semicolon triggers annoying warnings...
kgv [Wed, 20 Jan 2016 07:24:20 +0000 (10:24 +0300)]
0027092: Coding - src/BRep/BRep_Tool.hxx extra semicolon triggers annoying warnings on Clang

8 years ago0027080: Coding - eliminate CLang compiler warning on OS X: unused parameter (in...
kgv [Tue, 19 Jan 2016 11:17:45 +0000 (14:17 +0300)]
0027080: Coding - eliminate CLang compiler warning on OS X: unused parameter (in .mm files)

8 years ago0021875: Section of face by plane produces invalid result
ski [Mon, 18 Jan 2016 10:29:38 +0000 (13:29 +0300)]
0021875: Section of face by plane produces invalid result

Test case was added.

8 years ago0024836: Stack overflow when raising exception in low memory condition
abv [Thu, 7 Jan 2016 07:02:16 +0000 (10:02 +0300)]
0024836: Stack overflow when raising exception in low memory condition

Standard_OutOfMemory exception is refactored so as to avoid memory allocations (which will likely fail) when it is raised:

- method NewInstance() returns static instance (singleton)
- method Raise() raises copy of that singleton, resetting its message string
- message string is stored as field, not allocated dynamically (thus maximum message length is limited by buffer size)

Class Standard_Failure slightly revised: method Destroy() is merged to destructor, methods Get/SetMessageString() are made virtual.

Add test case for the bug

8 years ago0026942: Training material are not built on OCCT installed after building by cmake...
ski [Wed, 9 Dec 2015 08:55:05 +0000 (11:55 +0300)]
0026942: Training material are not built on OCCT installed after building by cmake procedure

Environment variable QT_DIR was renamed to QTDIR.

8 years ago0027045: firsthole & holend commands work incorrectly
isn [Wed, 13 Jan 2016 14:17:15 +0000 (17:17 +0300)]
0027045: firsthole & holend commands work incorrectly

firsthole / holend / hole commands have been corrected.
Now they work correctly on the planar faces
Also some commented code have been deleted
Temporary update for backward compatibility with WOK

8 years ago0027066: BRepFeat_MakeCylindricalHole::Perform() hides overloaded virtual function
isn [Mon, 11 Jan 2016 15:32:41 +0000 (18:32 +0300)]
0027066: BRepFeat_MakeCylindricalHole::Perform() hides overloaded virtual function

Moving to protected section

8 years ago0026989: [Regression in 6.9.0] Export of a reversed face leads to wrong data in 6.9.0
ika [Tue, 12 Jan 2016 15:08:26 +0000 (18:08 +0300)]
0026989: [Regression in 6.9.0] Export of a reversed face leads to wrong data in 6.9.0

Add range for degenerated edges to mirrored pcurves during exporting of reversed faces.

8 years ago0026804: The level of most VIS Viewer commands is incorrect
ysn [Tue, 12 Jan 2016 12:47:42 +0000 (15:47 +0300)]
0026804: The level of most VIS Viewer commands is incorrect

Added highlighting of links with blue color.

Fixed incorrect tags.

8 years ago0026511: Build fails with VTK 6.3rc1
abv [Thu, 14 Jan 2016 05:34:44 +0000 (08:34 +0300)]
0026511: Build fails with VTK 6.3rc1

Obsolete typedef "vtkFloatingPointType" is replaced by "double" in VIS and DRAW

8 years ago0027059: Point->Curve Projection/Extrema fails [OCCT 7 only]
aml [Mon, 11 Jan 2016 09:21:01 +0000 (12:21 +0300)]
0027059: Point->Curve Projection/Extrema fails [OCCT 7 only]

Add check to run extrema search when necessary condition of extrema is true (small value of first derivative of objective function).
Test case added.

8 years ago0026514: OSD_Path can not work with French symbols in file name.
abv [Thu, 7 Jan 2016 18:15:29 +0000 (21:15 +0300)]
0026514: OSD_Path can not work with French symbols in file name.

Restriction on path to contain only basic ASCII symbols is removed in OSD_Path, to allow paths to contain any symbols (defined in UTF-8 encoding).

8 years ago0027032: [Regression to 6.9.1] Result of bcut has the same volume as the object
msv [Mon, 28 Dec 2015 11:48:06 +0000 (14:48 +0300)]
0027032: [Regression to 6.9.1] Result of bcut has the same volume as the object

- Avoid reducing tolerance of the original edges in BOPAlgo_PaveFiller::CorrectToleranceOfSE
- If a boundary edge is considered coincident with a section curve then increase its tolerance more carefully, using real distance instead of extended reached tolerance.
- New test case bugs/modalg_6/bug27032
- Test cases boolean/gdml_private/E4-F3 have been amended to check area of the result.

- Puts TODO in test cases boolean gdml_private ZI5,ZI7,ZJ7.

8 years ago0027060: Visualization issue with TopoDS_Vertex after call of AIS_Shape::SetColor()
kgv [Thu, 7 Jan 2016 08:22:21 +0000 (11:22 +0300)]
0027060: Visualization issue with TopoDS_Vertex after call of AIS_Shape::SetColor()

AIS_Shape::setColor() - define Aspect_TOM_PLUS point aspect
in sync with Prs3d_Drawer::PointAspect() when Prs3d_Drawer has no Link.

8 years ago0026931: [Regression in 6.9.0] Exporting a face throws an exception
ika [Thu, 3 Dec 2015 08:35:42 +0000 (11:35 +0300)]
0026931: [Regression in 6.9.0] Exporting a face throws an exception

Writing periodic BSpline surfaces to IGES:
Replace segmentation of surface to setting new origin.
Fix face bounds if its length (in U or V) is more than period.

Segmentation of BSpline curve/surface:
Throw exception if segment length more than period.

Fix test case bugs moddata_1 bug14782:
bounds of segmentation must be the same as curve bounds, according to issue description.

Changes in classes Geom2d_BSplineCurve, Geom_BSplineCurve, Geom_BSplineSurface:
- Replace *Raise_if macros with unconditional exceptions where it does not affect on performance.
- Update comments in .hxx files in regard of raised exceptions.

8 years ago0026684: Big tolerance values of the intersection curves
ski [Tue, 22 Dec 2015 11:23:09 +0000 (14:23 +0300)]
0026684: Big tolerance values of the intersection curves

Added test cases for issue #26684

8 years ago0026769: Chinese letters are not translated
anv [Fri, 25 Dec 2015 07:55:07 +0000 (10:55 +0300)]
0026769: Chinese letters are not translated

Added a condition to omit empty symbols

8 years ago27002: Test cases for Set-42
emv [Mon, 28 Dec 2015 04:34:46 +0000 (07:34 +0300)]
27002: Test cases for Set-42

8 years ago0027039: Draw Harness, ViewerTest - Fix rubber-band blinking
kgv [Fri, 25 Dec 2015 12:53:27 +0000 (15:53 +0300)]
0027039: Draw Harness, ViewerTest - Fix rubber-band blinking

ViewerTest - eliminate redundant redraw calls.
Configure AIS_RubberBand to use filled style.

AIS_RubberBand - define vertex normals to workaround transparency issue in TKOpenGl.

8 years ago0026513: Offset API not returning result (seems to be "hanging")
apv [Wed, 23 Dec 2015 15:31:21 +0000 (18:31 +0300)]
0026513: Offset API not returning result (seems to be "hanging")

Test case for issue #26513

Update of test case for issue #26513

8 years ago0021670: BOP section produces bad result
apv [Thu, 24 Dec 2015 13:09:34 +0000 (16:09 +0300)]
0021670: BOP section produces bad result

Test case for issue #21670

8 years ago0027021: TopExp::Vertices performance optimization
pdn [Mon, 21 Dec 2015 12:41:39 +0000 (15:41 +0300)]
0027021: TopExp::Vertices performance optimization

TopExp::Vertices optimized for sequential calls. BRep_Tool::Curve performance regression fixed. Update for fetching point done.

Casts modified to pointers

Test case for issue CR27021

gcc warnings elimination

8 years ago0026923: Operation CUT leads to faulty shape
apv [Thu, 24 Dec 2015 11:03:19 +0000 (14:03 +0300)]
0026923: Operation CUT leads to faulty shape

Test case for issue #26923

8 years ago0027040: IVtk does not compile after configuring with CMake
ibs [Mon, 28 Dec 2015 09:11:39 +0000 (12:11 +0300)]
0027040: IVtk does not compile after configuring with CMake

hardcoded C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x64/d3d9.lib is removed from any vtk toolkit

8 years ago0026990: Compiler warnings in LDOM_OSStream.hxx
abv [Sat, 9 Jan 2016 11:41:41 +0000 (14:41 +0300)]
0026990: Compiler warnings in LDOM_OSStream.hxx

Signature of methods xsputn() and overflow() of the class LDOM_SBuffer is corrected to correspond to signature of overriden virtual methods of std::streambuf.

8 years ago0027058: AIS_ColorScale defines methods SetColor and SetWidth hiding inherited methods
abv [Sat, 9 Jan 2016 10:53:31 +0000 (13:53 +0300)]
0027058: AIS_ColorScale defines methods SetColor and SetWidth hiding inherited methods

Interface of AIS_ColorScale is revised to make it more consistent:

- Methods SetBgColor()/GetBGColor(), and corresponding field, are removed. It was used to select white or black color for the color bar frame (by contrast). That color can now be set explicitly by inherited method SetColor().
- Own methods Get/SetColor() are renamed to Get/SetIntervalColor(), to avoid confusion with inherited method SetColor()
- Methods Get/SetWidth() are renamed to Get/SetBreadth(), to avoid confusion with inherited method SetWidth()
- Method Get/Set for labels and colors, and DRAW command vcolorscale, now all accept index starting at 1
- Comments added to explain indexation rules

8 years ago0027068: Coding - eliminate VC++ 14 compiler warnings in MFC samples
abv [Sat, 9 Jan 2016 06:33:40 +0000 (09:33 +0300)]
0027068: Coding - eliminate VC++ 14 compiler warnings in MFC samples

Code is corrected to avoid compiler warnings

8 years ago0027056: Configuration, genproj.tcl - fix generation of project files for Products
kgv [Sat, 2 Jan 2016 20:57:23 +0000 (23:57 +0300)]
0027056: Configuration, genproj.tcl - fix generation of project files for Products

Script genproj.bat is improved to be usable for building OCC products depending on OCCT.

Search of VTK is corrected (broken in master)

8 years ago0027055: Configuration, genconf.tcl - reduce window height to fit into smaller screens
kgv [Sat, 2 Jan 2016 11:36:04 +0000 (14:36 +0300)]
0027055: Configuration, genconf.tcl - reduce window height to fit into smaller screens

8 years ago0026589: Testgrid command - Add option to execute only tests failed on previous run
ski [Wed, 16 Dec 2015 13:57:20 +0000 (16:57 +0300)]
0026589: Testgrid command - Add option to execute only tests failed on previous run

New option for command testgrid was added.
Updated documentation.

8 years ago0027062: Fixed misspelling of resources install path
Martin Siggel [Wed, 6 Jan 2016 09:34:48 +0000 (10:34 +0100)]
0027062: Fixed misspelling of resources install path

8 years ago0027061: Fixed compilation issue due to BOM
Martin Siggel [Wed, 6 Jan 2016 09:24:43 +0000 (10:24 +0100)]
0027061: Fixed compilation issue due to BOM

The byte order mark (BOM) in src/OpenGl/OpenGl_BVHClipPrimitiveTrsfPersSet.cxx
prevented compilation on some gcc compilers. I removed the BOM, which
fixes compilation.

8 years ago0025076: Hidden overloaded virtual functions
abv [Tue, 29 Dec 2015 04:07:17 +0000 (07:07 +0300)]
0025076: Hidden overloaded virtual functions

Implementation of virtual functions is made more consistent in places where warning was issued:

- Missing implementation of virtual method Closed() added in classes inheriting Intf_Polygon2d
- Empty implementation of virtual method Read() accepting stream is moved from PCDM_RetrievalDriver to StdLDrivers_DocumentRetrievalDriver
- Method BRepFill::Delete() is renamed to DeleteProfile() to avoid confusion with method Delete() inherited from MMgt_TShared
- Virtual method AIS_Dimenaion::ComputePlane() is removed from base class; each dimension defines and uses its own method with the same name (but different arguments)
- Inherited virtual method Dump() with single argument in class XCAFDoc_ShapeTool is now defined as short-cut to own method Dump(), also calling parent's one
- Inherited virtual method BoundingBox(void) is made visible in AIS_Shape
- Inherited virtual method Box(void) is made visible in classes inheriting BVH_PrimitiveSet

8 years ago0027067: Avoid use of virtual methods for implementation of destructors in legacy...
abv [Sun, 3 Jan 2016 04:11:46 +0000 (07:11 +0300)]
0027067: Avoid use of virtual methods for implementation of destructors in legacy classes

Redundant methods Delete() and Desroy(), created in CDL as a hack to define destructor for the class, are removed; their definitions are converted to definition of destructors. In a couple of places methods Destroy() are preserved (bug made non-virtual) because they are called explicitly.

8 years ago0027047: STEP -- eliminate useless polymorhic methods Init()
abv [Tue, 29 Dec 2015 04:00:18 +0000 (07:00 +0300)]
0027047: STEP -- eliminate useless polymorhic methods Init()

Methods Init() in STEP data classes are made non-virtual, redundant variants just calling the same method of the base class are removed.
A few places where removed method have been called are corrected.

8 years ago0027057: Wrong license statements in some files
abv [Sun, 3 Jan 2016 07:30:02 +0000 (10:30 +0300)]
0027057: Wrong license statements in some files

Missing license statements added, wrong ones corrected

8 years agoFix of compiler warnings on OCCT 7.0.0.beta (CLang and VC++ 14)
abv [Sun, 27 Dec 2015 11:48:22 +0000 (14:48 +0300)]
Fix of compiler warnings on OCCT 7.0.0.beta (CLang and VC++ 14)

8 years ago0027041: CMake - CLang 3.6.2 fails to link DRAWEXE on Ubuntu 15.10
abv [Sat, 26 Dec 2015 15:59:36 +0000 (18:59 +0300)]
0027041: CMake - CLang 3.6.2 fails to link DRAWEXE on Ubuntu 15.10

"stdc++" is added to CSF_ThreadLibs in CMake script to make DRAWEXE built well.

In addition, TKVCAF added in CMake script for OCAF MFC sample, and Yacc and Lex files added in src/StepFile/FILES to make it consistent with actual contents of the package.

8 years ago0027054: Upgrade procedure corrupts files with DOS line endings
abv [Fri, 1 Jan 2016 15:43:02 +0000 (18:43 +0300)]
0027054: Upgrade procedure corrupts files with DOS line endings

Treatment of files in DOS encoding corrected to avoid duplication of CR symbols

8 years agoINSTALL_DIR is synced with CMAKE_INSTALL_PREFIX . Change of any of these vars resets... V7_0_0_beta
ibs [Thu, 24 Dec 2015 15:22:35 +0000 (18:22 +0300)]
INSTALL_DIR is synced with CMAKE_INSTALL_PREFIX . Change of any of these vars resets the structure of the install folder

8 years ago0026916: Configuration, CMake - configure variables to customize installation path...
ibs [Tue, 22 Dec 2015 09:55:57 +0000 (12:55 +0300)]
0026916: Configuration, CMake - configure variables to customize installation path separately for executables, libraries and resources

change the structure of binaries for unix
OCCT_RESOURCE_PATH env variable is used

8 years agoFinal updates before release
bugmaster [Thu, 24 Dec 2015 14:33:34 +0000 (17:33 +0300)]
Final updates before release

- Update of mfc samples
- Adjustment of test cases
- Update of CSharp sample (lost button added)
- Corrected paths to data files in 07_Triangulation mfc sample
- Update of overview (Requirements section)
- Update of upgrade guide (changes in modeling algorithms)

8 years ago0026961: Recover possibility to read files in old persistence format -- preparation
myn [Wed, 9 Dec 2015 17:27:36 +0000 (20:27 +0300)]
0026961: Recover possibility to read files in old persistence format -- preparation

Added basic support for possibility to read filed in old persistent format.
Toolkits TKStd, TKStdL, TKShape added to provide necessary tools (to be done).
Obsolete interfaces are removed from classes in PCDM and Storage.

8 years ago0026354: Invalid result of General Fuse on wire and face
apv [Wed, 23 Dec 2015 13:21:22 +0000 (16:21 +0300)]
0026354: Invalid result of General Fuse on wire and face

Test case for issue #26354

8 years ago0026580: BRepProj_Projection does not provide any results
apv [Wed, 23 Dec 2015 14:20:58 +0000 (17:20 +0300)]
0026580: BRepProj_Projection does not provide any results

Test cases for issue #26580

8 years ago0026535: Boolean Cut does not work on shell and solids
apv [Wed, 23 Dec 2015 14:59:45 +0000 (17:59 +0300)]
0026535: Boolean Cut does not work on shell and solids

Test case for issue #26535

8 years ago0027029: Possible regression in test de iges_1 L6 because of fix for issue 26837
nbv [Wed, 23 Dec 2015 14:43:19 +0000 (17:43 +0300)]
0027029: Possible regression in test de iges_1 L6 because of fix for issue 26837

In BRepLib::SameRange, allow exceeding curve range for periodic curves.

Test cases returned to the state before fix for issue #26837.

8 years ago0026837: SameParameter algorithm throws an exception
mkv [Tue, 22 Dec 2015 14:55:54 +0000 (17:55 +0300)]
0026837: SameParameter algorithm throws an exception
Correction of test cases for issue CR26837

8 years agoIncrementing OCCT version up to 7.0.0 beta
bugmaster [Wed, 23 Dec 2015 10:40:41 +0000 (13:40 +0300)]
Incrementing OCCT version up to 7.0.0 beta

8 years ago0027026: Modeling -- Improve AppCont_LeastSquare::AppCont_LeastSquare::FixSingleBorde...
abv [Mon, 21 Dec 2015 15:46:58 +0000 (18:46 +0300)]
0027026: Modeling -- Improve AppCont_LeastSquare::AppCont_LeastSquare::FixSingleBorderPoint()

Update of test-cases according to the new behavior

8 years ago0026960: Visualization, TKOpenGl - update transformation of dynamically highlighted...
vpa [Fri, 18 Dec 2015 18:29:13 +0000 (21:29 +0300)]
0026960: Visualization, TKOpenGl - update transformation of dynamically highlighted presentation

- added method UpdateHighlightTrsf for immediate update of highlight presentation's transformation;
- interfaces for immediate transformation update of corresponding presentations were added to entity owner classes;
- test case for issue #26960

8 years ago0026619: Tolerances of operands are modified using bop
msv [Wed, 21 Oct 2015 09:36:03 +0000 (12:36 +0300)]
0026619: Tolerances of operands are modified using bop

0026796: The result of General Fuse operation is self-intersecting shape

The fix forces creation of new sub-shapes (vertex, edge) when the tolerance of some sub-shape of an argument is to be increased.

This new behavior is turned off by default. It can be turned on using two ways:
1) Setting 'locking' flag of the arguments.
2) Calling the method SetNonDestructive(Standard_True) of the API classes.

Various bug fixes in the algorithm:
- Compute correct tolerance values for intersections of type Line/Line, Line/Plane, Plane/Plane.
- In case of Line/Plane intersection check if line's vertices lie on the plane.
- Do not allow decreasing of the tolerance value of the Line/Line intersection vertex.
- In IntTools_EdgeEdge, call the method FindParameters with proper 3D tolerance of the curve.
- Force making copy of a degenerated edge if its vertex is touched but no 2D intersection with other curves is found.
- Remove pave blocks both ends of which became referring to the same vertex after vertices substitution.
- Avoid exception in IntTools_Context::IsVertexOnLine if Extrema is not done.
- Reduce tolerance of vertex/edge using actual distances to interfered shapes if it was increased due to line/line, line/plane, or plane/plane small intersection angle.
- Update tolerance of edges to reach all representations in a common block.
- In V-E intersections, check if a vertex hits beyond shrunk range, in such case create V-V interference.
- Do not put a section edge to the result if it becomes to be a micro edge after updating its vertex.
- Correctly make vertices same-domain during the work of MakeBlocks.
- Decrease shrunk range at least on a Precision::Confusion() in addition to vertex tolerance.
- Add Confusion to bounding boxes of new shapes in DS
- Add tolerance Precision::Confusion() to compare distances of touching cases to fix regressions.

TODO marks have been removed from (or modified in) the following test cases (Improvements):
boolean bsection M3 N2 R2
boolean gdml_private B6 C2 C6 G7 I6 F6 J1 J4 M7 N1 N8 N9 O3 O4 O6 O8 O9 P1 P2 P5 Q1 Q3 Q5 S9 T2 U4 U5 U9 ZB5 ZB6 ZC1 ZC5 ZD3 ZD6 ZD7 ZH2 ZH5 ZI2 ZI5 ZI7 ZI9 ZJ3 ZJ4 ZJ7 F8 I6 G1
boolean volumemaker A5 A6 B3 B4 B7 B9 D3 D4 D7 F1
boolean bopcut_2d D5
bugs modalg_5 bug25043
bugs modalg_2 bug472_1 bug472_2 bug472_3

Test cases updated because they are still bad but can be accepted as non-regression:
boolean volumemaker C4 A3 A7 E6
bugs modalg_1 bug10232
boolean bsection N2

Put new TODO in the scripts:
bugs modalg_5 bug25232_9
bugs modalg_6 bug26619
bugs modalg_1 buc60462_2
bugs modalg_4 bug772

For the following tests the result in fix became better, so take fix result as the reference:
bugs modalg_5 bug24628
bugs modalg_6 bug26954_3
boolean volumemaker A4 B5 B6 C3 C8 D2 D5 F2
bugs modalg_2 bug472_2
bugs modalg_1 buc60776_1

- Add the method SetNonDestructive to API classes of user level

8 years ago0027031: Samples - fix compilation issues in java/jniviewer sample
kgv [Tue, 22 Dec 2015 15:04:29 +0000 (18:04 +0300)]
0027031: Samples - fix compilation issues in java/jniviewer sample

Add -std=c++11 compiler flag to Android.mk.
OcctJni_Viewer - drop removed arguments within V3d_View::SetWindow() usage.
OcctJni_Window - add missing NativeFBConfig() method declared in the interface.

8 years ago0026837: SameParameter algorithm throws an exception
ifv [Tue, 17 Nov 2015 07:53:51 +0000 (10:53 +0300)]
0026837: SameParameter algorithm throws an exception

Test case for issue CR26837

8 years ago0026433: AIS_Dimension may attempt to modify the state of default Drawer shading...
duv [Tue, 14 Jul 2015 14:42:27 +0000 (17:42 +0300)]
0026433: AIS_Dimension may attempt to modify the state of default Drawer shading aspect
- Added checks to allow modification of only own aspects in AIS_Dimension::DrawText()

8 years ago0024514: Unclear guidelines to report issues in Mantis
abv [Tue, 22 Dec 2015 10:58:36 +0000 (13:58 +0300)]
0024514: Unclear guidelines to report issues in Mantis

Contribution workflow document is revised and extended to eliminate inconsistencies and describe the process in more details:

- Meaning of issue fields in Mantis (Category, Severity, Profile, Project and Target Version, etc.) is described in more details
- Additional rules are defined and examples given for defining Summary and Description, and writing commit messages
- Requirements for testing, creation of test case, update of user documentation, etc. when resolving an issue, are described
- Additional elements of the workflow (patch sumbission, rebasing branches, use of feedback status, issue relationships) are described

Some refinement in other guides; OCC logo updated for better quality.

8 years ago0027023: Documentation -- cross-references are hardly noticeable in PDF
abv [Mon, 21 Dec 2015 10:05:29 +0000 (13:05 +0300)]
0027023: Documentation -- cross-references are hardly noticeable in PDF

Doxygen option PDF_HYPERLINKS is set to NO to enforce generation of cross-references as explicit page numbers in PDF manuals

8 years ago0027020: Documentation -- proof-read upgrade guide
ysn [Tue, 3 Nov 2015 15:11:29 +0000 (18:11 +0300)]
0027020: Documentation -- proof-read upgrade guide

Developer guide update.md thoroughly checked and formatted.