occt.git
6 years ago0028704: Coding Rules - recommend adding the class header first in its source file
kgv [Tue, 2 May 2017 06:09:27 +0000 (09:09 +0300)]
0028704: Coding Rules - recommend adding the class header first in its source file

6 years ago0028683: Wrong result of CUT operation
emv [Wed, 26 Apr 2017 12:42:13 +0000 (15:42 +0300)]
0028683: Wrong result of CUT operation

Avoid creation of the small section edges in the Boolean Operations algorithm.

6 years ago0028347: Reuse OCCT implementation for producing end-user documentation for Products
apn [Thu, 30 Mar 2017 09:13:19 +0000 (12:13 +0300)]
0028347: Reuse OCCT implementation for producing end-user documentation for Products

Updated destination directory for generated by gendoc proc pdf files.

Added additional option "-update_images_size" for gendoc procedure to update width of images in *.md files during pdf generation for @figure alias.

Documentation was updated to use alias @figure instead of outdated @image

Added support of svg image format in procedure OCCDoc_UpdateImagesSize.

Added generation of overview for product components.

Added generation of products refman/chm for each component.

6 years ago0028677: Avoid change of wire orientation in BRepLib_MakeFace if the wire is open
nbv [Mon, 24 Apr 2017 10:48:28 +0000 (13:48 +0300)]
0028677: Avoid change of wire orientation in BRepLib_MakeFace if the wire is open

Method BRepLib_MakeFace::CheckInside() is not called for open wire. So, if the input wire is open its orientation is not changed in the result face.

6 years ago0028675: Invalid result of Boolean Cut operation when running with fuzzy value
emv [Mon, 24 Apr 2017 06:04:42 +0000 (09:04 +0300)]
0028675: Invalid result of Boolean Cut operation when running with fuzzy value

Avoid small edges with empty list of PaveBlocks (removed edges) in the result (BOPAlgo_Builder::FillImagesEdges()).

6 years ago0028691: Storage of Ocaf documents in XML file format in old document version
vro [Wed, 3 May 2017 12:22:21 +0000 (15:22 +0300)]
0028691: Storage of Ocaf documents in XML file format in old document version

6 years ago0027925: Visualization - implement order-independent transparency algorithm within...
apl [Tue, 25 Apr 2017 12:10:15 +0000 (15:10 +0300)]
0027925: Visualization - implement order-independent transparency algorithm within rasterization rendering

Weighted, Blended Order-Independent Transparency algorithm has been added rasterization pipeline.
In contrast to classical blending transparency it makes transparent objects look independent
from point of view. It also gives better depth occlusion when being used together with a weight factor
based on value of a GL depth buffer. The feature supports desktop OpenGL, OpenGL ES 3.0, ANGLE
and can be used together with MSAA on desktop GL.

To be used it require availability of:
1) Shaders pipeline.
2) Floating point color format for framebuffer (GL_ARB_color_buffer_float).
3) Multiple render targets (GL_ARB_draw_buffers).

Patch does not modify API and does not require application porting.
It adds new rendering options to Graphic3d_RenderingParams structure:
a) Transparency method from enumeration.
b) Scalar factor [0-1] controlling influence of a fragment's depth to its visibility.

Patch also simplifies processing of transparent objects for standard method:
rendering priority of transparent graphical structures is managed automatically,
therefore there is no need to care about it at application's side.

6 years ago0028698: Visualization, Graphic3d_CView - mark methods MinMaxValues() and NumberOfDis...
kgv [Fri, 28 Apr 2017 09:43:57 +0000 (12:43 +0300)]
0028698: Visualization, Graphic3d_CView - mark methods MinMaxValues() and NumberOfDisplayedStructures() virtual

6 years ago0028673: getsourcefile Draw command return different output on Linux and Windows...
msv [Fri, 21 Apr 2017 14:18:14 +0000 (17:18 +0300)]
0028673: getsourcefile Draw command return different output on Linux and Windows platforms

The method Draw_Interpretor::add() has been corrected so that the command getsourcefile returned the relative path starting with "src" without leading "/" on all platforms.

6 years ago0028693: Coding Rules - TDataStd_ExtStringArray and TDataStd_IntegerArray should...
kgv [Wed, 26 Apr 2017 14:51:30 +0000 (17:51 +0300)]
0028693: Coding Rules - TDataStd_ExtStringArray and TDataStd_IntegerArray should return Array() with const reference

6 years ago0027981: BRepExtrema_DistShapeShape returns not null distance on interfered shapes
ifv [Thu, 30 Mar 2017 13:44:21 +0000 (16:44 +0300)]
0027981: BRepExtrema_DistShapeShape returns not null distance on interfered shapes

The reason of the bug is bad start points on surfaces, which are used by searching roots algorithm as start points for iteration process. Starting with these points algorithm for searching roots of set of equations cannot reach correct root. To find correct start points increasing number of sampling points is applied.

6 years ago0027958: Visualization, AIS_Trihedron - add shaded presentation option
nds [Wed, 15 Feb 2017 12:59:48 +0000 (15:59 +0300)]
0027958: Visualization, AIS_Trihedron - add shaded presentation option
A new Shaded presentation flag configured through Datum aspect (NOT as usual Display Mode).
Creation of auxiliary Axis/Point/Plane presentations in Trihedron presentation is removed.
'vtrihedron' DRAW command to change parameters of trihedron is extended to cover whole functionality of AIS_Trihedron.

The following classes are redesignede:
AIS_Trihedron,
Prs3d_DatumAspect.

The followin enumermations are created to manage properties of trihedron:
Prs3d_DatumAttribute,
Prs3d/Prs3d_DatumAxes,
Prs3d_DatumMode

6 years ago0028639: Improve performance of the IntPolyh_MaillageAffinage algorithm
emv [Fri, 7 Apr 2017 04:43:44 +0000 (07:43 +0300)]
0028639: Improve performance of the IntPolyh_MaillageAffinage algorithm

