occt.git
5 years ago0030405: Presentations of PMI are incorrectly scaled after change of units IR-2019-01-25
gka [Wed, 23 Jan 2019 15:37:23 +0000 (18:37 +0300)]
0030405: Presentations of PMI are incorrectly scaled after change of units

Corrected search of the entity StepShape_ShapeDimensionRepresentation defining used units in the method readConnectionPoints

5 years ago0030451: Selection mode of TPrsStd_AISPresentation attribute is restricted to one...
vro [Tue, 22 Jan 2019 10:47:09 +0000 (13:47 +0300)]
0030451: Selection mode of TPrsStd_AISPresentation attribute is restricted to one value

Two classes TDataXtd_Presentation and TPrsStd_AISPresentation were improved so that they accept a list of selection modes.
A new non-regression test is added: caf presentation N1

5 years ago0030429: Samples - add simple glfw 3D Viewer sample
mahaidong [Fri, 18 Jan 2019 08:00:30 +0000 (11:00 +0300)]
0030429: Samples - add simple glfw 3D Viewer sample

Aspect_DisplayConnection now provides constructor wrapping existing X Display connection.

5 years ago0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
kgv [Thu, 10 Jan 2019 20:10:51 +0000 (23:10 +0300)]
0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux

Font_FontMgr has been redesigned to:
- Store fonts in a map instead a list.
- Allow mapping multiple fonts to a single alias.
- Log informative message about usage of non-requested font (fallback).
- Register all font files within standard folders on Linux when "fonts.dir" is not found.
- Prefer specific alias ("serif") as default fallback font instead of arbitrary one in a system.

A couple of obsolete and broken font aliases have been removed;
instead, new aliases of fonts popular on Linux platform have been added.

Font_NameOfFont.hxx has been extended with more neutral aliases
"monospace", "serif", "sans-serif", "cjk" and "korean".

Font_FontAspect enumeration values have been renamed Font_FA_ -> Font_FontAspect_
with old values preserved as alias.

Font_SystemFont has been extended with a list of paths to Font_FontAspect styles,
so that entire Font Family is now defined within a single Font_SystemFont instance.
Non-resizable fonts are now ignored by Font Manager.

5 years ago0029670: Draw Harness - vtrihedron xaxis zaxis is wrong
kgv [Thu, 10 Jan 2019 12:36:23 +0000 (15:36 +0300)]
0029670: Draw Harness - vtrihedron xaxis zaxis is wrong

Fixed gp_Ax2 initialization by two vectors.
Fixed -labels arguments number check.

5 years ago0030437: Visualization, TKV3d - add Draw command to print rendering statistics IR-2019-01-11
osa [Thu, 10 Jan 2019 14:25:48 +0000 (17:25 +0300)]
0030437: Visualization, TKV3d - add Draw command to print rendering statistics

Add new command "vstatprofiler" to manage rendering parameters and print them.
If there are some input parameters - print corresponding statistic counters values,
else - print all performance counters set previously.

5 years ago0030434: Visualization, TKV3d - add "NoUpdate" state of frustum culling optimization
osa [Wed, 9 Jan 2019 14:01:18 +0000 (17:01 +0300)]
0030434: Visualization, TKV3d - add "NoUpdate" state of frustum culling optimization

Frustum culling is now managed by Graphic3d_RenderingParams::FrustumCullingState flag
and can be switched into Graphic3d_RenderingParams::FrustumCulling_NoUpdate state
useful for debugging the algorithm.

Draw Harness command vrustumculling has been replaced by vrenderparams -frustumCulling.

5 years ago0030412: Visualization, TKV3d - add presentation of camera frustum
osa [Mon, 17 Dec 2018 09:01:17 +0000 (12:01 +0300)]
0030412: Visualization, TKV3d - add presentation of camera frustum

1) Added method Graphic3d_Camera::FrustumPoints() returning corner points of camera frustum.
2) Refactored methods OpenGl_BVHTreeSelector::isFullOut(...) and OpenGl_BVHTreeSelector::CacheClipPtsProjections()
3) Changed computation algorithm of frustum planes (build them by corner points)
4) Added interactive object AIS_CameraFrustum to draw camera frustum.
5) Extended Draw command "vcamera" with option displaying camera frustum.

5 years ago0030349: Coding - add usage of Standard_EXPORT for some not inline methods in Select3D
nds [Wed, 7 Nov 2018 15:30:21 +0000 (18:30 +0300)]
0030349: Coding - add usage of Standard_EXPORT for some not inline methods in Select3D

5 years ago0030430: Draw - command testgrid in parallel mode hangs if DRAW is launched without GUI
abv [Thu, 10 Jan 2019 05:17:04 +0000 (08:17 +0300)]
0030430: Draw - command testgrid in parallel mode hangs if DRAW is launched without GUI

Ensure that initialization of Tcl interpretor is performed in the same thread where commands are evaluated.

Added test demo draw bug30430

5 years ago0030377: DRAW, Windows - command executed via option -c fails on puts
abv [Sun, 18 Nov 2018 16:53:10 +0000 (19:53 +0300)]
0030377: DRAW, Windows - command executed via option -c fails on puts

When DRAW on Windows is launched with option -c, the command is now properly transferred to Tcl thread (separate thread that runs Tcl interpretor on Windows except when DRAW is run in batch mode) for execution, instead of being evaluated in the main thread.

Execution of DRAW in batch mode (option -b) is fixed by enabling proper initialization of the Tcl interpretor and replacement of backslashes in path to startup script by straight slashes on Windows in that mode.

