occt.git
7 years ago0027319: Configuration, Cmake - cmake's c/cxx corresponding flags are not updated... CR27319
ibs [Wed, 30 Mar 2016 09:03:13 +0000 (12:03 +0300)]
0027319: Configuration, Cmake - cmake's c/cxx corresponding flags are not updated in cmake gui after changes in cmake script

update the corresponding variables by force

7 years ago0027384: BRepMesh_IncrementalMesh does not take angular deflection into account for...
oan [Tue, 26 Apr 2016 12:38:42 +0000 (15:38 +0300)]
0027384: BRepMesh_IncrementalMesh does not take angular deflection into account for spun/elementary surfaces

Check deviation of normals at vertices of triangles for complex surface types different from Bezier and BSpline.
Modified test cased according to changes in BRepMesh.
Do not remove more intermediate parameters than N - 3 in order to have at least one parameter related to surface internals.
Check angle for angular deflection before removement of intermediate parameters.
Unify computation of internal vertices for complex surfaces.
Discretization points of edges are taken into account during computation of step of mesh grid.
Remove parameters only if they fit the constrains along the whole surface.
Do not add random internal parameters in case if their number is just 2.
Force freezing parameters both for U and V in case of significant control point.

Modified test cases

Warnings elimination in vc14.

7 years ago0027368: Finding objects in vicinity of a ray
dbp [Mon, 25 Apr 2016 09:29:35 +0000 (12:29 +0300)]
0027368: Finding objects in vicinity of a ray

In frames of this issue, radix sort functionality from BVH_LinearBuilder was generalized and implemented as separate classes in BVH package. The basic API of sorting class is given in BVH_Sorter class, while BVH_QuickSorter and BVH_RadixSorter provide quck sroting and radix sorting algorithms respectivly.

7 years ago0027310: Huge tolerance obtained in the result of intersection of two cylindrical...
nbv [Thu, 7 Apr 2016 10:53:57 +0000 (13:53 +0300)]
0027310: Huge tolerance obtained in the result of intersection of two cylindrical faces

Sometimes start point of the intersection line is in the surface boundary strictly. I.e. the parameter of this point in the surface can be equal to both 0 or 2*PI equivalently. It is important to chose correct parameter value.

The algorithm of prediction is based on monotonicity property (see CylCylMonotonicity(...) function in IntPatch_ImpImpIntersection_4.gxx). Now, this function is used wrongly. The fix improves this situation.

Small optimization in the code.
Creation of test cases .

The logic of returning value by the method BoundariesComputing() has been corrected.

7 years ago0027269: Intersection algorithm produces null-length curve
nbv [Mon, 11 Apr 2016 07:38:50 +0000 (10:38 +0300)]
0027269: Intersection algorithm produces null-length curve

Restriction line can correspond to a degenerated edge. In this case we shall return null-curve (instead of Null-length curve).

7 years ago0027371: Regression: BRepExtrema works too much slower in 691 (from 670)
aml [Tue, 12 Apr 2016 09:15:07 +0000 (12:15 +0300)]
0027371: Regression: BRepExtrema works too much slower in 691 (from 670)

I
Lipschitz constant tuning.
Shubert estimation for minimal value is added.

II
Math_GlobOptMin Refactoring.

III
Test case is added.

class NCollection_CellFilter_Inspector moved into math_GlobOptMin class.

7 years ago0027435: Compilation error on Linux platfrom in Debug mode with enabled OCCT_DEBUG...
ski [Tue, 26 Apr 2016 13:02:32 +0000 (16:02 +0300)]
0027435: Compilation error on Linux platfrom in Debug mode with enabled OCCT_DEBUG definition

Error was fixed.

7 years ago0027195: Configuration, CMake - data and samples/tcl folders are installed with DRAW...
ski [Tue, 26 Apr 2016 10:18:53 +0000 (13:18 +0300)]
0027195: Configuration, CMake - data and samples/tcl folders are installed with DRAW executable only

Installation of data and samples/tcl folders was binded with DRAWEXE

7 years ago0027212: Make cmake configurator flexible concerning option BUILD_WITH_DEBUG
ski [Tue, 26 Apr 2016 08:05:46 +0000 (11:05 +0300)]
0027212: Make cmake configurator flexible concerning option BUILD_WITH_DEBUG

Added flexible behaviour for option BUILD_WITH_DEBUG.

7 years ago0027417: Coose a Better Default Release Optimization Parameter for MinGW-w64
Benjamin Bihler [Fri, 22 Apr 2016 10:07:52 +0000 (13:07 +0300)]
0027417: Coose a Better Default Release Optimization Parameter for MinGW-w64

Forcing CMAKE_CXX_FLAGS_RELEASE to -O2 -DNDEBUG, if the compiler is MinGW-w64.

Switched to replacing optimization parameter instead of overwriting
CMAKE_CXX_FLAGS_RELEASE string

7 years ago0027402: Fix Compilation with MinGw and Additional Libraries
Benjamin Bihler [Tue, 19 Apr 2016 13:03:03 +0000 (16:03 +0300)]
0027402: Fix Compilation with MinGw and Additional Libraries

Setting CSF_GL2PS in occt_csf.cmake in the same way as CSF_FREETYPE is set.

Added MinGw library suffix to a in 3rdparty_macro.cmake, freetype.cmake and tbb.cmake.

Removed redundant CSF_GL2PS definition for non-Win32 configurations

7 years ago0027427: Exception on loading a DE package to Draw
anv [Mon, 25 Apr 2016 12:29:57 +0000 (15:29 +0300)]
0027427: Exception on loading a DE package to Draw

7 years ago0027425: Unable to build AIS package with OCCT_DEBUG enabled in current master
emv [Mon, 25 Apr 2016 05:56:22 +0000 (08:56 +0300)]
0027425: Unable to build AIS package with OCCT_DEBUG enabled in current master

The usage of the removed field mySelName of the AIS_LocalContext class has also been removed.