The following improvements have been made:
1. Linking edges to triangles while creating the edges.
2. Replacing the array of couples of intersecting triangles with the list to avoid unnecessary allocations of memory.
3. Using the algorithm of unbalanced binary tree when looking for pairs of interfering triangles.
4. Building bounding boxes for the triangles only once and then reusing it.
5. Making the simple methods of the IntPolyh_Point, IntPolyh_Edge, IntPolyh_Triangle, IntPolyh_Couple classes inline.
6. The following methods of the *IntPolyh_Triangle* class have been removed as unused:
  - *CheckCommonEdge*
  - *SetEdgeandOrientation*
  - *MultipleMiddleRefinement2*.
7. The method *IntPolyh_Triangle::TriangleDeflection* has been replaced with the *IntPolyh_Triangle::ComputeDeflection*.
8. The following methods of the *IntPolyh_MaillageAffinage* class have been removed as unused:
  - *LinkEdges2Triangles*;
  - *TriangleEdgeContact2*;
  - *StartingPointsResearch2*;
  - *NextStartingPointsResearch2*;
  - *TriangleComparePSP*;
  - *StartPointsCalcul*.

6 years ago0028148: Samples - add 3D Viewer sample for iOS platform
aan [Tue, 6 Dec 2016 14:35:22 +0000 (17:35 +0300)]
0028148: Samples - add 3D Viewer sample for iOS platform

Sample that uses UIKit has been added.
- Import of STEP files is provided
- Zoom, Rotate, Pan actions are provided
- Selection of solids is supported

6 years ago0028661: BRepOffsetAPI_MakePipeShell throws an exception Standard_NoSuchObject: NColl...
jgv [Thu, 20 Apr 2017 11:08:07 +0000 (14:08 +0300)]
0028661: BRepOffsetAPI_MakePipeShell throws an exception Standard_NoSuchObject: NCollection_DataMap::Find

1. Clearance of fields of class has been added to the method BRepFill_PipeShell::Prepare().
2. Calculation of error on surfaces has been corrected in the method GeomFill_Sweep::BuildKPart().
3. New Draw command "errorsweep" has been added to check the error reached on the surfaces built by BRepOffsetAPI_MakePipeShell algorithm.

6 years ago0028679: Foundation Classes - OSD_Process::UserName rises EXC_BAD_ACCESS on iphone...
ibs [Mon, 24 Apr 2017 16:23:55 +0000 (19:23 +0300)]
0028679: Foundation Classes - OSD_Process::UserName rises EXC_BAD_ACCESS on iphone simulator

check for a null pointer is added

6 years ago0028601: ShapeFix_Shape increases tolerance of sub-shapes of a valid shape
imn [Fri, 14 Apr 2017 12:15:18 +0000 (15:15 +0300)]
0028601: ShapeFix_Shape increases tolerance of sub-shapes of a valid shape
- Avoid increase of edge/vertex tolerance if the distance between 3D curve and p-curve is within old tolerance.

6 years ago0028564: Support of applications using old persistence (ShapeSchema)
snn [Tue, 28 Mar 2017 14:13:04 +0000 (17:13 +0300)]
0028564: Support of applications using old persistence (ShapeSchema)

1. Bug fix in reading old persistent data using FSD_File storage driver
2. Persistence compatible with legacy format was restored for shapes
   a. Implemented a storage read / write wrapper for legacy persistence
   b. Added DRAW commands to read / write files in legacy format
   c. Added test cases for reading / writing operations with checking number of sub-shapes and physical properties
   d. Updated related sections of the development guide

6 years ago0028227: ShapeUpgrade_UnifySameDomain modifies the edges even if it is not requested
imn [Tue, 28 Mar 2017 13:00:13 +0000 (16:00 +0300)]
0028227: ShapeUpgrade_UnifySameDomain modifies the edges even if it is not requested

- The option SafeInputMode has been added in the class ShapeUpgrade_UnifySameDomain. If it is set then the input shape is protected against modifications of any aspects of its sub-shapes. Default value is true.
- The option "-nosafe" has been added in draw command "unifysamedom". If it is not set the algorithm is run with SafeInputMode switched off.

6 years ago0028663: Integration of TortoiseGit with bug tracker
msv [Wed, 19 Apr 2017 15:02:21 +0000 (18:02 +0300)]
0028663: Integration of TortoiseGit with bug tracker

The file .tgitconfig has been added to the root.

7 years ago0025209: Draw Harness - add command 'vnormals' and extend command 'normals' to show...
oan [Sun, 31 Jul 2016 10:09:37 +0000 (13:09 +0300)]
0025209: Draw Harness - add command 'vnormals' and extend command 'normals' to show variable number of normals

7 years ago0028605: Improve the algorithm of calculation of valid intersection range of an edge
msv [Fri, 24 Mar 2017 13:04:05 +0000 (16:04 +0300)]
0028605: Improve the algorithm of calculation of valid intersection range of an edge

- New method BRepLib::FindValidRange() has been added. It computes the range of the edge not covered by boundary vertices.
- The algorithm of calculation of valid intersection range in the class IntTools_ShrunkRange has been corrected to use the new method.
- The method BOPTools_AlgoTools::MakeSplitEdge() has been improved to protect against errors in the case of reversed orientation of the input edge.
- Two new Draw commands have been added:
  validrange - it calls the new method BRepLib::FindValidRange().
  tolsphere  - it shows tolerances of vertices by drawing a sphere around each vertex of the shape.
- The test cases "offset shape_type_i_c YE1,YE2" became better. The scripts have been corrected to reflect the new state.

7 years ago0028652: Improve performance of the 3D offset algorithm for the planar cases
emv [Thu, 13 Apr 2017 08:49:43 +0000 (11:49 +0300)]
0028652: Improve performance of the 3D offset algorithm for the planar cases

Perform intersection of the planar untrimmed faces using IntTools_FaceFace algorithm directly.

7 years ago0028550: Foundation Classes - fix empty message passed to thrown exception
kgv [Tue, 18 Apr 2017 15:58:12 +0000 (18:58 +0300)]
0028550: Foundation Classes - fix empty message passed to thrown exception