Declaration of global variables used for communication of console command between threads is moved to Draw_Window.hxx to ensure consistency.
Function wscpy_s is used instead of memcpy to avoid possible buffer overrun.

5 years ago0030428: Modeling Algorithms - BRepBndLib::AddOBB() throws exception on empty Compound
kgv [Sat, 29 Dec 2018 12:41:54 +0000 (15:41 +0300)]
0030428: Modeling Algorithms - BRepBndLib::AddOBB() throws exception on empty Compound

Added missing Bnd_Box::IsVoid() check.

5 years ago0030424: C# wrapper - implement IEnumerable interface by NCollection classes IR-2018-12-29
kgv [Tue, 25 Dec 2018 17:25:55 +0000 (20:25 +0300)]
0030424: C# wrapper - implement IEnumerable interface by NCollection classes

TopExp_Explorer::Value() - added Current() alias for providing interface consistent to other OCCT Iterators.

5 years ago0030346: Modeling Algorithms - BRepPrimAPI_MakeRevol throws "BRepSweep_Translation...
ifv [Mon, 10 Dec 2018 12:48:55 +0000 (15:48 +0300)]
0030346: Modeling Algorithms - BRepPrimAPI_MakeRevol throws "BRepSweep_Translation::MakeEmptyVertex"

Implementation of method "IsDeleted(...)" for MakeRevol and MakePrism algorithms.

Problem (exception) occurs during history building and was caused by an attempt to obtain generated shape for subshape, which was really "deleted" by algorithm - this input subshape and its possible generated shape was not used in result.

5 years ago0030364: Visualization, TKOpenGl - allow initializing a Surface-less EGL context
kgv [Mon, 12 Nov 2018 12:46:40 +0000 (15:46 +0300)]
0030364: Visualization, TKOpenGl - allow initializing a Surface-less EGL context

OpenGl_Context::MakeCurrent()/OpenGl_Context::IsCurrent() have been modified to NOT fail
in case if myWindow is EGL_NO_SURFACE (valid off-screen rendering case within EGL).
OpenGl_GraphicDriver::InitEglContext() now finds EGL surface config in case if it has not been passed by argument.

OpenGl_Window constructor now allows wrapping an off-screen rendering surface EGL_NO_SURFACE.
However, it still creates a dummy surface eglCreatePbufferSurface() to workaround bugs in some GLES drivers (Vivante GC2000).

V3d_View::SetWindow()/V3d_View::MustBeResized()/V3d_Viewer::SetViewOn() have been modified
to avoid implicit View redraw (leading to undefined behavior/crashes in case if rendering
should be done into default FBO defined right after V3d_View initialization).

5 years ago0030396: Infinite recursion during ShapeFix after BRepAlgoAPI_Cut IR-2018-12-21
msv [Thu, 20 Dec 2018 14:10:00 +0000 (17:10 +0300)]
0030396: Infinite recursion during ShapeFix after BRepAlgoAPI_Cut

Two test cases are added. One for Boolean operation (it is good, because BO has been fixed already), and another for fixshape operation (it causes Draw crash).

5 years ago0029964: Bad arc discretization
oan [Tue, 13 Nov 2018 10:08:37 +0000 (13:08 +0300)]
0029964: Bad arc discretization

Added test cases.

5 years ago0027976: Unstable work of 2d intersection algorithm for two lines
nbv [Thu, 29 Nov 2018 07:02:14 +0000 (10:02 +0300)]
0027976: Unstable work of 2d intersection algorithm for two lines

1. Test case for the issue has been created.
The problem is still reproduced on MASTER.

2. Some test cases have been moved to lowalgos/2dinter grid.

5 years ago0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent
msv [Mon, 17 Dec 2018 12:16:55 +0000 (15:16 +0300)]
0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent

The method Bnd_OBB::SquareExtent has been corrected.

5 years ago0030411: Data Exchange - attached model is exported as empty JT and VRML file
kgv [Thu, 13 Dec 2018 07:32:45 +0000 (10:32 +0300)]
0030411: Data Exchange - attached model is exported as empty JT and VRML file

VrmlData_ShapeConvert::ConvertDocument() now handles reference labels within free shapes in the document.

5 years ago0030409: Data Exchange - exception during VRML file export
kgv [Thu, 13 Dec 2018 07:45:14 +0000 (10:45 +0300)]
0030409: Data Exchange - exception during VRML file export

VrmlData_ShapeConvert::addShape() - handle case when parent node is NULL.

5 years ago0030413: Tests - increase counters within perf/ncollection/A1
kgv [Thu, 13 Dec 2018 12:20:48 +0000 (15:20 +0300)]
0030413: Tests - increase counters within perf/ncollection/A1

5 years ago0030402: Data Exchange - exported VRML file has broken location information
skl [Mon, 10 Dec 2018 11:08:09 +0000 (14:08 +0300)]
0030402: Data Exchange - exported VRML file has broken location information

5 years ago0030223: Visualization, TKOpenGl - frustum culling does not clip objects within persp...
osa [Tue, 11 Dec 2018 10:40:40 +0000 (13:40 +0300)]
0030223: Visualization, TKOpenGl - frustum culling does not clip objects within perspective camera.

Fixed multiplication order of Projection and WorldView matrices

5 years ago0030395: DRAW bop: Some sub-shapes of some of the argument become connected through...
emv [Wed, 12 Dec 2018 05:07:29 +0000 (08:07 +0300)]
0030395: DRAW bop: Some sub-shapes of some of the argument become connected through other shapes and the argument became self-interfered.

Integrating only test case for the issue as it is not reproduced any more.