7 years agoUpdate of testing cases for current state of OCCT
bugmaster [Fri, 22 Apr 2016 11:15:43 +0000 (14:15 +0300)]
Update of testing cases for current state of OCCT

7 years ago0027349: XtControl_Reader is not thread-safe
anv [Fri, 22 Apr 2016 10:51:24 +0000 (13:51 +0300)]
0027349: XtControl_Reader is not thread-safe

Support of profiles for norms is removed
Getting rid of thread-unsafe static variables.
Sequence is not thread-safe. Replacing it with Vector.
Updating samples due to previous changes.
Resolving conflict with system environment.

7 years ago0026809: Visualization, TKOpenGl - handle point arrays with per-vertex color within...
duv [Sun, 17 Apr 2016 09:43:08 +0000 (12:43 +0300)]
0026809: Visualization, TKOpenGl - handle point arrays with per-vertex color within built-in GLSL programs

Shader rendering of point sprites with per-vertex colors and shading have been fixed.

Material state was removed from OpenGl_ShaderManager.
Material properties now should be modified trough OpenGl_Context::SetShadingMaterial().

7 years ago0027302: Invalid curves number in intersection result
nbv [Tue, 29 Mar 2016 13:38:53 +0000 (16:38 +0300)]
0027302: Invalid curves number in intersection result

1. In frame of the fix for #27282 issue, we have obtained several prolonged curves, which have common point(s). Fix for this issue joins these curves if it is possible.

2. ElCLib::InPeriod(...) method has been improved. Now it has become more faster (in general cases) and more reliable (in frame of  FLT_OVERFLOW and DIVISION_BY_ZERO cases processing).

Creation of test case for issue #27302
Test case tests\bugs\modalg_6\bug27282_2 has been adjusted in accordance with its new behavior.

7 years ago0027202: Visualization - add sensitivity Select3D_SensitivePrimitiveArray for Graphic...
kgv [Wed, 20 Apr 2016 06:48:58 +0000 (09:48 +0300)]
0027202: Visualization - add sensitivity Select3D_SensitivePrimitiveArray for Graphic3d_Buffer

New class Select3D_SensitivePrimitiveArray can be initialized directly from
presentation data structures Graphic3d_Buffer defining triangulation or point set.

This class also can combine several elements into patches
to reduce BVH initialization time in at the expense of slower detection time.

AIS_PointCloud::ComputeSelection() - selection is now computed on point set using Select3D_SensitivePrimitiveArray by default.
PrsMgr_PresentableObject::Compute() - redundant default argument value has been dropped.
BVH - store BVH_Set size in local variable to simplify debugging.

7 years ago0027359: Visualization - add support of flipping for textured text
aba [Thu, 7 Apr 2016 08:50:33 +0000 (11:50 +0300)]
0027359: Visualization - add support of flipping for textured text

Added option for OpenGl_Text to use previous model-view state.
Added interface to enable this option in Prs3d_Text
Added option to enable flipping in AIS_NameLabel

Eliminated warning

7 years ago0026886: Visualization, TKV3d - eliminate global variables
mpa [Fri, 8 Apr 2016 06:47:47 +0000 (09:47 +0300)]
0026886: Visualization, TKV3d - eliminate global variables

- AIS_InteractiveContext - create new dummy class field to have an empty TopoDS_Shape object.
- AIS_Point, PrsMgr_PresentableObject - rename static variables to local function variables.
- AIS_Shape, SelectMgr_SelectableObject - remove unused static variables.
- Graphic3d_MaterialAspect, V3d_Viewer - make global static variables as constant.
- V3d_View - move global variable zRotation to class field.
- Move a variable theCurrentSelection as a field of AIS_InteractiveContext and AIS_LocalContext classes. Multiple selection is not used now, so each Context have an own selection.
- Move myStructGenId from Graphic3d_StructureManager to Graphic3d_GraphicDriver for identifying the structures in the driver.
- Move default variable (no shading light) from static value to the class field of OpenGL_View.
Porting note:
- Static methods of AIS_Selection is not used now. Methods of
  AIS_InteractiveContext::InitSelected(),::MoreSelected(),::NextSelected()
  should be used instead of static methods of AIS_Selection.

7 years ago0026434: Visualization - Textured objects should have priority over the environment...
isk [Tue, 29 Mar 2016 04:22:42 +0000 (07:22 +0300)]
0026434: Visualization - Textured objects should have priority over the environment mapping.
Add handle on environment texture in OpenGl_Workspace.
Add a new parameter UseEnvironmentTexture to the Graphic3d_ZLayerSettings.
OSD layers don't use environment texture by default.
zbuffertrihedron doesn't use environment texture.
vzlayer can enable/disable environment texture mappping.
Delete unnecessary files Graphic3d_TypeOfSurfaceDetail.hxx and V3d_TypeOfSurface.hxx.
Delete functions SurfaceDetailType and SetSurfaceDetailType functions from Graphic3d_CView.
Delete functions SurfaceDetailState and UpdateSurfaceDetailStateTo from OpenGl_ShaderManager.
Delete class OpenGl_SurfaceDetailState.
Delete functions SurfaceDetailType and SetSurfaceDetailType from OpenGl_View.
Delete functions SetSurfaceDetail and SurfaceDetail() from V3d_View.
Delete functions SetDefaultSurfaceDetail and DefaultSurfaceDetail from V3d_Viewer.
Delete draw command VSetTextureMode.
Add description in dox.

7 years ago0027275: Unused formal parameter in BSplCLib::EvalBsplineBasis
aml [Thu, 17 Mar 2016 11:22:22 +0000 (14:22 +0300)]
0027275: Unused formal parameter in BSplCLib::EvalBsplineBasis

Unused formal parameter is deleted.

7 years ago0027234: Code duplication: Convert_CompBezierCurvesToBSplineCurve* in ShapeConstruct
abv [Tue, 8 Mar 2016 16:39:15 +0000 (19:39 +0300)]
0027234: Code duplication: Convert_CompBezierCurvesToBSplineCurve* in ShapeConstruct