7 years ago0027345: Foundation Classes, OSD_Environment - use consistent way to retrieve environ...
kgv [Tue, 18 Apr 2017 11:23:40 +0000 (14:23 +0300)]
0027345: Foundation Classes, OSD_Environment - use consistent way to retrieve environment variable value on Windows

OSD_Environment::Value() now uses GetEnvironmentVariableW() instead of _wgetenv()
which might provide outdated variable value cached by C runtime library.

7 years ago0027921: Visualization - add missing Graphic3d_AspectText3d method defining label...
kgv [Tue, 18 Apr 2017 18:34:28 +0000 (21:34 +0300)]
0027921: Visualization - add missing Graphic3d_AspectText3d method defining label transparency

7 years ago0028658: Cannot execute DRAW.exe with draw.bat
ski [Tue, 18 Apr 2017 09:48:53 +0000 (12:48 +0300)]
0028658: Cannot execute DRAW.exe with draw.bat

Macro THIRDPARTY_PRODUCT was updated to create separate variable which contains all used 3rdparty dll/library directories (used custom.bat/sh files).

Name of Tcl/Tk libraries for search were updated.

7 years ago0028621: Visualization - AIS_ColoredShape::UnsetTransparency() is not implemented
kgv [Tue, 4 Apr 2017 07:04:18 +0000 (10:04 +0300)]
0028621: Visualization - AIS_ColoredShape::UnsetTransparency() is not implemented

7 years ago0028657: Foundation Classes - OSD_Thread does not release thread resources on non...
kgv [Sat, 15 Apr 2017 15:57:30 +0000 (18:57 +0300)]
0028657: Foundation Classes - OSD_Thread does not release thread resources on non-Windows platforms

~OSD_Thread(), OSD_Thread::SetFunction() and OSD_Thread::Run()
now detach old thread also on platforms using pthreads.
OSD_Thread::Wait() now closes thread handle after joining.

7 years ago0028474: Boolean operations - General Fuse operator breaks validity of resulting...
emv [Mon, 20 Feb 2017 10:18:30 +0000 (13:18 +0300)]
0028474: Boolean operations - General Fuse operator breaks validity of resulting shape

1. Re-orienting the shell before making solid from it (MakeShell in BOPAlgo_ShellSplitter);

2. The implementation of the BOPTools_AlgoTools::IsSplitToReverse() method has been changed to
   make the usage of the Hatcher for looking for the point in the face default.

3. Test cases for the issue.

7 years ago0028456: BRepBuilderAPI_MakeFace modifies the input shape
isn [Tue, 14 Feb 2017 15:42:54 +0000 (18:42 +0300)]
0028456: BRepBuilderAPI_MakeFace modifies the input shape

1) BRepLib::UpdateTolerances(..) & BRepLib::SameParameter(..) functions now support non-mutable input feature. reshaper is used to store modified copies of subshapes of original (input) shape(s) as substitutions.
2) IsNewShape(..) method has been added to BRepTools_ReShape to check if the given shape has been recorded as a value

7 years ago0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
kgv [Sat, 8 Apr 2017 11:50:24 +0000 (14:50 +0300)]
0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation

7 years ago0028390: Visualization, AIS_InteractiveContext - add topmost-only picking strategy
kgv [Tue, 11 Apr 2017 07:25:21 +0000 (10:25 +0300)]
0028390: Visualization, AIS_InteractiveContext - add topmost-only picking strategy

AIS_InteractiveContext::PickingStrategy(), added new property
defining picking strategy SelectMgr_PickingStrategy.
Strategy SelectMgr_PickingStrategy_OnlyTopmost allows picking only
topmost detected entity not rejected by Selection Filters.

7 years ago0028641: Data Exchange - Support alpha-channel of color
ika [Mon, 27 Mar 2017 07:18:05 +0000 (10:18 +0300)]
0028641: Data Exchange - Support alpha-channel of color

Use Quantity_ColorRGBA instead Quantity_Color in XCAFDoc_Color attribute
Add methods to color tool for processing RGBA
Update Color driver
Update Draw commands

7 years ago0028626: Boolean CUT operation fails due to exception while intersecting two conical...
jgv [Fri, 7 Apr 2017 14:37:38 +0000 (17:37 +0300)]
0028626: Boolean CUT operation fails due to exception while intersecting two conical faces

1. Modification in static function IntersectionWithAnArc of IntPatch_ImpImpIntersection :
  small offset <du> was hardcoded as 1.e-9, now it is adapted to parametric step.

2. Removal of duplicated points of IntPatch_WLine is corrected.

7 years ago0028647: Visualization, OpenGl_AspectMarker - invalid marker size on re-setting aspec...
kgv [Tue, 11 Apr 2017 14:54:10 +0000 (17:54 +0300)]
0028647: Visualization, OpenGl_AspectMarker - invalid marker size on re-setting aspect without redraw

OpenGl_AspectMarker::Resources::BuildSprites(), fixed uninitialized theMarkerSize
in case if aspect has been already initialized for specified marker type.

Draw Harness command vaspects has been extended with new options -setMarkerType and -setMarkerSize.

7 years ago0028644: Visualization, AIS_MultipleConnectedInteractive - remove unused private...
kgv [Sat, 8 Apr 2017 12:03:18 +0000 (15:03 +0300)]
0028644: Visualization, AIS_MultipleConnectedInteractive - remove unused private class SelectMgr_AssemblyEntityOwner

7 years ago0028636: Optimisation of gp_* classes in order to avoid unnecesary calling gp_Dir...
msv [Thu, 6 Apr 2017 12:28:26 +0000 (15:28 +0300)]
0028636: Optimisation of gp_* classes in order to avoid unnecesary calling gp_Dir* constructors with normalisation

The improvement is concluded in replacement of calls to gp_Dir2d(1,0) with calls to gp_Dir2d(void).
Thus we avoid sqrt() that is called from within gp_Dir2d(double,double). The same is with direction in 3D space.

7 years ago0028179: Update documentation of Boolean Component
emv [Wed, 5 Apr 2017 04:59:14 +0000 (07:59 +0300)]
0028179: Update documentation of Boolean Component