5 years ago0030400: Configuration - specify external dependencies user32 and shell32 explicitly
kgv [Sat, 8 Dec 2018 11:20:17 +0000 (14:20 +0300)]
0030400: Configuration - specify external dependencies user32 and shell32 explicitly

5 years ago0030391: Improvement of the method BRepOffset_Tool::EnLargeFace
jgv [Mon, 3 Dec 2018 10:58:20 +0000 (13:58 +0300)]
0030391: Improvement of the method BRepOffset_Tool::EnLargeFace

Add options to set the length of enlargement for each of 4 directions.
Add restriction of enlargement in the case of singularity on the surface.

5 years ago0029702: Foundation Classes - Introduce possibility to control parallel execution...
oan [Mon, 3 Dec 2018 12:46:48 +0000 (15:46 +0300)]
0029702: Foundation Classes - Introduce possibility to control parallel execution of BVH tools

Methods IsParallel() and SetParallel() have been added to BVH_Sorter, BVH_DistanceField and BVH_BuilderTransient to control parallel execution on low-level.
Fix compilation errors for old compilers without support of c++11 (std::begin, std::end)

5 years ago0029177: Foundation Classes - Adapt BVH package for use of OSD_Parallel
oan [Wed, 18 Apr 2018 08:21:00 +0000 (11:21 +0300)]
0029177: Foundation Classes - Adapt BVH package for use of OSD_Parallel

Explicit calls to TBB in BVH_DistanceField, BVH_LinearBuilder and BVH_RadixSorter have been replaced.
Task functors have been separated on execution and state parts for the sake of usage by OSD_Parallel.