Classes from ShapeConstruct duplicating the ones from Convert package are removed.
Protection against joining segments when degree is 1 is introduced in Convert classes.
Optimization previously made in Convert_CompBezierCurvesToBSplineCurve class (within #25256) is applied to 2d equivalent.

Data for automatic upgrade procedure are extended to replace removed classes by their duplicates from Convert.

// cout disabled unless OCCT_DEBUG is defined

7 years ago0026930: ShapeConstruct_ProjectCurveOnSurface returns a B-Spline instead of line...
ika [Fri, 19 Feb 2016 11:05:43 +0000 (14:05 +0300)]
0026930: ShapeConstruct_ProjectCurveOnSurface returns a B-Spline instead of line (again)

Upgrade check of closeness of 2dcurve to line during projection:
  For C1 and more surfaces check distance to normal, not to surface, for C0 surfaces update tolerance formula.
  Add check for possible period jump in some inner point.
Update some test cases.

Add cache saving for lines,
update fixPeriodicTroubles() function, using parameters from cashe.

Small correction of test cases for issue #26930

fix processing of points from cache.

Update of test cases according to the new behavior

Fix behavior of fixPeriodicityTroubles() on different isolines,
fix copy/paste mistake.
Update test cases:
iges_2 C4 - return to master values
step_3 E6 - improvement.

8 years ago0027385: assertion in static initializer in a Windows GUI application
abv [Thu, 14 Apr 2016 12:41:59 +0000 (15:41 +0300)]
0027385: assertion in static initializer in a Windows GUI application

Useless global pointer to cerr is removed from OSD_Error, along with methods supporting its customization (Windows-only).
Global accessors to environment variables are replaced by locals in UnitsAPI.cxx.

8 years ago0027272: FixMissingSeam function creates G1 seam curves
gka [Tue, 12 Apr 2016 13:34:34 +0000 (16:34 +0300)]
0027272: FixMissingSeam function creates G1 seam curves

Method BRepLib::EncodeRegularity() is improved to set regularity GeomAbs_CN for edges lying on the same-domain surfaces (where derivatives on both surfaces are equal in all points).

DRAW command getedgeregularity is added to query regularity of the edge on specified faces.
DRAW command edgeregul is removed (this functionality is provided by command encoderegularity).

Added tests: bugs modalg_6 bug27272, bug27383_1, bug27383_2

Correction of shape name in test case for issue CR27272

8 years ago0027351: Custom OCCT DLL name suffixes
ski [Fri, 8 Apr 2016 13:55:24 +0000 (16:55 +0300)]
0027351: Custom OCCT DLL name suffixes

Added generation of libraries with postfix.

8 years ago0027380: cmake should not try to link against 3rd-party libs when configuring a stati...
ski [Wed, 13 Apr 2016 09:38:17 +0000 (12:38 +0300)]
0027380: cmake should not try to link against 3rd-party libs when configuring a static OCCT build

Linking against 3rd-party libs when configuring a static OCCT build is eliminated.

math library is not linked if build is static

also: an info message is expanded by several words describing using of only header files of 3rdparties

Removed unnecessary for static build CMake gui variables

8 years ago0027369: Assistance building Parasolid importer
apn [Mon, 11 Apr 2016 12:37:49 +0000 (15:37 +0300)]
0027369: Assistance building Parasolid importer

OpenCASCADE${OCCT_MODULE}Targets are generated for all dependent toolkits.

8 years ago0027280: HLR algorithms taking seam edges into account
jgv [Thu, 7 Apr 2016 14:13:49 +0000 (17:13 +0300)]
0027280: HLR algorithms taking seam edges into account

Interface of HLRAppli_ReflectLines has been modified.
New Draw command "hlrin3d" has been added.

8 years ago0026918: GeomLib_CheckCurveOnSurface cannot compute distance if 3D-curve is periodic
nbv [Tue, 12 Apr 2016 15:16:00 +0000 (18:16 +0300)]
0026918: GeomLib_CheckCurveOnSurface cannot compute distance if 3D-curve is periodic

Creation of test case for this issue.

8 years ago0027124: Invalid curve on surface in the result of General Fuse operation
nbv [Tue, 12 Apr 2016 13:45:37 +0000 (16:45 +0300)]
0027124: Invalid curve on surface in the result of General Fuse operation

Creation of test cases for issues #27124 and #27129.

8 years ago0027372: Import/Export dimension text position
ika [Thu, 7 Apr 2016 11:57:51 +0000 (14:57 +0300)]
0027372: Import/Export dimension text position

Modify Import/Export STEP.
Add Draw commands to set and get orientation and position of dimension text.
Add Draw commands to set and get presentation.
Add test.

8 years ago0027322: geom/revolution_00/A1: Incorrect pcurve creation
ifv [Thu, 7 Apr 2016 12:35:39 +0000 (15:35 +0300)]
0027322: geom/revolution_00/A1: Incorrect pcurve creation

ProjLib_Cone.cxx - correction wrong calculation of projection line on cone
GeomInt_IntSS_1.cxx - modification of method BuildPCurves(...) - adjusting first or last knots of 2d Curve
ProjLib_ComputeApprox.cxx - modification of method Function_SetUVBounds(...) for case projecting line on cone.
Modification of tests - removing first TODO

Test case for issue #27322

8 years ago0027379: Unable to build TKXDESTEP using WOK (wgenproj command) in current master
emv [Tue, 12 Apr 2016 10:26:10 +0000 (13:26 +0300)]
0027379: Unable to build TKXDESTEP using WOK (wgenproj command) in current master

The dependency on TKShHealing has been added.

8 years ago0027321: Configuration, CMake - check for doxygen during the first configuration...
ibs [Wed, 30 Mar 2016 12:55:59 +0000 (15:55 +0300)]
0027321: Configuration, CMake - check for doxygen during the first configuration and turn on overview building if doxygen is found

8 years agoAdjusting test cases for current state of OCCT
bugmaster [Fri, 8 Apr 2016 08:33:23 +0000 (11:33 +0300)]
Adjusting test cases for current state of OCCT

8 years ago0027271: Unifysamedomain invalid result
jgv [Fri, 25 Mar 2016 14:40:07 +0000 (17:40 +0300)]
0027271: Unifysamedomain invalid result

Prevent merging of faces along periodic direction.

Test case "bugs heal bug27000_1" has been corrected to actual state of the algorithm.

8 years ago0027304: Implemetation of descriptions for Dimensions
ika [Tue, 5 Apr 2016 11:53:17 +0000 (14:53 +0300)]
0027304: Implemetation of descriptions for Dimensions

- Add poles with array of descriptions and description names to DimensionObject,
- Modify Import/Export STEP,
- Add Draw commands for descriptions,
- Create test,
- Reorganize end script for test/gdt/dimensions.

8 years agoIncrementation of OCCT version up to 7.0.1
bugmaster [Thu, 7 Apr 2016 14:50:11 +0000 (17:50 +0300)]
Incrementation of OCCT version up to 7.0.1

8 years ago0027299: Incorrect result of the normal projection algorithm
aml [Fri, 25 Mar 2016 10:10:12 +0000 (13:10 +0300)]
0027299: Incorrect result of the normal projection algorithm

Curve splitting is added to handle seam passing by initial curve.
test cases are added.

Minor corrections.

8 years ago0027117: BRepClass3d_SolidClassifier doesn't take into account vertex/edge/face toler...
isn [Tue, 15 Mar 2016 13:38:11 +0000 (16:38 +0300)]
0027117: BRepClass3d_SolidClassifier doesn't take into account vertex/edge/face tolerances

Various improvements in point-solid classifier:

1) Refactoring.
2) BndBoxTree is extracted into separate class.
3) UB-tree calculation is cashed to improve point-solid classification speed.
4) Ray / curve intersection improved by trimmed parameters and correct order.
5) Fixes in logic.
6) Calculation caching at the classifier level.