7 years ago0028625: Visualization, OpenGl_FrameBuffer - initialize Render Buffer with stencil
kgv [Mon, 3 Apr 2017 19:53:17 +0000 (22:53 +0300)]
0028625: Visualization, OpenGl_FrameBuffer - initialize Render Buffer with stencil

7 years ago0028630: Visualization, StdPrs_ShadedShape - do not create Poly_Connect without need
kgv [Wed, 5 Apr 2017 12:59:49 +0000 (15:59 +0300)]
0028630: Visualization, StdPrs_ShadedShape - do not create Poly_Connect without need

7 years ago0028335: Configuration, Cmake - 3rdparty library names present in two places and...
ski [Fri, 27 Jan 2017 12:53:06 +0000 (15:53 +0300)]
0028335: Configuration, Cmake - 3rdparty library names present in two places and aren't sync with each other

Libraries names from file adm/cmake/occt_csf.cmake are used to search libraries.

Removed hardcoded variants of tcl/tk libraries names for searching.

7 years ago0028591: BOP Cut creates wrong result
emv [Wed, 29 Mar 2017 05:46:31 +0000 (08:46 +0300)]
0028591: BOP Cut creates wrong result

The Face/Face intersection procedure has been changed in Boolean Operations algorithm.
Previously, the intersection tolerance for all section curves between pair of faces has been calculated
as the maximal tolerance among all curves. Now, each curve has its own valid tolerance calculated
as the maximal deviation of the 3D curve from its 2D curves on faces or surfaces in case there are no 2D curves.

Thus, such methods of IntTools_FaceFace algorithm as TolReached3d(), TolReal() and TolReached2d() have been removed.
Now the tolerances of the curve can be obtained from the curve itself (IntTools_Curve - result of intersection):
- IntTools_Curve::Tolerance() - returns the valid tolerance for the curve;
- IntTools_Curve::TangentialTolerance() - returns the tangential tolerance, which depends on the size of the common
  between faces. Currently, this tolerance is computed for Plane/Plane cases only. For other case, the value
  of the tangential tolerance is the maximal tolerance of faces.

2D intersection tolerance (IntTools_FaceFace::TolReached2d()) has been completely removed from the algorithm as unused.

7 years ago0028615: Visualization, TKOpenGl - enabling MSAA leads to black screen on OpenGL ES
kgv [Sun, 2 Apr 2017 13:48:26 +0000 (16:48 +0300)]
0028615: Visualization, TKOpenGl - enabling MSAA leads to black screen on OpenGL ES

Removed redundant macros check.

7 years ago0028594: Geom2dAPI_Interpolate generated curve is not the same as proe
imn [Wed, 29 Mar 2017 15:28:33 +0000 (18:28 +0300)]
0028594: Geom2dAPI_Interpolate generated curve is not the same as proe

Boolean flag "Scale" has been added for methods "Load" in "Geom2dAPI_Interpolate" class

7 years ago0028579: Get rid of the obsolete QANewModTopOpe_* and QANewBRepNaming_* algorithms
emv [Fri, 31 Mar 2017 12:38:08 +0000 (15:38 +0300)]
0028579: Get rid of the obsolete QANewModTopOpe_* and QANewBRepNaming_* algorithms

1. The packages *QANewModTopOpe*, *QANewBRepNaming* and *QANewDBRepNaming* have been removed as containing obsolete features.
   The corresponding QA commands (such as OCC252, OCC307 and OCC294) and test cases have also been removed.

2. The QA command buc60609 has been removed. The corresponding test case bugs/moddata_1/buc60609 has been rewritten using b2dclassify command.

7 years ago0028207: Unexpected result of the unify same domain algorithm
imn [Thu, 30 Mar 2017 15:19:21 +0000 (18:19 +0300)]
0028207: Unexpected result of the unify same domain algorithm

- Now algorithm of merging edges uses angular tolerance

7 years ago0028600: Bad performance of the checkshape command
aml [Tue, 28 Mar 2017 03:52:24 +0000 (06:52 +0300)]
0028600: Bad performance of the checkshape command

Shell check has been improved to use well-known width-first search. It significantly reduces computation time on the big shells.

Test case has been added.

Minor correction in test case

7 years ago0028589: Data Exchange - Writing face with NaturalRestriction flag to IGES
ika [Fri, 24 Mar 2017 09:24:08 +0000 (12:24 +0300)]
0028589: Data Exchange - Writing face with NaturalRestriction flag to IGES

Add additional check for infinite surfaces

Correction of test case for issue CR28589

7 years ago0028585: Wrong value of area computation
nbv [Mon, 27 Mar 2017 08:56:32 +0000 (11:56 +0300)]
0028585: Wrong value of area computation

Adding new test case.

7 years ago0028574: Get rid of the TestTopOpe* packages
emv [Mon, 20 Mar 2017 12:30:00 +0000 (15:30 +0300)]
0028574: Get rid of the TestTopOpe* packages

1. The TestTopOpe* packages have been removed.

2. The commands *compare*, *issubshape* and *projponf* have been moved to BRepTest package.

3. The possibility to change the Extrema options has been added to projection algorithm (GeomAPI_ProjectPointOnSurf).

4. Documentation has been updated.

7 years ago0028449: Data Exchange - Wrong orientation of Annotation Plane in GD&T
ika [Wed, 22 Mar 2017 07:31:58 +0000 (10:31 +0300)]
0028449: Data Exchange - Wrong orientation of Annotation Plane in GD&T

Fix orientation.
update test cases

7 years agoElimination of compiler warnings
imn [Fri, 24 Mar 2017 09:25:37 +0000 (12:25 +0300)]
Elimination of compiler warnings

7 years ago0028577: Get rid of the TopOpeBRep* algorithms in TKOffset toolkit
emv [Tue, 21 Mar 2017 12:47:34 +0000 (15:47 +0300)]
0028577: Get rid of the TopOpeBRep* algorithms in TKOffset toolkit

The TKOffset toolkit has been cleared from the usage of the obsolete TopOpeBRep* classes.