5 years ago0030394: Modeling Algorithms - Empty result of offset operation (mode "Complete"... IR-2018-12-07
emv [Wed, 5 Dec 2018 07:52:38 +0000 (10:52 +0300)]
0030394: Modeling Algorithms - Empty result of offset operation (mode "Complete", join type - "Intersection")

The following changes have been made for improving the offset algorithm:
1. Multi-connexity support - intersection of the faces connected to the edge belonging to more than two faces is now performed.
2. Avoid intersection of the faces connected through internal edge.
3. Filling gaps (holes) in the splits of the created offset faces to increase possibility of creation of the closed volume from these splits.

Test cases for the issue.

5 years ago0029692: Add functionality to make the group of touching same-dimensional shapes...
emv [Thu, 12 Apr 2018 13:22:34 +0000 (16:22 +0300)]
0029692: Add functionality to make the group of touching same-dimensional shapes connected

Implementation of the new class *BOPAlgo_MakeConnected* for making the group of touching same-dimensional shapes connected.
Provide the material association for the first sub-elements of the input shapes.
Provide possibility to make the connected shape periodic.

Draw commands for new algorithm:
* makeconnected - make the input shapes connected or glued, performs material associations;
* cmaterialson - returns the materials located on the requested side of a shape;
* cmakeperiodic - makes the connected shape periodic in requested directions;
* crepeatshape - repeats the periodic connected shape in requested directions requested number of times;
* cperiodictwins - returns all periodic twins for the shape;
* cclearrepetitions - clears all previous repetitions of the periodic shape, keeping the shape periodic.

Documentation & test cases for the new algorithm.

5 years ago0029683: Add functionality to make the TopoDS_Shape periodic in 3D space
emv [Mon, 19 Mar 2018 04:50:06 +0000 (07:50 +0300)]
0029683: Add functionality to make the TopoDS_Shape periodic in 3D space

Implementation of the new class *BOPAlgo_MakePeriodic* for making the shape periodic in 3D space.
Periodicity of the shape means that the shape can be repeated in any periodic direction any number of times without creation of the new geometry or splits.
The idea of this algorithm is to make the shape look similarly on the opposite sides or on the period bounds of periodic directions.
It does not mean that the opposite sides of the shape will be mirrored. It just means the the opposite sides of the shape should be split by each other and obtain the same geometry on opposite sides.
Such approach will allow repeating the shape, i.e. translating the copy of a shape on the period, without creation of new geometry because there will be no coinciding parts of different dimension.

Draw commands for the new algorithm:
* makeperiodic - makes the shape periodic in required directions;
* repeatshape - repeats the periodic shape in requested periodic direction;
* periodictwins - returns the periodic twins for the shape;
* clearrepetitions - clears all previous repetitions of the periodic shape.

Documentation & test cases for the algorithm.

5 years ago0030363: BRepLib::SameParameter with option "forced" corrupts valid shape
jgv [Thu, 15 Nov 2018 12:36:22 +0000 (15:36 +0300)]
0030363: BRepLib::SameParameter with option "forced" corrupts valid shape

Method BRepLib::SameParameter has been corrected to synchronize check of resulting tolerance with BRepCheck.

5 years ago0029149: BRepMesh produces invalid mesh on the bound of adjacent faces IR-2018-11-30
nbv [Thu, 15 Nov 2018 09:00:58 +0000 (12:00 +0300)]
0029149: BRepMesh produces invalid mesh on the bound of adjacent faces

1. Test case for the issue has been created. The issue is fixed by the patch #26106.

2. Since now, "tricheck" command uses edge tolerance instead of edge deflection to check cross-face-errors (set of nodes of the edge on 1st face must be equal to set of nodes of the same edge on 2nd face).

5 years ago0025594: Valid shape is not visualize in shading mode.
oan [Mon, 19 Nov 2018 09:41:55 +0000 (12:41 +0300)]
0025594: Valid shape is not visualize in shading mode.

Added test case.

5 years ago0025628: BRepMesh fails to mesh face with open wire, considered as correct by checkshape
oan [Fri, 16 Nov 2018 11:20:54 +0000 (14:20 +0300)]
0025628: BRepMesh fails to mesh face with open wire, considered as correct by checkshape

Do not check status for "UnorientedWire", but check number of triangles instead.

5 years ago0028719: Mesh - Display issue for special model
oan [Fri, 16 Nov 2018 11:03:51 +0000 (14:03 +0300)]
0028719: Mesh - Display issue for special model

Clean existing triangulation before meshing.

5 years ago0030273: Modeling Algorithms - Crash in postprocessing of imported shape.
ika [Fri, 19 Oct 2018 13:45:18 +0000 (16:45 +0300)]
0030273: Modeling Algorithms - Crash in postprocessing of imported shape.

Now end points of intervals calculated in GeomAdapter_Curve are not replaced by GeomAdapter_Surface.
Left bound of periodic curve less than UMin is not corrupted by LocateParameter during intervals calculating.

5 years ago0030389: Data Exchange - StlAPI_Writer does not check if the face has triangulation
emv [Thu, 29 Nov 2018 07:20:23 +0000 (10:20 +0300)]
0030389: Data Exchange - StlAPI_Writer does not check if the face has triangulation

When merging triangulation of the faces skip those having no triangulation.
Test case for the issue.

5 years ago0030385: Samples - Warnings during generation of projects from .pro files
apn [Tue, 27 Nov 2018 12:13:47 +0000 (15:13 +0300)]
0030385: Samples - Warnings during generation of projects from .pro files

Define variables ARCH and VCVER in .pro files in qt samples.

5 years ago0027620: Test perf bop boxholes crashes DRAW IR-2018-11-23
abv [Sat, 17 Nov 2018 09:51:26 +0000 (12:51 +0300)]
0027620: Test perf bop boxholes crashes DRAW

Implementation of capturing of output to standard streams in DRAW (see command dlog) is revised to avoid problems with command "test" executing long test scripts:

1. Method OSD_File::Capture() is removed: on Windows it was allocating a C file descriptor for a file opened using WinAPI, and never released that descriptor (once allocated, it cannot be released separately from WinAPI file handle). Direct calls to dup/dup2 are used instead.

2. In Draw_Window.cxx the standard Tcl channels are initialized manually using corrected version of Tcl internal function. This works around a problem with Tcl channels on Windows being bound to OS device handle owned by the system which can get invalidated as result of calls to dup2() (used to capture output to standard streams).

3. Temporary file for capturing is opened once and used to store whole log, thus the need to collect log in the string stream in memory is avoided

4. Possible errors of dup() and dup2() are checked and reported

Test demo draw dlog is added

Off-topic changes:

- Test demo draw getsource is corrected for VS2017 which generates file name in lowercase
- Field myFaceBounds is initialized in constructor of the class BRepAlgo_NormalProjection to avoid undefined behavior
- Test bugs modalg_5 bug24012 is corrected to use command nproject instead of custom one, and to check propertes of the resulting shape

5 years ago0030380: Exception while reading Step-file
nbv [Tue, 20 Nov 2018 13:34:27 +0000 (16:34 +0300)]
0030380: Exception while reading Step-file

Incorrect initialization of array (when upper bound is less than lower bound) has been avoided in some places.

5 years ago0030382: Draw Harness, ViewerTest - command vdir doesn't work anymore
kgv [Thu, 22 Nov 2018 19:51:37 +0000 (22:51 +0300)]
0030382: Draw Harness, ViewerTest - command vdir doesn't work anymore

5 years ago0028828: Modeling Algorithms - New functionalities of BRepFilletAPI_MakeChamfer algorithm IR-2018-11-16
jgv [Wed, 14 Jun 2017 13:28:15 +0000 (16:28 +0300)]
0028828: Modeling Algorithms - New functionalities of BRepFilletAPI_MakeChamfer algorithm

Two new functionalities have been added in BRepFilletAPI_MakeChamfer:
- constant throat (the section of chamfer is isosceles triangle, its height is constant in all sections - this is the "throat" of the weld);
- constant throat with penetration(the section of chamfer is right-angled triangle, the first of two surfaces (where is the top of the chamfer) is virtually moved inside the solid by offset operation, the apex of the section is on the intersection curve between moved surface and second surface, right angle is at the top of the chamfer, the length of the leg from apex to top is constant - this is the "throat" of the weld).

- New abstract classes BlendFunc_GenChamfer and BlendFunc_GenChamfInv have been added;
- Class BlendFunc_Chamfer is now descended from BlendFunc_GenChamfer, class BlendFunc_ChamfInv is now descended from BlendFunc_GenChamfInv.
- New class BlendFunc_ConstThroat is descended from BlendFunc_GenChamfer, new class BlendFund_ConstThroatInv is descended from BlendFunc_GenChamfInv.
- New class BlendFunc_ConstThroatWithPenetration is descended from BlendFunc_GenChamfer, new class BlendFund_ConstThroatWithPenetrationInv is descended from BlendFunc_GenChamfInv.
- Class ChFi3d_ChBuilder has now mode of chamfer that can be ClassicChamfer, ConstThroatChamfer and ConstThroatWithPenetrationChamfer.
- Two new DRAW Test Harness commands "chamf_throat" ant "chamf_throat_with_penetration" have been added for the second mode of ChBuilder.
- The interface of DRAW Test Harness command "chamf" changed for symmetric case.

5 years ago0025950: Bad performance of intersection algorithm.
nbv [Fri, 2 Nov 2018 07:06:26 +0000 (10:06 +0300)]
0025950: Bad performance of intersection algorithm.

1. Test case has been created.

2. Minor correction in DrawTrSurf.cxx file.

5 years ago0030374: Visualization, TKOpenGl - activate texture unit Graphic3d_TextureUnit_1...
kgv [Wed, 14 Nov 2018 12:15:04 +0000 (15:15 +0300)]
0030374: Visualization, TKOpenGl - activate texture unit Graphic3d_TextureUnit_1 after OpenGl_LayerList::renderTransparent()

5 years ago0030362: Data Exchange - Writing dimensions with inches produced invalid file.
ika [Thu, 8 Nov 2018 12:16:12 +0000 (15:16 +0300)]
0030362: Data Exchange - Writing dimensions with inches produced invalid file.

Writing dimensions into STEP files in inches not produce invalid references between STEP entities.

5 years ago0030354: BOP Cut doesn't modify the attached face
nbv [Fri, 9 Nov 2018 07:22:55 +0000 (10:22 +0300)]
0030354: BOP Cut doesn't modify the attached face

The reason of this problem is in wrong work of classifier algorithm (see the message ~0080992 to the issue #30354). Therefore, the algorithm of IntTools_FClass2d class has been improved. Namely, now orientation of the polygon is computed from area-criterion instead of angle. As result, some simplification of the method IntTools_FClass2d::Init(...) has been made.

<!break>

1. New constructor has been added to the class CSLib_Class2d. It allows applying TColgp_SequenceOfPnt2d.

2. DRAW-commands "addpolygonnode" and "polygonprops" have been created. They are covered by the test case "tests/geometry/2dpolygon/A1".

3. New method Poly::PolygonProperties(...) has been created. See help for detailed information.

4. New testgrid "lowalgos classifier" has been created.

5 years ago0028379: BRepMesh produces mangled mesh for a cone
oan [Fri, 2 Nov 2018 13:50:47 +0000 (16:50 +0300)]
0028379: BRepMesh produces mangled mesh for a cone

Split seam edge of a cone according to the specified parameters.
Seam edge functor is called before check of triangulation consistency in order to keep face status consistent.
The cause is that split seam edge can set Outdated flag when Reused is set by another functor without reset which can lead to refusement of such face by triangulation procedure.
Fix compilation error on VS2008

5 years ago0025952: Wrong intersection curve
nbv [Fri, 9 Nov 2018 15:00:46 +0000 (18:00 +0300)]
0025952: Wrong intersection curve

Test cases for the issue have been created.

5 years ago0030234: BRepMesh_IncrementalMesh fail to discretize some zero-length free edges
nbv [Thu, 8 Nov 2018 12:18:16 +0000 (15:18 +0300)]
0030234: BRepMesh_IncrementalMesh fail to discretize some zero-length free edges

Test case for the issue has been created.
This problem is fixed by the patch #30345.

5 years ago0029962: Master version of BRepMesh does not respect obvious details despite of speci...
nbv [Tue, 6 Nov 2018 13:40:02 +0000 (16:40 +0300)]
0029962: Master version of BRepMesh does not respect obvious details despite of specified deflection

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0029685: Meshing - BRepMesh does not respect requested deflection
nbv [Tue, 6 Nov 2018 14:03:31 +0000 (17:03 +0300)]
0029685: Meshing - BRepMesh does not respect requested deflection

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0029751: Incremental mesh produces different meshes for windows and linux (debian 8)
nbv [Wed, 7 Nov 2018 13:15:46 +0000 (16:15 +0300)]
0029751: Incremental mesh produces different meshes for windows and linux (debian 8)

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0027158: BRepMesh manage vertex tolerance in parametric space in improper way
nbv [Wed, 7 Nov 2018 12:59:29 +0000 (15:59 +0300)]
0027158: BRepMesh manage vertex tolerance in parametric space in improper way

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0026889: Very poor mesh result from shape
nbv [Wed, 7 Nov 2018 11:19:10 +0000 (14:19 +0300)]
0026889: Very poor mesh result from shape

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0023795: Performance regression of meshing
nbv [Wed, 7 Nov 2018 12:44:01 +0000 (15:44 +0300)]
0023795: Performance regression of meshing

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0026928: Edges are meshed too coarsly
nbv [Wed, 7 Nov 2018 13:56:57 +0000 (16:56 +0300)]
0026928: Edges are meshed too coarsly

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0030345: Mesh, BRepMesh_CurveTessellator - GCPnts_TangentialDeflection throws Standar...
nbv [Thu, 8 Nov 2018 08:45:01 +0000 (11:45 +0300)]
0030345: Mesh, BRepMesh_CurveTessellator - GCPnts_TangentialDeflection throws Standard_ConstructionError

Now the algorithm GCPnts_TangentialDeflection is initialized by appropriate parameters.

5 years ago0025042: Cone Meshing: Missing two connecting edges.
nbv [Thu, 8 Nov 2018 06:57:17 +0000 (09:57 +0300)]
0025042: Cone Meshing: Missing two connecting edges.

Adding test case for the issue.
The problem has been fixed after the patch #28379.

5 years ago0023513: BRepMesh doesn't stop until out-of-memory
nbv [Wed, 7 Nov 2018 11:56:27 +0000 (14:56 +0300)]
0023513: BRepMesh doesn't stop until out-of-memory

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0030348: Shape Healing - ShapeFix_Wire::FixEdgeCurves() throws Standard_OutOfRange...
kgv [Tue, 6 Nov 2018 16:42:22 +0000 (19:42 +0300)]
0030348: Shape Healing - ShapeFix_Wire::FixEdgeCurves() throws Standard_OutOfRange exception

Call FixClosed() instead of out-of-range FixConnected() at the last edge.

5 years ago0027693: BRepMesh: fine edge tessellation leads to excess number of triangles along...
nbv [Tue, 6 Nov 2018 11:22:14 +0000 (14:22 +0300)]
0027693: BRepMesh: fine edge tessellation leads to excess number of triangles along the whole U or V stripes

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0027845: BRepMesh produces invalid result on spline cavity
nbv [Thu, 8 Nov 2018 07:39:21 +0000 (10:39 +0300)]
0027845: BRepMesh produces invalid result on spline cavity

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0026965: BRepMesh_IncrementalMesh hangs, and consumes infinite memory
nbv [Tue, 6 Nov 2018 11:46:15 +0000 (14:46 +0300)]
0026965: BRepMesh_IncrementalMesh hangs, and consumes infinite memory

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0029205: BRepMesh skips some edges and generates invalid triangulation for the face
nbv [Tue, 6 Nov 2018 14:22:34 +0000 (17:22 +0300)]
0029205: BRepMesh skips some edges and generates invalid triangulation for the face

Adding test case for the problem.
The issue has been fixed by a patch for #26106.

5 years ago0030186: BRepOffsetAPI_MakePipe Generated() method produces no results for the spine...
jgv [Mon, 1 Oct 2018 15:18:54 +0000 (18:18 +0300)]
0030186: BRepOffsetAPI_MakePipe Generated() method produces no results for the spine edges

Add method BuildHistory providing history for sub-shapes of profile and spine to BRepFill_Pipe.

5 years ago0030347: Mesh, BRepMesh_ModelPostProcessor - NCollection_Array1 throws Standard_Range...
nbv [Wed, 7 Nov 2018 10:22:42 +0000 (13:22 +0300)]
0030347: Mesh, BRepMesh_ModelPostProcessor - NCollection_Array1 throws Standard_RangeError

Obtaining of 3D-polygon is forbidden for not discretized edge.

5 years ago0030344: Coding Rules - suppress GCC compiler warnings -Wstrict-overflow on Standard_...
kgv [Tue, 6 Nov 2018 13:07:21 +0000 (16:07 +0300)]
0030344: Coding Rules - suppress GCC compiler warnings -Wstrict-overflow on Standard_OutOfRange_Raise_if and Standard_RangeError_Raise_if

5 years ago0030243: Regression in HLR PolyAlgo in OCCT 7.1.0
abk [Wed, 31 Oct 2018 16:04:57 +0000 (19:04 +0300)]
0030243: Regression in HLR PolyAlgo in OCCT 7.1.0

The misprint leading to the problems was fixed.

"Draw" tests were created to check the fix.

"Draw" test bugs/modalg_7/bug28784 was corrected
for right changes of the results.

5 years ago0029716: Some TDF and XCAFDoc labels-related issues
drazmyslovich [Mon, 23 Apr 2018 13:47:52 +0000 (15:47 +0200)]
0029716: Some TDF and XCAFDoc labels-related issues

1. "Descendants" closure mode is not taken into account by TDF closure tool
2. CopyTool always creates a new label at the target ignoring the relocation table
3. XCAFDoc_GraphNode throws an exception if Child of Father is not found during the unsetting

5 years ago0027115: Configuration, genproj - add headers to generated MS VS projects
kgv [Fri, 2 Nov 2018 14:55:03 +0000 (17:55 +0300)]
0027115: Configuration, genproj - add headers to generated MS VS projects

Header files and non-compilable source files are now included within generated VS projects.
genproj now generates DRAWEXE.rc.

5 years ago0029329: Low performance of the General Fuse algorithm
nbv [Fri, 12 Jan 2018 14:15:02 +0000 (17:15 +0300)]
0029329: Low performance of the General Fuse algorithm

Creation of test case.

5 years ago0030337: Draw Harness, ViewerTest - do not restrict vtexture to AIS_Shape
kgv [Fri, 2 Nov 2018 15:40:51 +0000 (18:40 +0300)]
0030337: Draw Harness, ViewerTest - do not restrict vtexture to AIS_Shape

5 years ago0026820: bsection returns single vertex instead of curve
nbv [Fri, 2 Nov 2018 07:57:48 +0000 (10:57 +0300)]
0026820: bsection returns single vertex instead of curve

Test case has been created only because the problem is not reproduced on current MASTER.

5 years ago0021494: Intersection between cone and sphere fails
nbv [Mon, 29 Oct 2018 10:34:21 +0000 (13:34 +0300)]
0021494: Intersection between cone and sphere fails

The condition (workaround), which forbid to return the intersection curve, has been removed.

5 years ago0025082: bopcommon returns different result on Windows and Linux system
nbv [Thu, 1 Nov 2018 11:32:08 +0000 (14:32 +0300)]
0025082: bopcommon returns different result on Windows and Linux system

Test cases have been created because the problem is not reproduced on current MASTER

5 years ago0030322: Remove DRAW-command "mesh" as useless
nbv [Wed, 31 Oct 2018 11:29:28 +0000 (14:29 +0300)]
0030322: Remove DRAW-command "mesh" as useless

In fact, the DRAW-command "mesh" is duplicate of "incmesh".

The difference is that the "mesh" creates DRAW-object MeshTest_DrawableMesh. However, this object is currently not applicable (e.g. we cannot display it).

DRAW-commands "mesh", "addshape", "smooth", "edges", "vertices", "medge", "mvertex", "triangle", "dumpvertex", "dumpedge", "dumptriangle" and "onetriangulation" have been removed.

The class MeshTest_DrawableMesh has been removed as useless.

Testgrids "mesh standard_mesh" and "mesh advanced_mesh" have been removed.

5 years ago0030305: Strange logic in BRepMesh_Deflection::ComputeDeflection(...) method
nbv [Thu, 25 Oct 2018 12:21:34 +0000 (15:21 +0300)]
0030305: Strange logic in BRepMesh_Deflection::ComputeDeflection(...) method

Before the fix, angular deflection was scaled to some coefficient in the method BRepMesh_Deflection::ComputeDeflection(...). Now, angular deflection is constant.

5 years ago0030008: BRepMesh does not respect angular deflection in internal area of bspline...
nbv [Fri, 19 Oct 2018 13:38:02 +0000 (16:38 +0300)]
0030008: BRepMesh does not respect angular deflection in internal area of bspline surface

1. Check whether the mesh satisfies the required angular deflection has been amended. Namely normals (to the surface) in the ends of any not "frontier" link are made collinear (with the given angular tolerance).

2. New parameters AngleInterior and DeflectionInterior have been added in IMeshTools_Parameters structure.

3. In case of thin long faces with internal edges, add points of internal edges to control parameters using grabParamsOfInternalEdges() in order to avoid aberrations on its ends. Disable addition of parameters from boundary edges in case of BSpline surface. Deviation can be controlled through the deflection parameter.

4. Grab parameters from edges in case if there is just a single interval on BSpline surface along U and V direction.

5 years ago0026106: BRepMesh - revision of data model
oan [Mon, 9 Oct 2017 10:04:54 +0000 (13:04 +0300)]
0026106: BRepMesh - revision of data model

Removed tight connections between data structures, auxiliary tools and algorithms in order to create extensible solution, easy for maintenance and improvements;
Code is separated on several functional units responsible for specific operation for the sake of simplification of debugging and readability;
Introduced new data structures enabling possibility to manipulate discrete model of particular entity (edge, wire, face) in order to perform computations locally instead of processing an entire model.

The workflow of updated component can be divided on six parts:
* Creation of model data structure: source TopoDS_Shape passed to algorithm is analyzed and exploded on faces and edges. For each topological entity corresponding reflection is created in data model. Note that underlying algorithms use data model as input and access it via common interface which allows user to create custom data model with necessary dependencies between particular entities;
* Discretize edges 3D & 2D curves: 3D curve as well as associated set of 2D curves of each model edge is discretized in order to create coherent skeleton used as a base in faces meshing process. In case if some edge of source shape already contains polygonal data which suites specified parameters, it is extracted from shape and stored to the model as is. Each edge is processed separately, adjacency is not taken into account;
* Heal discrete model: source TopoDS_Shape can contain problems, such as open-wire or self-intersections, introduced during design, exchange or modification of model. In addition, some problems like self-intersections can be introduced by roughly discretized edges. This stage is responsible for analysis of discrete model in order to detect and repair faced problems or refuse model’s part for further processing in case if problem cannot be solved;
* Preprocess discrete model: defines actions specific for implemented approach to be performed before meshing of faces. By default, iterates over model faces and checks consistency of existing triangulations. Cleans topological faces and its adjacent edges from polygonal data in case of inconsistency or marks face of discrete model as not required for computation;
* Discretize faces: represents core part performing mesh generation for particular face based on 2D discrete data related to processing face. Caches polygonal data associated with face’s edges in data model for further processing and stores generated mesh to TopoDS_Face;
* Postprocess discrete model: defines actions specific for implemented approach to be performed after meshing of faces. By default, stores polygonal data obtained on previous stage to TopoDS_Edge objects of source model.

Component is now spread over IMeshData, IMeshTools, BRepMeshData and BRepMesh units.

<!break>

1. Extend "tricheck" DRAW-command in order to find degenerated triangles.

2. Class BRepMesh_FastDiscret::Parameters has been declared as deprecated.

3. NURBS range splitter: do not split intervals without necessity. Intervals are split only in case if it is impossible to compute normals directly on intervals.

4. Default value of IMeshTools_Parameters::MinSize has been changed. New value is equal to 0.1*Deflection.

5. Correction of test scripts:

1) perf mesh bug27119: requested deflection is increased from 1e-6 to 1e-5 to keep reasonable performance (but still reproducing original issue)
2) bugs mesh bug26692_1, 2: make snapshot of triangulation instead of wireframe (irrelevant)