3D-claasifier now takes into the account the vertex/edges tolerances. If the given point lays inside the tolerance area of vertex or edge of the solid it's classified as TopAbs_ON.
The behavior of IntCurvesFace_Intersector::Perform was changed. Now it may use optional null-tolerance to classify 2d-point relatively to the given face.
UBTreeFiller is used to speedup intersection process between edges/vertices and the point.
The test case 'boolean gdml_private ZH2' extensively uses the SolidClassifier. After this fix it returns the correct classification statuses, which leads to incorrect result shape (reported by checkshape). Yet the result shape without this fix also seems to be incorrect (one of the isolines goes out of boundary of the face). Thats why it's marked with 'TODO'.

Corrections in test cases.

Test case is added.

8 years ago0027336: Update STEP entities, according to AP242
ika [Wed, 9 Mar 2016 11:25:17 +0000 (14:25 +0300)]
0027336: Update STEP entities, according to AP242

Add header  and parameter for AP242.

Update entities:
product_definition_relationship
styled_item

Update select types:
security_classification_item
person_and_organization_item
organization_item
group_item
external_identification_item
document_reference_item
date_item
approval_item
external_identification_item
draughting_callout_element
value_qualifier
invisibility_context

update gdt tests.

fix compilation warnings.

8 years ago0027315: UnifySameDomain leaves unmerged edges
msv [Fri, 1 Apr 2016 15:26:06 +0000 (18:26 +0300)]
0027315: UnifySameDomain leaves unmerged edges

Adapt the internal function MergeEdges to the case when on input it takes a set of edges constituting several connected chains.

8 years ago0027332: Duplicate output from Draw Interpreter in cout in the debug function Draw_Eval
emv [Fri, 1 Apr 2016 07:01:15 +0000 (10:01 +0300)]
0027332: Duplicate output from Draw Interpreter in cout in the debug function Draw_Eval

8 years ago0027300: Boolean operation produces invalid shape in terms of "bopargcheck" command
nbv [Tue, 29 Mar 2016 13:29:55 +0000 (16:29 +0300)]
0027300: Boolean operation produces invalid shape in terms of "bopargcheck" command

1. Check, if value found by math_PSO algorithm cannot be precised by math_NewtonMinimum algorithm. In this case, we call math_PSO algorithm repeatedly, however, with other parameters.

2. Some margin of edge tolerance value has been provided in IntTools_Tools class.

3. Interface of math_NewtonMinimum class has been changed (method GetStatus() has been added).

Correction of some test cases according to their new behavior.

8 years ago0027309: Result of UnifySameDomain has InvalidMultiConnexity error
msv [Fri, 25 Mar 2016 16:19:35 +0000 (19:19 +0300)]
0027309: Result of UnifySameDomain has InvalidMultiConnexity error

The update of the set of boundary edges has been added for the case when faces containing milti-connected edges are excluded from merging.

Update test cases for unifysamedom to generate snapshots.

8 years ago0027235: Export GDT: Annotation plane and Presentation.
ika [Wed, 9 Mar 2016 11:25:17 +0000 (14:25 +0300)]
0027235: Export GDT: Annotation plane and Presentation.

Implement Null_Style STEP type.
Implement export of annotation planes and presentation as tessellated geometry.
Add tests.

8 years ago0027082: UnifySameDomain must add internal edges where appropriate to resolve self...
msv [Tue, 22 Mar 2016 12:23:00 +0000 (15:23 +0300)]
0027082: UnifySameDomain must add internal edges where appropriate to resolve self-intersections

The new option AllowInternalEdges has been added in the class ShapeUpgrade_UnifySameDomain. It determines how the algorithm treats the situation when two faces can be merged together but they have connection with another face via the common edge.

With this option turned on, merging of such faces is not stopped, but the multiconnected edges are added to the merged face as INTERNAL edges.

By default it is false. In this mode such merging is forbidden, so the result shape will not contain any new INTERNAL edges.