7 years ago0028573: Get rid of the old Boolean Operations in QA commands
emv [Mon, 20 Mar 2017 09:09:36 +0000 (12:09 +0300)]
0028573: Get rid of the old Boolean Operations in QA commands

The QA commands have been modified to use new Boolean operations instead of old.

7 years ago0028576: Get rid of the TopOpeBRep* algorithms in TKFeat toolkit
emv [Mon, 20 Mar 2017 13:54:37 +0000 (16:54 +0300)]
0028576: Get rid of the TopOpeBRep* algorithms in TKFeat toolkit

The TKFeat toolkit has been cleared from the usage of TopOpeBRep* classes.

7 years ago0028508: Make the CellsBuilder algorithm to work with multi-dimensional arguments
emv [Fri, 10 Mar 2017 12:13:48 +0000 (15:13 +0300)]
0028508: Make the CellsBuilder algorithm to work with multi-dimensional arguments

1. The CellsBuilder algorithm has been extended to work with multi-dimensional arguments.
It has become possible not only simulate Boolean expressions, but also perform non-supported
Boolean operations, like cutting face from solid, or fusing face with edge.

2. Test cases with multi-dimensional input shapes have been created.

3. Documentation has been updated.

7 years ago0028580: Misprint in IntPatch_WLineTool.cxx file
nbv [Tue, 21 Mar 2017 15:30:03 +0000 (18:30 +0300)]
0028580: Misprint in IntPatch_WLineTool.cxx file

Code correction.

7 years ago0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)
emv [Fri, 17 Mar 2017 11:33:50 +0000 (14:33 +0300)]
0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)

1. Removal of the traces of the usage of old Boolean operations in BRepFeat package.

2. The DRAW commands *fubl* and *cubl* based on old Boolean operations have been removed.
The alternative for these commands are the commands *bfuseblend* and *bcutblend* respectively.
The last two commands are based on the modern Boolean operations.

3. The DRAW command *ksection* based on old Boolean operations has been removed.
The command *bsection* should be used as alternative.

Test cases which have been using the *ksection* command have been modified to use the *bsection* command.

4. The class QANewBRepNaming_BooleanOperation has been modified to use modern Boolean operations.

The class QANewBRepNaming_BooleanOperation has been removed as not used.
The class QANewBRepNaming_BooleanOperationFeat has been renamed to QANewBRepNaming_BooleanOperation as it has nothing to do with Feat algorithm.