Correction in upgrade guide.

5 years ago0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation
emv [Wed, 24 Oct 2018 06:12:26 +0000 (09:12 +0300)]
0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation

Boolean Operations - Force the face with internal edges to be treated by the BuilderFace algorithm. It is needed for the cases when internal edges of the face go from side to side and should really split the face.
Test case for the issue.

5 years ago0030174: ShapeUpgrade_UnifySameDomain does not unify cylindrical faces
jgv [Thu, 25 Oct 2018 13:30:56 +0000 (16:30 +0300)]
0030174: ShapeUpgrade_UnifySameDomain does not unify cylindrical faces

Hotfix for issue 27271 (avoiding potential seam edges) is deleted.

Correction of test case

5 years ago0029673: Exception while Face-Face intersection
nbv [Fri, 26 Oct 2018 08:37:00 +0000 (11:37 +0300)]
0029673: Exception while Face-Face intersection

If 2D-curves are requested in intersection result but they cannot be created (by some reason) then the full set of curves (3D and two 2D) is rejected from the intersection result.

5 years ago0028493: [Regression vs 7.0.0] Intersection algorithm produces curve with loop
nbv [Fri, 26 Oct 2018 11:06:28 +0000 (14:06 +0300)]
0028493: [Regression vs 7.0.0] Intersection algorithm produces curve with loop