The behavior of the algorithm has been changed so that it does not merge faces from different shells.

8 years ago0027184: BRepExtrema_DistShapeShape returns wrong result.
aml [Fri, 19 Feb 2016 11:55:13 +0000 (14:55 +0300)]
0027184: BRepExtrema_DistShapeShape returns wrong result.

Local optimization default algorithm is changed to "distance" based.
Test case added.

8 years ago0026832: TFunction_Iterator won't work if ExecutionStatus is Standard_False.
vro [Fri, 19 Feb 2016 09:21:43 +0000 (12:21 +0300)]
0026832: TFunction_Iterator won't work if ExecutionStatus is Standard_False.
The method TFunction_Iterator::More() is corrected().

8 years ago0027151: Exception is raised during performing command "splitshape" in the Test Harness
gka [Wed, 2 Mar 2016 08:01:02 +0000 (11:01 +0300)]
0027151: Exception is raised during performing command "splitshape" in the Test Harness

Added protection for cases of the overlapped edges.
Returning value for methods in the LocOpe_SplitShape::AddOpenWire(), LocOpe_SplitShape::AddClosedWire() are modified from void to boolean in order to avoid raising exceptions.
To avoid regression for test case modalg_5 bug25243 tolerance of vertices of the degenerated edges are increased to value of tolerance of the splitting vertex for case when splitting vertex was projected on  the degenerated edge.

8 years ago0027192: Improvement of storage of Ocaf document in XML file format
vro [Wed, 24 Feb 2016 07:35:52 +0000 (10:35 +0300)]
0027192: Improvement of storage of Ocaf document in XML file format

Improvement of code in XmlMDataStd_ExtStringArrayDriver.cxx

Corrected test-script

8 years ago0027146: Create command checkplatform
ski [Tue, 9 Feb 2016 14:31:17 +0000 (17:31 +0300)]
0027146: Create command checkplatform

Command checkplatform was created.
All test cases were updated.

Global variable os_type was eliminated.
New option -osx (MacOS) for procedure checkplatform was added.

8 years ago0026321: Crash in BRepMesh_FastDiscret::Add
oan [Tue, 16 Feb 2016 16:08:13 +0000 (19:08 +0300)]
0026321: Crash in BRepMesh_FastDiscret::Add

BRepMesh_FaceAttribute: distinguish constructor and parameters initialization.

8 years ago0027229: Extema documentation is out of date.
aml [Wed, 9 Mar 2016 04:33:44 +0000 (07:33 +0300)]
0027229: Extema documentation is out of date.

Extrema documentation updated to be up to date.

8 years ago0027354: Visualization: TKOpenGl - OpenGl_TextureBufferArb API should be extended
duv [Tue, 5 Apr 2016 09:25:13 +0000 (12:25 +0300)]
0027354: Visualization: TKOpenGl - OpenGl_TextureBufferArb API should be extended

All variants of Init function of OpenGl_VertexBuffer are now also supported by OpenGl_TextureBufferArb.
Missing texture formats added to OpenGl_GlFunctions.hxx.

8 years ago0027365: Configuration, CMake - file writing error appears if 3RDPARTY_DIR is empty CR0-OCCT7 V7_0_0
ibs [Thu, 7 Apr 2016 20:38:03 +0000 (23:38 +0300)]
0027365: Configuration, CMake - file writing error appears if 3RDPARTY_DIR is empty

3RDPARTY_DIR and INSTALL_DIR are quoted in a file TO_CMAKE_PATH command to avoid error when variable is empty

8 years ago0027355: Configuration, CMake: install path on Windows is incorrectly processed
abv [Tue, 5 Apr 2016 10:34:28 +0000 (13:34 +0300)]
0027355: Configuration, CMake: install path on Windows is incorrectly processed

Avoid resetting CMAKE_INSTALL_PREFIX if defined.
Back slashes are converted to straight slashes in INSTALL_DIR and 3RDPARTY_DIR variables.

8 years ago0027301: CMake: export targets for OCCT
ski [Mon, 4 Apr 2016 16:51:24 +0000 (19:51 +0300)]
0027301: CMake: export targets for OCCT

Enabled creation of CMake target files (one per module) for OCCT at install time.
Variables enumerating available OCCT toolkits by module are added in CMake configuration file.
Added check of availability of OCCT modules specified by OpenCASCADE_FIND_COMPONENTS variable.
Location of CMake configuration and target files in Windows layout is changed to $INSTALL_DIR/cmake (thus common for all configurations), to be found by standard search logic of CMake find_package() function.

8 years agoIncrementation of OCCT version up to 7.0.0
bugmaster [Thu, 31 Mar 2016 09:11:20 +0000 (12:11 +0300)]
Incrementation of OCCT version up to 7.0.0

8 years ago0027337: [Regression vs. 6.9.1] Selection highlight is poor in ray traced mode with...
duv [Mon, 4 Apr 2016 09:16:49 +0000 (12:16 +0300)]
0027337: [Regression vs. 6.9.1] Selection highlight is poor in ray traced mode with FSAA

For FSAA mode we now store the depth values from first sample in myRaytraceFBO1 and do not modify it while collecting the rest of samples.
When all samples are gathered we fetch color from myRaytraceFBO2 and depth from myRaytraceFBO1 and display it to the current FBO.

Test bugs vis bug27337 added.

8 years ago0027338: Minor corrections in Tcl samples and documentation
abv [Sat, 2 Apr 2016 13:38:09 +0000 (16:38 +0300)]
0027338: Minor corrections in Tcl samples and documentation

In samples:
- Fixed syntax error in DataExchangeDemo.tcl
- MSAA is enabled in some tests to provide better presentation
- Option to build isolines on triangulation is used in some samples to avoid artifacts in selection highlight
- Colors are corrected in cpu.tcl

In documentation:
- Reference to automake tools is removed
- Standard_OVERRIDE is expanded to "override"