7 years ago0028562: Replacement of old Boolean operations (BRepAlgo) with new ones (BRepAlgoAPI...
emv [Fri, 17 Mar 2017 08:34:21 +0000 (11:34 +0300)]
0028562: Replacement of old Boolean operations (BRepAlgo) with new ones (BRepAlgoAPI) in BRepAlgo_NormalProjection

The usage of the old Boolean operations (implemented in the class BRepAlgo_BooleanOperations) in the
BRepAlgo_NormalProjection algorithm has been replaced with the usage of new Boolean operations
(implemented in the class BRepAlgoAPI_BooleanOperations).

7 years ago0028556: Invalid result of Fuse operation in the test case bugs moddata_2 bug469
emv [Wed, 15 Mar 2017 06:15:46 +0000 (09:15 +0300)]
0028556: Invalid result of Fuse operation in the test case bugs moddata_2 bug469

1. Using appropriate intersection tolerance for splitting the degenerated edges in Boolean operations (void BOPAlgo_PaveFiller::FillPaves()).

2. Avoid creation of the wires consisting of degenerated edges only (BOPAlgo_WireSplitter).

3. Test case bugs/moddata_2/bug469 has been corrected to obtain valid result of operation. TODO statements have been removed from the case.

7 years ago0028553: Incorrect result of the ShapeUpgrade_ShapeDivideContinuity algorithm
msv [Tue, 14 Mar 2017 14:33:46 +0000 (17:33 +0300)]
0028553: Incorrect result of the ShapeUpgrade_ShapeDivideContinuity algorithm

The cause of the bug was computation of incorrect UVBounds in the method ShapeAnalysis::GetFaceUVBounds. In this patch the computation of a box for a 2D curve in the method ShapeAnalysis_Curve::FillBndBox() has been improved taking into account intervals of C2 continuity.
Also the fix makes little extension of bounds when making the new surface in ShapeUpgrade_FaceDivide::SplitSurface(), so that all p-curves were fully inside.

Test case for issue CR28553

7 years ago0028507: Extension of CShapr Wrapper 7.1.0 to support additional set of OCCT classes
ski [Thu, 9 Mar 2017 15:15:00 +0000 (18:15 +0300)]
0028507: Extension of CShapr Wrapper 7.1.0 to support additional set of OCCT classes

Using of DEFINE_STANDARD_HANDLE macro was added to AIS_ColorScale class.

7 years ago0028427: Data Exchange - Update Reference Manual for STEP format
ika [Tue, 17 Jan 2017 09:18:42 +0000 (12:18 +0300)]
0028427: Data Exchange - Update Reference Manual for STEP format

- Update STEP manual
- Fix code style in several files

7 years ago0028226: Incorrect history support in ShapeUpgrade_UnifySameDomain algorithm
imn [Thu, 9 Mar 2017 16:20:43 +0000 (19:20 +0300)]
0028226: Incorrect history support in ShapeUpgrade_UnifySameDomain algorithm

- The methods "Modified" and "IsDeleted" have been added for history support in "ShapeUpgrade_UnifySameDomain" class.
- The new Draw commands "unifysamedommod" and "unifysamedomisdel" have been added.
- Adoption of other algorithms using this one to its new behavior.

Removing code duplication

Correcting regressions

Correcting remarks

7 years ago0026682: TopExp::MapShapesAndAncestors() will build map with duplicated ancestors.
mpa [Fri, 3 Mar 2017 10:57:36 +0000 (13:57 +0300)]
0026682: TopExp::MapShapesAndAncestors() will build map with duplicated ancestors.

The new method TopExp::MapShapesAndUniqueAncestors has been implemented, which excludes duplication of ancestors in the list items. The optional Boolean argument 'useOrientation' of this method points whether two same shapes with different orientation will be considered equal.
OCCT code has been inspected and MapShapesAndAncestors has been replaced with MapShapesAndUniqueAncestors where it is necessary.

7 years ago0028537: Extend 'Draw' procedure 'checkprops' to specify the relative precision to...
abk [Mon, 13 Mar 2017 10:28:32 +0000 (13:28 +0300)]
0028537: Extend 'Draw' procedure 'checkprops' to specify the relative precision to compare corresponding values

'Draw' procedure 'checkprops' was extended by an option to set the relative precision to compare corresponding values.

7 years ago0028492: Boolean common does not produce expected result
nbv [Mon, 13 Mar 2017 13:03:07 +0000 (16:03 +0300)]
0028492: Boolean common does not produce expected result

Generation of 3D-steps shorter than 3D tolerance has been allowed in the fix to build Walking-line.

Now, 3D-step is limited by Precision::Confusion value.

7 years ago0028558: Test bugs modalg_6 bug26150_17 is failed with FPE switched on
jgv [Wed, 15 Mar 2017 13:36:47 +0000 (16:36 +0300)]
0028558: Test bugs modalg_6 bug26150_17 is failed with FPE switched on

Avoid division by zero in the method BRepFill_CompatibleWires::SameNumberByACR.

7 years ago0026874: Implementation of the Partition operator in OCCT
emv [Fri, 3 Mar 2017 12:58:11 +0000 (15:58 +0300)]
0026874: Implementation of the Partition operator in OCCT

1. The partition operation allows splitting an arbitrary number of shapes of an arbitrary dimension
by other arbitrary shapes. The algorithm has been implemented in the class BOPAlgo_Splitter.

The API operator Splitter has been implemented in the class BRepAlgoAPI_Splitter.

2. The draw commands for usage the new algorithm have been implemented - bsplit and bapisplit.
The commands are identical, but one uses the BOPAlgo_Splitter, the other uses BRepAlgoAPI_Splitter.
Both commands should be used after Pave Filler is filled.

3. Test cases for the new algorithm.

4. Documentation has been updated.

Small corrections.

7 years ago0028501: Incomplete result of offset operation in mode Complete with Join type inters...
emv [Thu, 2 Mar 2017 11:29:53 +0000 (14:29 +0300)]
0028501: Incomplete result of offset operation in mode Complete with Join type intersection

1. The algorithm BOPAlgo_ShellSplitter has been improved for the cases with multi-connected edges
to produce as many shells as possible from the given input faces.

2. Building tool prism in BRepFeat_MakePrism has been changed in order to avoid self-intersections
in the cases when the limiting faces are intersecting.

3. Test cases for the issue.

4. Test cases boolean/bcut_complex/N9 and boolean/gdml_private/ZH3 are improvements.

5. Test cases boolean/volumemaker/C5 and boolean/volumemaker/C6 has been marked as BAD due to found problem in intersection algorithm.
The results in these cases obtained on the branch are better than on master, but still not complete.

Adjusting test case bugs/moddata_2/bug469 for its current behavior.

7 years ago0028535: BOP Fuse reports "ErrorStatus : 11" on two attached faces
nbv [Fri, 10 Mar 2017 12:56:19 +0000 (15:56 +0300)]
0028535: BOP Fuse reports "ErrorStatus : 11" on two attached faces

The reason of exception has been eliminated.

7 years ago0028468: Sweep with different sections raises Standard_NoSuchObject: BRep_Tool::...
jgv [Mon, 6 Mar 2017 11:16:09 +0000 (14:16 +0300)]
0028468: Sweep with different sections raises Standard_NoSuchObject: BRep_Tool:: no parameter on edge

Method BRepFill_SectionPlacement::Perform is modified to operate vertices and edges of path correct.

Add two test cases.

Minor correction.

7 years ago0028470: Foundation Classes, NCollection_Array1 - add Resize() method for re-allocati...
kgv [Fri, 17 Feb 2017 09:35:13 +0000 (12:35 +0300)]
0028470: Foundation Classes, NCollection_Array1 - add Resize() method for re-allocating array with new limits

NCollection_Array1 now provides method Resize() for re-allocating array to new bounds.
Added Move Constructor and Move Assignment operator.
Added empty constructor defining array of zero size.

Poly_Triangulation, dropped duplicating fields myNbNodes and myNbTriangles.
Removed unused file Poly_Triangulation.lxx.

Use std::move within NCollection_Array1::operator=() [fix for 0028470]

7 years ago0028486: Fuse of several solids fails due to presence of common zones between faces
emv [Tue, 21 Feb 2017 08:39:29 +0000 (11:39 +0300)]
0028486: Fuse of several solids fails due to presence of common zones between faces

1. Exception in intersection of two analytical faces has been fixed by adding a simple check on number of vertices
in the resulting analytical curve;

2. Projection of the Circle on the Cone now checks if the Circle's normal direction is parallel to the Cone direction.
If it is not, the different, more advanced, algorithm will be used for projection - ProjLib_ComputeApprox;

3. Intersection of the Edge with the Face (IntTools_EdgeFace algorithm) in QuickCoincidenceCheck mode has been fixed to
avoid the checking of the type of the intersection result if the coincidence check gives the positive result;

4. All common IN edges of the intersecting faces has been added for intersection with section edges to avoid self-intersection in the result;

5. Post treatment of the section edges in Boolean operations has been improved with the new stage which treats the possible
common zones, not detected by the intersection algorithm, between faces by intersecting each section edge with all faces,
not participated in its creation, and in case of coincidence putting it as IN edge into FaceInfo structure of the face.
The new function has been implemented for that - BOPAlgo_PaveFiller::PutSEInOtherFaces().

6. Checking for the SameDomain splits of faces in Boolean Operations has been modified to process the pairs of faces in
which both the section curves and common zones are present.

7. Adjustment of the test case boolean gdml_private ZH3 as improvement.

8. Test cases for the issue.

9. Test cases for the parent issue - 0026789.

7 years ago0028495: The maximal depth of the tree is used implicitly in type 'BVH_PrimitiveSet'
abk [Wed, 1 Mar 2017 11:22:51 +0000 (14:22 +0300)]
0028495: The maximal depth of the tree is used implicitly in type 'BVH_PrimitiveSet'

Type 'BVH_PrimitiveSet' was extended by a static constant to access the maximal depth of the tree.

7 years ago0028496: BOP Cut failed on two attached faces with error "ErrorStatus : 191"
emv [Thu, 2 Mar 2017 12:43:48 +0000 (15:43 +0300)]
0028496: BOP Cut failed on two attached faces with error "ErrorStatus : 191"

While checking the SurfaceOfExtrusion on closeness (GeomLib::IsClosed())
it is necessary to take into account that the basis curve may be not trimmed.

Test case for the issue.

7 years ago0028473: Incorrect result of 3D offset operation in mode Complete, Join type Intersec...
emv [Mon, 20 Feb 2017 07:54:22 +0000 (10:54 +0300)]
0028473: Incorrect result of 3D offset operation in mode Complete, Join type Intersection (spike is created)

Looking for inverted edges among the neutral ones while checking the offset edges on validity (BRepOffset_MakeOffset_1::FindInvalidEdges).

Test cases for the issue.

7 years ago0012567: Swapped first/last vertices or incorrect curve orientation after reading...
bugmaster [Thu, 2 Mar 2017 13:15:00 +0000 (16:15 +0300)]
0012567: Swapped first/last vertices or incorrect curve orientation after reading IGES file

Adding test case

7 years ago0028502: Compilation error on Arch Linux (clang compiler)
apn [Thu, 2 Mar 2017 11:08:59 +0000 (14:08 +0300)]
0028502: Compilation error on Arch Linux (clang compiler)

7 years ago0028491: Incomplete section curve
nbv [Tue, 28 Feb 2017 07:45:51 +0000 (10:45 +0300)]
0028491: Incomplete section curve

The main idea of the fix is to forbid check if intersection curve lies in the some face (with input tolerance) if we have 2D-intersection curve on this face (we consider that necessary tolerance has been computed in intersection algorithm honestly). If we do not have 2D-curve on this face then we need check as before.

New algorithm is implemented in IntTools_Context::IsValidBlockForFaces(...) method.

------
src\Extrema\Extrema_GenExtPS.cxx
No principled changes have been made.

7 years ago0028228: Provide possibility to keep the given edges during unification of faces...
imn [Thu, 22 Dec 2016 15:55:55 +0000 (18:55 +0300)]
0028228: Provide possibility to keep the given edges during unification of faces in ShapeUpgrade_UnifySameDomain algorithm

- Added methods "KeepShape" and "KeepShapes" for "ShapeUpgrade_UnifySameDomain" class
- Updated "unifysamedom" command in Draw

Remarks correction

Additional remarks correction

Removed redundant checks

Removing compilation warning

7 years ago0026150: BRepOffsetAPI_ThruSections doesn't implement history method Generated().
jgv [Tue, 24 Jan 2017 13:27:13 +0000 (16:27 +0300)]
0026150: BRepOffsetAPI_ThruSections doesn't implement history method Generated().

Virtual method Generated is redefined. Now it returns:

- chain of generated faces for sub-edge of a profile;
- chain of generated edges for sub-vertex of a profile;
- bunch of chains of generated edges for start or end vertex if it is degenerated section.

Correction according to the remarks.

Fix compiler's warnings and add 4 new test cases.

Correction of mistake.

Compilation warnings are gone.

7 years ago0028487: Visualization, TKOpenGl - add option for rendering with lower resolution
kgv [Thu, 23 Feb 2017 17:50:42 +0000 (20:50 +0300)]
0028487: Visualization, TKOpenGl - add option for rendering with lower resolution

Graphic3d_RenderingParams::RenderResolutionScale - added new option
defining scale factor for allocating off-screen rendering buffers
relative to native resolution of window buffer.

Scale factor can be below 1.0 (lower resolution) or higher (as analog of super sampling),
but can not be combined with MSAA settings.

Draw Harness command vrenderparams has been extended with option -rendScale
managing introduced option Graphic3d_RenderingParams::RenderResolutionScale.

vcaps has been extended with option -useWindowBuffer for managing
OpenGl_Caps::useSystemBuffer option.

vrepaint has been extended with option -immediate
for testing immediate layer redraw

OpenGl_View::blitBuffers() - eliminate compiler warning on Android

7 years ago0028218: Visualization, Path Tracing - Redesign path tracing materials to support...
dbp [Fri, 18 Nov 2016 14:53:10 +0000 (17:53 +0300)]
0028218: Visualization, Path Tracing - Redesign path tracing materials to support two-layered model

Existing OCCT path tracing engine used very simple additive material (BSDF) model, so it was possible to reproduce
behavior only of very basic materials such as metal, glass, or plastic. However, some important in CAD industry
materials like car paint or ceramic could not be modeled well. In this patch, OCCT BSDF was significantly improved
by replacing additive model with two-layered scattering model. Therefore, we have base diffuse, glossy, or transmissive
layer, covered by one glossy/specular coat. The layers themselves have no thickness; they can simply reflect light or
transmits it to the layer under it. Balancing different combinations of layer properties can produce a wide range of
different effects. At the same time, disabling the first (coat) layer allows to keep full compatibility with previously
supported scattering model. All new parameters are available via 'vbsdf' command.

Location of new sample for few material examples:
samples\tcl\pathtrace_materials.tcl

Fix shader compilation issue.

Fix test case sample_ball_alpha.

Shaders_PathtraceBase_fs.pxx - regenerate resource from origin

7 years ago0028441: Coding Rules - move out nested Image_PixMap::ImgFormat enumeration to dedica...
kgv [Sun, 5 Feb 2017 10:47:27 +0000 (13:47 +0300)]
0028441: Coding Rules - move out nested Image_PixMap::ImgFormat enumeration to dedicated enum Image_Format

Enumeration Image_PixMap::ImgFormat, previously declared as nested
enumeration within class *Image_PixMap*,
has been moved to global namespace as Image_Format following OCCT coding rules.

The enumeration values have suffix Image_Format_ and preserve
previous name scheme for easy renaming of old values.
E.g. Image_PixMap::ImgGray become Image_Format_Gray.
Old definitions are preserved as depreacated aliases to the new ones.

7 years ago0021750: Intersection of two cylindrical surfaces fails
bugmaster [Wed, 1 Mar 2017 13:56:42 +0000 (16:56 +0300)]
0021750: Intersection of two cylindrical surfaces fails

Adding test case

7 years ago0026796: The result of General Fuse operation is self-intersecting shape
bugmaster [Tue, 28 Feb 2017 12:02:55 +0000 (15:02 +0300)]
0026796: The result of General Fuse operation is self-intersecting shape

Adding test case

7 years ago0027615: [regression] Boolean operation returns invalid shape in 64 bit mode and...
bugmaster [Tue, 28 Feb 2017 13:02:37 +0000 (16:02 +0300)]
0027615: [regression] Boolean operation returns invalid shape in 64 bit mode and valid shape in 32 bit mode

Adding test case

7 years ago0028469: Visualization, StdPrs_ShadedShape - do not create redundant copy of normal...
kgv [Fri, 17 Feb 2017 08:30:42 +0000 (11:30 +0300)]
0028469: Visualization, StdPrs_ShadedShape - do not create redundant copy of normal array

7 years ago0028466: Visualization, OpenGl_Context - read GPU memory using WGL_AMD_gpu_associatio...
kgv [Thu, 16 Feb 2017 21:24:17 +0000 (00:24 +0300)]
0028466: Visualization, OpenGl_Context - read GPU memory using WGL_AMD_gpu_association extension

7 years ago0028458: Some faces are missing when loading a specific CAD. This is a regression...
ifv [Tue, 21 Feb 2017 14:38:52 +0000 (17:38 +0300)]
0028458: Some faces are missing when loading a specific CAD. This is a regression from OCCT 7.0 and Express Mesh 7.0.

Function ACos and ASin are modified to avoid exception when argument is +-(1. + Epsilon(1.)) because of "numerical noise"

7 years ago0027998: Self-intersection is not detected
jgv [Fri, 17 Feb 2017 15:23:18 +0000 (18:23 +0300)]
0027998: Self-intersection is not detected

    New method CheckFaceSelfIntersection has been added to BOPAlgo_CheckerSI: now self-intersection of each face is found as well as pairs of intersecting faces;

-method IntPatch_Intersection::Perform(S1,D1,TolArc,TolTang) is modified for more effective search of self-interasections in case of Surface Of Extrusion;

-method IntCurve_IntPolyPolyGen::Perform(C1,D1,TolConf,Tol,NbIter) is modified to detect segments of intersections.

Small correction.

Test cases are corrected.

Correction of compiler error

Fix of regressions

Names of shapes correction

7 years ago0028471: ShapeUpgrade_RemoveLocations breaks sharing of sub-shapes
msv [Fri, 17 Feb 2017 15:59:49 +0000 (18:59 +0300)]
0028471: ShapeUpgrade_RemoveLocations breaks sharing of sub-shapes

- Add option 'remove_level' to the command 'removeloc'.
- Add test case.

Minor correction of test case

7 years ago0028442: Incorrect result of 3D offset operation in mode Complete, Join type - Inters...
emv [Thu, 9 Feb 2017 05:57:49 +0000 (08:57 +0300)]
0028442: Incorrect result of 3D offset operation in mode Complete, Join type - Intersection

1. For the support of the new configurations of the input shapes for the 3D offset algorithm
(shapes containing the faces with holes, which are growing during offset operation and
sometimes (depending on the offset value) even kill the faces themselves) the new function
*FindFacesInsideHoleWires* has been implemented. This new function looks for the splits of
the offset face located inside the new hole wire built from offset edges of the edges of the
hole wires of the original face. All found splits are simply removed.

2. Test cases for the issue.

7 years ago0028463: OCAF loses an interactive object after copying
vro [Thu, 16 Feb 2017 13:03:56 +0000 (16:03 +0300)]
0028463: OCAF loses an interactive object after copying

7 years ago0028428: BinMNaming_NamedShapeDriver fails if there are no nodes in NamedShape
mpv [Thu, 2 Feb 2017 15:31:59 +0000 (18:31 +0300)]
0028428: BinMNaming_NamedShapeDriver fails if there are no nodes in NamedShape

Unit test and additional parsing rule for tests are added as well as a minor fix of the draw command for bug24164_2 unit test (in reference array it was impossible to set only one value).

Added the exception for the checking in issue 2269, when bad document is read.

It checks that there is no crash, but just an error message. If crash is appeared, this test will not skipped anyway.

Correction of test for bug2269 and parse.rules

7 years ago0028460: Visualization - V3d_View::SetZoom() performs checks which then ignored
kgv [Thu, 16 Feb 2017 11:42:18 +0000 (14:42 +0300)]
0028460: Visualization - V3d_View::SetZoom() performs checks which then ignored

Fixed variables misuse.

7 years ago0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view
kgv [Sun, 5 Feb 2017 08:33:39 +0000 (11:33 +0300)]
0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view

V3d_Viewer methods ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues,
RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane
do not redraw viewer anymore.

7 years ago0027182: Wrong result of General Fuse operation for two spheres
emv [Mon, 21 Mar 2016 10:14:20 +0000 (13:14 +0300)]
0027182: Wrong result of General Fuse operation for two spheres

1. The static method Standard_Real MinStep3D(...) in the class BOPTools_AlgoTools is
now checks if the computed 3D step is too big (relatively UV range of the faces)
for any of the faces.

2. The method PointInFace(...) of the class BOPTools_AlgoTools3D has been redesigned.
The new PointInFace(...) methods have been implemented to add possibility for looking the point
inside the face in necessary direction and distance from the edge of the face.
Note: old implementation is also functional.

3. Make methods for finding points near edges and computing normal directions on faces
return error status (0 in case of success).

4. Test case for the issue.

5. Test cases offset shape_type_i_c XJ2,XJ4,XJ5,XJ6 are improvements.

Removing useless file