1. New testgrid "lowalgos/intss" has been created. It will contain all test cases on geometrical intersection of two surfaces ("intersect" DRAW-command) and two faces ("bopcurves" DRAW-command).

2. New test case for the issue #28493 has been created because the problem is not reproduced on MASTER.

3. Test case (lowalgos/intss/bug24472) for the issue #29501 has been modified in order to check loops of the resulting intersection curves.

5 years ago0030315: Data Exchange - Crash reading views during STEP import.
ika [Fri, 26 Oct 2018 15:04:10 +0000 (18:04 +0300)]
0030315: Data Exchange - Crash reading views during STEP import.

Add NULL check to protect against crash.

5 years ago0024676: Wrong result done by intersection algorithm
nbv [Thu, 25 Oct 2018 14:14:21 +0000 (17:14 +0300)]
0024676: Wrong result done by intersection algorithm

Only test case has been created because the problem is not reproduced on the current MASTER

5 years ago0030291: Visualization - manipulator crashes when is attached with scaling mode disabled
aba [Wed, 24 Oct 2018 16:25:12 +0000 (19:25 +0300)]
0030291: Visualization - manipulator crashes when is attached with scaling mode disabled

- in ComputeSelection() method checks are added to avoid taking triangulation of manipulator parts that are not computed