8 years ago0027325: [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExi...
nbv [Fri, 1 Apr 2016 11:54:12 +0000 (14:54 +0300)]
0027325: [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExistingPCurve doesn't work

1. Check, if edge is same-range, is now made with some tolerance (not strictly) in GeomLib_CheckCurveOnSurface class. Default value of this tolerance is Precision::PConfusion(). However, this value can be changed with corresponding interface.

2. DRAW-command "attachpcurve" has been added to BOPTest_UtilityCommands.cxx file. This command creates p-curve of given edge on given face. It can assign 2D-curve of one of the edge already included in the face or (if it is not possible) rebuilds new 2D-curve.

Creation of test case for this issue.
Adjusting test case boolean volumemaker A8 according to its new behavior on Windows.

8 years ago0027318: Memory is not released in Select3D_SensitiveSet when destroying AIS_Interact...
vpa [Wed, 30 Mar 2016 15:06:52 +0000 (18:06 +0300)]
0027318: Memory is not released in Select3D_SensitiveSet when destroying AIS_InteractiveContext without removing objects

- destructor was added to SelectMgr_SelectableObject to clean up selections;
- test case for issue #27318

Warnings elimination

8 years ago0027209: CMake - warnings on configuration step for VTK when using vc14 target
ski [Fri, 25 Mar 2016 12:03:55 +0000 (15:03 +0300)]
0027209: CMake - warnings on configuration step for VTK when using vc14 target

Added check for existence of VTK library target.

Removal of hard-coded path to Direct 3D import library is generalized and amended for VTK built with VC12 and VC14.

8 years ago0027290: CMake configuration files for OCCT
ski [Thu, 24 Mar 2016 07:23:03 +0000 (10:23 +0300)]
0027290: CMake configuration files for OCCT

CMake scripts are improved to install CMake configuration files for OpenCASCADE product.

8 years ago0027051: BRepBuilderAPI_GTransform produces invalid result
msv [Tue, 29 Mar 2016 07:08:04 +0000 (10:08 +0300)]
0027051: BRepBuilderAPI_GTransform produces invalid result

Test case for the bug.

Small correction of vprops reference value.

8 years ago0027167: Boolean operations produce an invalid shape
apn [Wed, 30 Mar 2016 09:36:41 +0000 (12:36 +0300)]
0027167: Boolean operations produce an invalid shape

Added test case bugs/modalg_6/bug27167.
Modified shape name in bugs/modalg_6/bug27190.

8 years ago0026929: Extrema_ECC hang/crash
msv [Sat, 26 Mar 2016 17:42:49 +0000 (20:42 +0300)]
0026929: Extrema_ECC hang/crash

Comparator functor corrected to return false in the case of equal elements.
Test case added.

8 years ago0027305: Using undefined variables, which causes devide by zero
nbv [Fri, 25 Mar 2016 12:57:49 +0000 (15:57 +0300)]
0027305: Using undefined variables, which causes devide by zero

Initialization of the boundaries of the function "FuncPreciseSeam" in IntPatch_ImpPrmIntersection.cxx.

8 years ago0025813: regression in Hidden Line Removal
jgv [Wed, 9 Mar 2016 14:46:55 +0000 (17:46 +0300)]
0025813: regression in Hidden Line Removal
Regressions that appeared in OCCT 6.6.0 are fixed.

Correction of test cases for issue #25813

Reference data update for test case bugs/mnodalg_6 /bug25908

8 years ago0027291: Command File->New crashes Import Export Qt sample on Linux
ski [Fri, 25 Mar 2016 09:34:28 +0000 (12:34 +0300)]
0027291: Command File->New crashes Import Export Qt sample on Linux

Crash on Qt 4.8.6 was fixed.

8 years ago0027306: Incorrect documentation for BRepOffsetAPI_NormalProjection class
aml [Fri, 25 Mar 2016 11:32:25 +0000 (14:32 +0300)]
0027306: Incorrect documentation for BRepOffsetAPI_NormalProjection class

Incorrect sentence is deleted to avoid misunderstanding.

8 years ago0027282: [Regression to 6.9.1] smesh/bugs_00/A6: Cut produces an empty shape
nbv [Wed, 24 Feb 2016 09:59:36 +0000 (12:59 +0300)]
0027282: [Regression to 6.9.1] smesh/bugs_00/A6: Cut produces an empty shape

1. The reason of the regression is not-closed intersection result. This problem has been solved (in this fix) by adding joint point to the both neighbors intersection lines (lines were extended to the this intersection point). It is made in IntPatch_WLineTool::ExtendTwoWlinesToEachOther(...) method.

2. Interface of IntPatch_PointLine and inherited classes has been changed. Methods ChangeVertex(...) and RemoveVertex(...) have been added.

Test cases for this issue have been created.

Small correction in the code.

8 years ago0027179: The algorithm of sharing edges in Boolean operation should be improved
nbv [Mon, 29 Feb 2016 14:52:20 +0000 (17:52 +0300)]
0027179: The algorithm of sharing edges in Boolean operation should be improved

1. New sharing algorithm has been implemented. If intermediate point of some edge is included in the tube with center taken in another edge and radius equaled to maximal vertex-tolerance of both edges then these two edges are considered to be shared. This know-how touches edges only, which have common blocks with interfered faces. If they do not have any common-blocks the algorithm will work as before.

2. Interface of BOPAlgo_PaveFiller::IsExistingPaveBlock(...) method has been changed.

Creation of test case for issues #27128 and #27179

Adjusting some test cases according to their new behavior, because they are IMPROVEMENTS really (TODOs have been deleted).

8 years ago0027283: Regression vs 6.9.1: smesh/bugs_11/L9: invalid result of General Fuse
msv [Mon, 21 Mar 2016 15:39:49 +0000 (18:39 +0300)]
0027283: Regression vs 6.9.1: smesh/bugs_11/L9: invalid result of General Fuse

Get rid of hard-coded tolerance 0.0001 for intersection with a conical surface.

Small correction of test case for issue CR27283

Adjusting test cases

8 years ago0027273: The computation of linear properties on shared shapes is not correct
ifv [Tue, 22 Mar 2016 11:41:43 +0000 (14:41 +0300)]
0027273: The computation of linear properties on shared shapes is not correct

New flag is inserted in parameters of static methods LinearProperties(...), surfaceProperties(...), volumeProperties(...). This flag defines to skip or not to skip second and next appearance shared topology entities (edges, faces, shells) in properties calculation.
Corresponding Draw commands is modified to take in account new parameter.

Test case for issue CR27273

Add option -skip into checkprops command

8 years ago0027175: Intersection algorithm with increased tolerance works incorrect with some...
nbv [Wed, 9 Mar 2016 06:54:42 +0000 (09:54 +0300)]
0027175: Intersection algorithm with increased tolerance works incorrect with some shapes

1. Algorithm of coincidence check between Walking and Restriction line has been improved in IntPatch_ImpPrmIntersection.
2. Creation of test case for this issue.

8 years ago0027133: Incorrect result of the normal projection algorithm
aml [Mon, 8 Feb 2016 08:39:54 +0000 (11:39 +0300)]
0027133: Incorrect result of the normal projection algorithm

Topological tolerances changed to geometric tolerances.
Protection from the usage of invalid result is added to restore good projection.
Test cases are updated.
Test case added.

Correction of test case for issue CR27133

8 years ago0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL progr...
kgv [Wed, 23 Mar 2016 09:42:17 +0000 (12:42 +0300)]
0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL programs for simplest configuration

OpenGl_ShaderManager::stdComputeLighting() - handle single directional light specifically
for compatibility with broken OpenGL ES drivers.

Added test cases using built-in GLSL shading programs.

8 years ago0026293: Error opening the document
apn [Tue, 22 Mar 2016 12:43:35 +0000 (15:43 +0300)]
0026293: Error opening the document

Added test cases bugs/caf/bug26293_1 bug26293_2

Unnecessary catch were deleted.

8 years ago0027274: Regression vs 6.9.1: Wrong result of General Fuse operation on two cylinders
emv [Thu, 17 Mar 2016 14:10:11 +0000 (17:10 +0300)]
0027274: Regression vs 6.9.1: Wrong result of General Fuse operation on two cylinders

When reducing the tolerance values of the vertices put on section curves take into
account all section curves, not only those for which the tolerance have been reduced
(method void BOPAlgo_PaveFiller::CorrectToleranceOfSE()).
The new protection has been added to avoid reducing of tolerance values of vertices
to the values less than the tolerance values of edges containing these vertices.

Adjusting of test case bugs/modalg_5/bug25232_9

8 years ago0027293: Add debug function to save a list of shapes into a compound
msv [Mon, 21 Mar 2016 15:45:29 +0000 (18:45 +0300)]
0027293: Add debug function to save a list of shapes into a compound

8 years agoAdjusting test case after changes of issue 27270
apv [Mon, 21 Mar 2016 11:56:33 +0000 (14:56 +0300)]
Adjusting test case after changes of issue 27270

8 years ago0027281: Some classes in GCPnts are not const-correct
Benjamin Bihler [Thu, 17 Mar 2016 13:19:37 +0000 (14:19 +0100)]
0027281: Some classes in GCPnts are not const-correct

const keyword has been added to the method parameters

8 years ago0027285: Visualization - selection of AIS_MultipleConnectedInteractive is broken
vpa [Fri, 18 Mar 2016 11:26:07 +0000 (14:26 +0300)]
0027285: Visualization - selection of AIS_MultipleConnectedInteractive is broken

- method SelectMgr_SelectableObject::HasSelection became virtual, unnecessary variable was removed;
- redefined HasSelection method for multiple connected interactives;
- AIS_InteractiveContext::AddOrRemoveSelected was corrected to use global selection owner;
- test case for issue #27285

8 years ago0027270: Boolean operations: incorrect assembling of sub-shapes in container shapes...
emv [Thu, 17 Mar 2016 09:04:59 +0000 (12:04 +0300)]
0027270: Boolean operations: incorrect assembling of sub-shapes in container shapes (wires, shells, compsolids)

The map to protect the result of Boolean operation from duplicating parts in containers has been removed (method void BOPAlgo_BOP::BuildShape()).
The results of Boolean operations on containers will be the following:
1. For the arguments of collection type (WIRE, SHELL, COMPSOLID) containing overlapping parts the overlapping parts
passed into result will be repeated for each container from the input shapes containing such parts.
2. The result of the operation Fuse for the arguments of collection type (WIRE, SHELL, COMPSOLID) will contain
the same number of containers as the arguments. The overlapping parts (EDGES/FACES/SOLIDS) will be shared among them.
For example, the result of Fuse operation between two wires will be two wires sharing coinciding edges if any.
3. The result of the operation Common for the arguments of collection type (WIRE, SHELL, COMPSOLID) will consist
of the containers containing the same overlapping parts. For example, the result of Common operation between two
fully/partially overlapping wires will be two wires containing the same edges.

Style correction.

Added test case bugs/modalg_1/bug13538
Modified boolean test cases according to new begavior

8 years ago0027261: Incorrect bounding boxes computed for the b-spline faces
aml [Tue, 15 Mar 2016 11:57:15 +0000 (14:57 +0300)]
0027261: Incorrect bounding boxes computed for the b-spline faces

Protection from the out of bounds parameters is added.
Test cases are added.

8 years ago0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install...
ski [Fri, 18 Mar 2016 05:25:53 +0000 (08:25 +0300)]
0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install variables

Possibility to customize layout of installation of OCCT is introduced by:
- variable INSTALL_DIR_LAYOUT - select one of the two predefined layouts: either Windows (classic OCCT layout) or Unix (Linux standard)
- variables INSTALL_DIR_* (BIN, LIB, INCLUDE, RESOURCE, DOC, TESTS, SCRIPT, SAMPLES, DATA) - specify locations of relevant components
- variable INSTALL_DIR_WITH_VERSION (bool) - specifies whether full version of OCCT should be used in paths in Unix layout

Files LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt are always installed.

Environment is extended to support non-default layouts.
For that, environment variables "CSF_OCCT*Path" are defined, corresponding to CMake variables INSTALL_DIR_* described above.
Visual Studio environment, DRAW, tests, samples are amended to use these variables instead of (or as alternative to) CASROOT.

Settings of Products-specific vars are removed from environment scripts.

File genconf.bat was corrected to avoid error message for the case when path to TCL contains spaces.

Product name in rc files changed to "Open CASCADE Technology".

8 years ago0027253: Boolean cut produces invalid result shape
msv [Fri, 11 Mar 2016 13:28:31 +0000 (16:28 +0300)]
0027253: Boolean cut produces invalid result shape

Add test case for this bug.

8 years ago0027263: Regression vs 6.9.1: Exception is raised during intersection of two faces
nbv [Tue, 15 Mar 2016 12:26:11 +0000 (15:26 +0300)]
0027263: Regression vs 6.9.1: Exception is raised during intersection of two faces

1. Protection against getting access to null-handle has been entered.

2. Function AreSamePoints() has been substituted by appropriate method IntSurf_PntOn2S::IsSame(...)

Test cases for issues #27262 and #27263 have been created.

8 years ago0027190: IntPatch_ImpPrmIntersection algorithm does not split intersection curve...
nbv [Wed, 24 Feb 2016 09:59:36 +0000 (12:59 +0300)]
0027190: IntPatch_ImpPrmIntersection algorithm does not split intersection curve by the seam-edge of the quadric

1. Processing when IntPatch_WLine/IntPatch_RLine goes through the seam edge has been improved in DecomposeResult(...) function (see IntPatch_ImpPrmIntersection.cxx).
2. Incorrect initialization of last point of IntPatch_WLine/IntPatch_RLine has been eliminated. Earlier it was the reason of exception.

Creation of test case for this issue.

Adjusting some test cases according to their new behavior. Namely:

1) tests\bugs\modalg_4\bug825 (bug825_2)
Details are described in issue #25915. In short, new intersection algorithm works better than old (WLine without "jumping"). However, Boolean operation loses degenerated edges of the sphere. Consequently, we get the result with Not-closed face.

2) tests\bugs\modalg_6\bug26684_2
TolReached of intersection curve has become smaller. Consequently, intersection algorithm works better than earlier.

8 years ago0027267: [Regression to 6.9.1] geom/boolean_operations_06/G3: Cut produces invalid...
nbv [Wed, 16 Mar 2016 14:49:16 +0000 (17:49 +0300)]
0027267: [Regression to 6.9.1] geom/boolean_operations_06/G3: Cut produces invalid shape

Calling IntPatch_WLineTool::ComputePurgedWLine() algorithm is forbidden if Walking-line is obtained from analytic line.

Creation of test case for this issue.

8 years ago0027277: geom/extruded_00/A0: OCAF document is not opened correctly
abv [Thu, 17 Mar 2016 12:04:19 +0000 (15:04 +0300)]
0027277: geom/extruded_00/A0: OCAF document is not opened correctly

Reading of attribute TDataStd_ExtStringList from CSFDB format is corrected for null strings: empty value is used.

Test bugs caf bug27277 added.

8 years ago0027266: Coding, TKOpenGl - drop unused files OpenGl_telem_util.hxx and OpenGl_tgl_fu...
kgv [Tue, 15 Mar 2016 18:02:32 +0000 (21:02 +0300)]
0027266: Coding, TKOpenGl - drop unused files OpenGl_telem_util.hxx and OpenGl_tgl_funcs.hxx

8 years ago0027241: Create a complete test case to verify reading of all attribute types from...
myn [Fri, 11 Mar 2016 19:08:01 +0000 (22:08 +0300)]
0027241: Create a complete test case to verify reading of all attribute types from MDTV-Standard document