5 years ago0026509: Intersection algorithm produces set of curves providing closed contour in...
nbv [Tue, 23 Oct 2018 13:58:59 +0000 (16:58 +0300)]
0026509: Intersection algorithm produces set of curves providing closed contour in 3D-space and not closed contour in 2D-space

Test cases have been created. No fix is needed because the described problem has not to be cause of failing of high-level OCCT-algorithms.
See the message ~80300 (issue #26509) for detail information.

5 years ago0030270: Modeling Algorithms - BRepBndLib should provide an option for skipping infin...
kgv [Tue, 23 Oct 2018 14:39:36 +0000 (17:39 +0300)]
0030270: Modeling Algorithms - BRepBndLib should provide an option for skipping infinite entities

Bnd_Box now keeps calculating of finite part of bounding box after specifying it to be Open in some direction.
The finite part can be retrieved using new method Bnd_Box::FinitePart().

Prs3d::GetDeflection() now uses Bnd_Box::FinitePart() when applying relative deflection.

Draw Harness command bounding has been extended with option -finite returing a finite part of AABB.

5 years ago0030214: Application Framework, TPrsStd_AISPresentation - Hidden Presentations Cannot...
vro [Wed, 24 Oct 2018 11:04:57 +0000 (14:04 +0300)]
0030214: Application Framework, TPrsStd_AISPresentation - Hidden Presentations Cannot Be Removed

5 years ago0024905: Boolean cut produced invalid result
nbv [Tue, 23 Oct 2018 11:07:11 +0000 (14:07 +0300)]
0024905: Boolean cut produced invalid result

The method BOPAlgo_PaveFiller::PutClosingPaveOnCurve(...) has been improved in order to take into account extended vertex tolerance.

5 years ago0030280: Data Exchange - broken VRML output due to unescaped symbols starting comment...
skl [Tue, 23 Oct 2018 04:50:33 +0000 (07:50 +0300)]
0030280: Data Exchange - broken VRML output due to unescaped symbols starting comment block

5 years ago0030203: ProjLib_ComputeApproxOnPolarSurface::BuildInitialCurve2d array out of bound
ifv [Tue, 16 Oct 2018 14:10:44 +0000 (17:10 +0300)]
0030203: ProjLib_ComputeApproxOnPolarSurface::BuildInitialCurve2d array out of bound

Bug fixing: avoiding calculation if tPp == NbOfPnts

5 years ago0030199: Extrema Point<->Curve gives inaccurate result
ifv [Mon, 15 Oct 2018 12:38:00 +0000 (15:38 +0300)]
0030199: Extrema Point<->Curve gives inaccurate result

Special treatment of bspline curve of first degree is implemented in Extrema_GExtPC.gxx
Test case is added
Some test cases are modified according to actual state of algorithm

5 years ago0030119: Visualization, OpenGl_ShaderManager - implement mechanism generating in...
mnv [Fri, 7 Sep 2018 07:18:46 +0000 (10:18 +0300)]
0030119: Visualization, OpenGl_ShaderManager - implement mechanism generating in/out section of shader programs

Added functionality which generate in/out part of shaders source code from prepared list of variables.

5 years ago0030269: Modeling Algorithms - unhandled Standard_NullObject within BRepBndLib::Add()
kgv [Fri, 19 Oct 2018 08:06:41 +0000 (11:06 +0300)]
0030269: Modeling Algorithms - unhandled Standard_NullObject within BRepBndLib::Add()

Added BRep_Tool::IsGeometric() check before every BRepAdaptor_Curve::Initialize().

5 years ago0030278: Foundation Classes - make IndexedMapNode as protected inside of NCollection_...
osa [Mon, 22 Oct 2018 08:32:46 +0000 (11:32 +0300)]
0030278: Foundation Classes - make IndexedMapNode as protected inside of NCollection_IndexedMap

5 years ago0030204: BRepOffsetAPI_MakePipeShell crash
jgv [Fri, 12 Oct 2018 10:02:34 +0000 (13:02 +0300)]
0030204: BRepOffsetAPI_MakePipeShell crash

Add protection from type mismatch while ensuring Same Parameter on U-edges

5 years ago0030169: Application Framework - Document format version management improvement
szy [Tue, 9 Oct 2018 14:30:10 +0000 (17:30 +0300)]
0030169: Application Framework - Document format version management improvement