Added test case that works in one of two modes:
1) create synthetic document (in old version of OCCT) containing all possible attributes.
2) open the document and compare all attributes with expected values.

Fixed reading of TDataStd_NamedData, TDataXtd_PatternStd, and PColStd_HArray2OfReal.
Point and curve representations are created even from NULL geometry handles.
The code is simplified by abandoning usage of templates from StdObjMgt_ContentTypes class for persistent data elements.

Fixed SetAsciiString Draw command failed when the target label contained NamedData attribute.

8 years ago0027237: genproj file does not take into account any arguments
abv [Mon, 14 Mar 2016 14:45:32 +0000 (17:45 +0300)]
0027237: genproj file does not take into account any arguments

Arguments of genproj tool are revised:
* -path option eliminated (current directory is always used);
* IDE should be always indicated by first argument (instead of -target=<ide> option);
* second argument can be used to specify non-default platform (wnt, mac, lin, ios, qnx);
* option -h, -help, --help can be used to get help
* option -static can be used to build static libs with XCode

README.txt and docs on building are updated.
codeblocks.bat is corrected to be able to detect 32-bit installation of Code::Blocks on 64-bit Windows.
Remains of support of OpenCL (obsolete) are commented out in genconf.tcl
genproj.tcl will not copy env.bat if it already exists.

8 years ago0027242: Configuration - add missing Standard_EXPORT to OpenGl_TextBuilder class...
kgv [Thu, 10 Mar 2016 06:53:35 +0000 (09:53 +0300)]
0027242: Configuration - add missing Standard_EXPORT to OpenGl_TextBuilder class constructor

8 years ago0027231: Obsolete OCCT features still mentioned in the documentation
abv [Tue, 8 Mar 2016 11:12:45 +0000 (14:12 +0300)]
0027231: Obsolete OCCT features still mentioned in the documentation

A few remaining places mentioning .cdl files are corrected to mention only .hxx
Obsolete description of storage in old format is revised in OCAF User's Guide.