occt.git
6 days ago0032191: Tests - merge duplicated tests/v3d selection cases IR-2021-04-30 WEEK-17 master
mkrylova [Tue, 27 Apr 2021 10:10:13 +0000 (13:10 +0300)]
0032191: Tests - merge duplicated tests/v3d selection cases

- merged duplicated tests vselect cases

6 days ago0032331: Visualization - Exception when trying to display some surfaces using iVtk...
anv [Tue, 27 Apr 2021 18:33:54 +0000 (21:33 +0300)]
0032331: Visualization - Exception when trying to display some surfaces using iVtk with VTK 9

Updated memory allocation for vtkPolyData to use more suited method for VTK versions after 9.0

6 days ago0032342: Draw Harness - preload basic Tcl scripts into WebAssembly
kgv [Thu, 29 Apr 2021 19:13:20 +0000 (22:13 +0300)]
0032342: Draw Harness - preload basic Tcl scripts into WebAssembly

DrawResources Tcl scripts and $tcl_library (init.tcl) are now preloaded into WebAssembly emulated filesystem for DRAWEXE.wasm.
DRAWEXE now mimics "pload" command for statically linked plugins.

6 days ago0032341: Coding Rules - eliminate GCC11 compiler warnings -Wmaybe-uninitialized
kgv [Thu, 29 Apr 2021 18:01:17 +0000 (21:01 +0300)]
0032341: Coding Rules - eliminate GCC11 compiler warnings -Wmaybe-uninitialized

8 days ago0032314: Data Exchange - Reading corrupted STEP files crashes
dpasukhi [Wed, 28 Apr 2021 08:53:40 +0000 (11:53 +0300)]
0032314: Data Exchange - Reading corrupted STEP files crashes

RWAxis2Placement3d:
 fixed problem with reading parameters ( if sub-entity invalid, set has-parameter to false )

8 days ago0032088: Modeling Algorithms - Empty result of offset operation in mode "Complete...
emv [Wed, 27 Jan 2021 13:24:11 +0000 (16:24 +0300)]
0032088: Modeling Algorithms - Empty result of offset operation in mode "Complete" join type "Intersection"

Mark inverted edges located inside loops of invalid edges as invalid as well.

8 days ago0031949: JT Import - some colors are lost while reading XT representation from JT...
dpasukhi [Mon, 21 Dec 2020 10:52:11 +0000 (13:52 +0300)]
0031949: JT Import - some colors are lost while reading XT representation from JT file

Added checking to style of faces from SHELL and edges from WIRE
RWMesh_CafReader::fillDocument() is virtual now

8 days ago0032334: Visualization - SelectMgr_RectangularFrustum::Overlaps() does not set triang...
kgv [Tue, 27 Apr 2021 09:31:23 +0000 (12:31 +0300)]
0032334: Visualization - SelectMgr_RectangularFrustum::Overlaps() does not set triangle normal in some cases

Added missing SelectBasics_PickResult::SetSurfaceNormal().

8 days ago0032323: Configuration - drop unused dependency from Xmu
kgv [Fri, 23 Apr 2021 10:02:08 +0000 (13:02 +0300)]
0032323: Configuration - drop unused dependency from Xmu

Removed unused header Aspect_XWD.hxx.
Removed redundant includes of unused X11 extension headers.
Added missing dependency on pthread to TKDraw.

Added "-z defs" linker flag to qmake projects to detect missing library dependencies.
Removed unused CSF_MotifLibs.

8 days ago0032319: Foundation Classes, OSD_MemInfo - use mallinfo2() instead of deprecated...
kgv [Thu, 22 Apr 2021 17:42:47 +0000 (20:42 +0300)]
0032319: Foundation Classes, OSD_MemInfo - use mallinfo2() instead of deprecated mallinfo()

13 days ago0032320: Documentation - mention rapidjson-dev and qtcreator within Debian packages IR-2021-04-23 WEEK-16
kgv [Thu, 22 Apr 2021 17:57:38 +0000 (20:57 +0300)]
0032320: Documentation - mention rapidjson-dev and qtcreator within Debian packages

13 days ago0032315: Configuration, CMake - fix building Draw Harness plugins as static libraries
kgv [Fri, 19 Mar 2021 21:31:01 +0000 (00:31 +0300)]
0032315: Configuration, CMake - fix building Draw Harness plugins as static libraries

DPLUGIN() macros no more defines exported function PLUGINFACTORY when building static libraries.
DRAWEXE executable now pre-loads a set of plugins when building static libraries.
dversion - added WebAssembly info.

2 weeks ago0032311: Documentation - Removing obsolete tag COLS_IN_ALPHA_INDEX
bugmaster [Wed, 21 Apr 2021 11:31:50 +0000 (14:31 +0300)]
0032311: Documentation - Removing obsolete tag COLS_IN_ALPHA_INDEX

2 weeks ago0032313: Modeling Algorithms - Missing definition of constructor in GeomFill_NSections
kgv [Wed, 21 Apr 2021 11:17:30 +0000 (14:17 +0300)]
0032313: Modeling Algorithms - Missing definition of constructor in GeomFill_NSections

2 weeks ago0032307: Modeling Algorithms - Empty result of offset operation in mode "Complete...
emv [Fri, 16 Apr 2021 12:21:32 +0000 (15:21 +0300)]
0032307: Modeling Algorithms - Empty result of offset operation in mode "Complete" Joint type "Intersection"

Make sure the vertices created by pairwise intersection of edges connected in the same vertex are unified correctly.

2 weeks ago0032091: Visualization - possibility to redefine Graphic3d_TransformPers
nds [Thu, 28 Jan 2021 07:57:54 +0000 (10:57 +0300)]
0032091: Visualization - possibility to redefine Graphic3d_TransformPers

2 weeks ago0032292: Coding Rules - improve HLRBRep_PolyAlgo readability part 2
kgv [Sat, 17 Apr 2021 19:32:17 +0000 (22:32 +0300)]
0032292: Coding Rules - improve HLRBRep_PolyAlgo readability part 2

Applied name conventions and dropped tabulation symbols.

2 weeks ago0031939: Coding - correction of spelling errors in comments [part 10]
luz paz [Mon, 19 Apr 2021 08:42:46 +0000 (11:42 +0300)]
0031939: Coding - correction of spelling errors in comments [part 10]

Fix various typos via codespell.

2 weeks ago0032308: Configuration - make Xlib dependency optional
kgv [Fri, 16 Apr 2021 13:12:16 +0000 (16:12 +0300)]
0032308: Configuration - make Xlib dependency optional

MACOSX_USE_GLX has been renamed to HAVE_XLIB and now configurable on Linux target.

Xw_Window.hxx now export class on non-Linux platforms.
OpenGl_Window now creates an off-screen EGL surface also in case of
window-less desktop setup (e.g. with disabled Xlib on Linux).

Draw_Window - code has been cleaned up.
Class definition has been unified across platforms when possible.
Unusued constructors have been removed.
Internal header files (MainWindow.h, init.h, etc.) have been renamed to .pxx
to avoid their unexpected distribution in "inc".

2 weeks ago0032306: Draw Harness, ViewerTest - move window message processing to TKService
kgv [Fri, 16 Apr 2021 10:01:17 +0000 (13:01 +0300)]
0032306: Draw Harness, ViewerTest - move window message processing to TKService

Aspect_WindowInputListener - basic mouse/keyboard/expose input methods
have been moved out from AIS_ViewController to dedicated base interface.

Added WNT_Window::ProcessMessage()/Xw_Window::ProcessMessage() methods
redirecting Win32/X11 message to Aspect_WindowInputListener.

2 weeks ago0031984: Modeling Algorithms - Sweep crashes if Bi-normal is given IR-2021-04-16 WEEK-15
jgv [Tue, 13 Apr 2021 13:03:21 +0000 (16:03 +0300)]
0031984: Modeling Algorithms - Sweep crashes if Bi-normal is given

Small modification in BRepFill_Sweep: to avoid exception, return status NotDone if construction of pipe surface fails.

2 weeks ago0032213: Modeling Algorithms - Invalid result of UnifySameDomain
jgv [Thu, 8 Apr 2021 00:49:14 +0000 (03:49 +0300)]
0032213: Modeling Algorithms - Invalid result of UnifySameDomain

Modify unification of faces: add splitting new wire into several ones.

2 weeks ago0032301: Visualization, TKOpenGl - depth peeling is broken with OpenGl_Caps::buffersO...
kgv [Thu, 15 Apr 2021 12:34:52 +0000 (15:34 +0300)]
0032301: Visualization, TKOpenGl - depth peeling is broken with OpenGl_Caps::buffersOpaqueAlpha option

OpenGl_LayerList::renderTransparent() - color mask is now set to write into Alpha channel of depth peeling FBOs.
OpenGl_View::blitBuffers() - avoid using undefined color for glClear(GL_COLOR_BUFFER_BIT) operation.

3 weeks ago0032304: Configuration - genproj should not override env.bat in OCC Products
kgv [Thu, 15 Apr 2021 13:05:01 +0000 (16:05 +0300)]
0032304: Configuration - genproj should not override env.bat in OCC Products

3 weeks ago0032302: Visualization, TKOpenGles - do not use window buffer by default
kgv [Thu, 15 Apr 2021 08:27:38 +0000 (11:27 +0300)]
0032302: Visualization, TKOpenGles - do not use window buffer by default

OpenGl_Caps::useSystemBuffer is now set to FALSE on both OpenGL and OpenGL ES.
OpenGl_Caps::buffersNoSwap and OpenGl_Caps::buffersOpaqueAlpha are now set to TRUE by default on WebGL.

3 weeks ago0032232: Draw Harness - make Tk dependency optional
kgv [Sat, 20 Mar 2021 10:10:49 +0000 (13:10 +0300)]
0032232: Draw Harness - make Tk dependency optional

3 weeks ago0032205: Visualization - implementing new selection scheme in context - replace extra
nds [Wed, 28 Oct 2020 18:16:27 +0000 (21:16 +0300)]
0032205: Visualization - implementing new selection scheme in context - replace extra

- implementation of additional selection scheme, mainly to deselect single selected object.

3 weeks ago0031678: Visualization - add option enabling hinting for textured fonts
kgv [Wed, 14 Apr 2021 11:10:40 +0000 (14:10 +0300)]
0031678: Visualization - add option enabling hinting for textured fonts

Added new rendering parameter Graphic3d_RenderingParams::FontHinting
allowing to enable/disable hinting (default is no hinting preserving old behavior).

Command vrenderparams has been extended with arguments -fontHinting.

3 weeks ago0032292: Coding Rules - improve HLRBRep_PolyAlgo readability part 1
kgv [Sat, 10 Apr 2021 07:21:33 +0000 (10:21 +0300)]
0032292: Coding Rules - improve HLRBRep_PolyAlgo readability part 1

HLRBRep_PolyAlgo::StoreShell() - removed a couple of redundant variables (pointers to handles) and extra iterators.
Added a couple of missing NULL checks (HLRBRep_PolyAlgo::Normal() now skips CSLib::Normal() in case of no surface).

3 weeks ago0032297: Coding Rules - merge GCPnts_UniformAbscissa.pxx into GCPnts_UniformAbscissa.cxx
kgv [Sat, 10 Apr 2021 14:44:18 +0000 (17:44 +0300)]
0032297: Coding Rules - merge GCPnts_UniformAbscissa.pxx into GCPnts_UniformAbscissa.cxx

3 weeks ago0032296: Coding Rules - merge GCPnts_QuasiUniformDeflection.pxx into GCPnts_QuasiUnif...
kgv [Sat, 10 Apr 2021 13:45:59 +0000 (16:45 +0300)]
0032296: Coding Rules - merge GCPnts_QuasiUniformDeflection.pxx into GCPnts_QuasiUniformDeflection.cxx

3 weeks ago0032295: Coding Rules - merge GCPnts_AbscissaPoint.pxx into GCPnts_AbscissaPoint.cxx
kgv [Sat, 10 Apr 2021 12:36:47 +0000 (15:36 +0300)]
0032295: Coding Rules - merge GCPnts_AbscissaPoint.pxx into GCPnts_AbscissaPoint.cxx

3 weeks ago0032294: Coding Rules - merge GCPnts_QuasiUniformAbscissa.pxx into GCPnts_QuasiUnifor...
kgv [Sat, 10 Apr 2021 08:55:28 +0000 (11:55 +0300)]
0032294: Coding Rules - merge GCPnts_QuasiUniformAbscissa.pxx into GCPnts_QuasiUniformAbscissa.cxx

3 weeks ago0032293: Coding Rules - merge GCPnts_UniformDeflection.pxx into GCPnts_UniformDeflect...
kgv [Sat, 10 Apr 2021 08:13:14 +0000 (11:13 +0300)]
0032293: Coding Rules - merge GCPnts_UniformDeflection.pxx into GCPnts_UniformDeflection.cxx

3 weeks ago0032289: Visualization - add NCollection_Mat3 for 3x3 matrix similar to NCollection_Mat4 IR-2021-04-09 WEEK-14
kgv [Fri, 9 Apr 2021 09:16:55 +0000 (12:16 +0300)]
0032289: Visualization - add NCollection_Mat3 for 3x3 matrix similar to NCollection_Mat4

Introduced NCollection_Mat3 class similar to NCollection_Mat4.
Added NCollection_Mat4::operator() alias to NCollection_Mat4::Value().
Added NCollection_Mat4::Negated(), ::Subtracted(), ::Added(), ::Divided() operations.
Added a note to NCollection_Mat4::GetData() that matrix values are stored in column-major order.
Removed duplicated operator== operators from NCollection_Mat4/NCollection_Vec4/NCollection_Vec3/NCollection_Vec2 classes.

Removed obsolete and no more used matrix state fields from OpenGl_Workspace.
Removed obsoiete structure OpenGl_Matrix (replaced by OpenGl_Mat4).
OpenGl_ShaderProgram - duplicated methods have been replaced by templates.

4 weeks ago0032285: Coding Rules - get rid of generic methods in GCPnts_TangentialDeflection
kgv [Tue, 6 Apr 2021 12:16:22 +0000 (15:16 +0300)]
0032285: Coding Rules - get rid of generic methods in GCPnts_TangentialDeflection

4 weeks ago0032274: Tests - unstable snapshots from test case v3d/bugs/bug24785
kgv [Wed, 7 Apr 2021 11:29:58 +0000 (14:29 +0300)]
0032274: Tests - unstable snapshots from test case v3d/bugs/bug24785

Test case has been adjusted to reproduce scenario it was supposed to check.

4 weeks ago0032106: Modeling Algorithms - Tolerance of General Fuse result depends on a sequence...
ifv [Thu, 1 Apr 2021 08:10:00 +0000 (11:10 +0300)]
0032106: Modeling Algorithms - Tolerance of General Fuse result depends on a sequence of arguments

BOPTools_AlgoTools2D::MakePCurveOnFace(...): extension of surface for projection with large tolerance is added.

test/bugs/modalg_7/bug32106 : new test case added

4 weeks ago0031087: Configuration - make FreeType dependency optional
kgv [Tue, 6 Apr 2021 19:25:38 +0000 (22:25 +0300)]
0031087: Configuration - make FreeType dependency optional

Added option USE_FREETYPE to CMake configuration, enabled by default.
Added handling of HAVE_FREETYPE macros.

genproj now overrides env.bat/env.sh on template change.

4 weeks ago0032264: Data Exchange - STEP exporter generates bad geometry [REGRESSION since 7... IR-2021-04-02 WEEK-13
gka [Wed, 31 Mar 2021 08:43:16 +0000 (11:43 +0300)]
0032264: Data Exchange - STEP exporter generates bad geometry [REGRESSION since 7.4.0]

Location of edge is applied to geom curve before analysis of vertices projections

4 weeks ago0032276: Coding Rules - replace IntTools_CArray1OfReal by NCollection_Array1
kgv [Fri, 2 Apr 2021 09:35:23 +0000 (12:35 +0300)]
0032276: Coding Rules - replace IntTools_CArray1OfReal by NCollection_Array1

IntTools_CArray1OfReal has been replaced by TColStd_Array1OfReal.
IntTools_CArray1OfInteger has been removed (unused).

4 weeks ago0031939: Coding - correction of spelling errors in comments [part 9]
luz paz [Thu, 1 Apr 2021 17:18:10 +0000 (20:18 +0300)]
0031939: Coding - correction of spelling errors in comments [part 9]

Fix various typos via codespell.

4 weeks ago0031190: Modeling Algorithms - progress indication in GeomPlate is inconsistent
akaftasev [Mon, 29 Mar 2021 16:15:54 +0000 (19:15 +0300)]
0031190: Modeling Algorithms - progress indication in GeomPlate is inconsistent

Added ability to display progress indicator in plate commands
Added tests

4 weeks ago0032174: Data Exchange - read.step.root.transformation parameter has reversed definition
kgv [Thu, 25 Feb 2021 19:44:31 +0000 (22:44 +0300)]
0032174: Data Exchange - read.step.root.transformation parameter has reversed definition

Parameter definition has been corrected to match other Boolean parameters to map 0=OFF and 1=ON.

4 weeks ago0025845: VIS - Surface normals to be associated with polygonal source
kgv [Tue, 30 Mar 2021 18:26:45 +0000 (21:26 +0300)]
0025845: VIS - Surface normals to be associated with polygonal source

IVtk_IShapeData::InsertCoordinate() has been replaced by IVtk_IShapeData::InsertPoint()
defining vertex position with surface normal.
IVtkVTK_ShapeData now allocates normals array within vtkPolyData.
IVtkOCC_ShapeMesher now fills in vertex positions with surfcae normals.
IVtkTools_SubPolyDataFilter has been corrected to optionally copy normals.

ivtksetboundingdraw command has been merged into "ivtksetdispmode -faceBoundaryDraw".

5 weeks ago0032269: Visualization - update trinfo command with -lods option
osa [Tue, 30 Mar 2021 12:49:57 +0000 (15:49 +0300)]
0032269: Visualization - update trinfo command with -lods option

5 weeks ago0032262: Samples - JNIViewer sample compilation failure due to usage of removed alias...
kgv [Mon, 29 Mar 2021 14:56:06 +0000 (17:56 +0300)]
0032262: Samples - JNIViewer sample compilation failure due to usage of removed aliases to Image_Format

5 weeks ago0032251: Documentation, gendoc.tcl - reference manual excludes TKIVtk and other optio...
kgv [Sat, 27 Mar 2021 12:48:37 +0000 (15:48 +0300)]
0032251: Documentation, gendoc.tcl - reference manual excludes TKIVtk and other optional modules

gendoc.tcl -refman now temporarily sets HAVE_ environment variables for including optional modules.

5 weeks ago0032250: Documentation - pseudographics within gp_Trsf description is not properly...
kgv [Sat, 27 Mar 2021 11:45:06 +0000 (14:45 +0300)]
0032250: Documentation - pseudographics within gp_Trsf description is not properly escaped

Added @code tags to documentation of several classes in the package gp.

5 weeks ago0032248: Visualization - load "false" deferred glTF data immediately
osa [Fri, 26 Mar 2021 12:02:41 +0000 (15:02 +0300)]
0032248: Visualization - load "false" deferred glTF data immediately

5 weeks ago0032247: VIS, IVtkOCC_ShapeMesher - allow disabling auto-triangulation behavior
kgv [Fri, 26 Mar 2021 09:37:10 +0000 (12:37 +0300)]
0032247: VIS, IVtkOCC_ShapeMesher - allow disabling auto-triangulation behavior

IVtkOCC_Shape now stores Prs3d_Drawer object used by IVtkOCC_ShapeMesher and IVtkOCC_SelectableObject.
IVtkOCC_ShapeMesher::internalBuild() made more consistent to AIS_Shape::Compute() in cleaning/triangulating shape.

Added command ivtkdefaults similar to vdefaults managing triangulation default parameters.

5 weeks ago0032242: Configuration, CMake - USE_GLES2 option does not appear in interactive confi... IR-2021-03-26 WEEK-12
kgv [Tue, 23 Mar 2021 21:26:16 +0000 (00:26 +0300)]
0032242: Configuration, CMake - USE_GLES2 option does not appear in interactive configurator

USE_D3D, USE_OPENGL and USE_GLES2 options declarations have been reordered.

5 weeks ago0032225: Modeling Data - Wrong result of extrema curve-surface
ifv [Thu, 18 Mar 2021 14:07:37 +0000 (17:07 +0300)]
0032225: Modeling Data - Wrong result of extrema curve-surface

Extrema_GenExtCS.cxx: subdivision on intervals for periodic c curves is added

Extrema_FuncExtCS.hxx: access to fields mySqDist, myPoint1, myPoint2 is added

bug32225: new test case is added

5 weeks ago0028196: Modeling Data - Algorithm 'Extrema_GenLocateExtPS' failed to find the extrem...
ifv [Thu, 17 Dec 2020 14:41:59 +0000 (17:41 +0300)]
0028196: Modeling Data - Algorithm 'Extrema_GenLocateExtPS' failed to find the extremum in a case

Extrema_GenLocateExtPS.cxx, Extrema_GenLocateExtPS.hxx:

Adjusting tolerances according to surface sizes is added.
Additional methods for searching solution are added for cases if basic method fails.

Extrema_FuncPSDist.cxx - small bug fixing.

BRepFill_TrimShellCorner.cxx - fixing regression

ChFi3d_Builder_CnCrn.cxx setting parameters for Plate algorithm to improve stability of solution

ProjLib_ComputeApproxOnPolarSurface.cxx - code optimization

Some test cases are modified according to current state of Extrema algorithm

5 weeks ago0032234: Configuration, OSD_Process::UserName() - avoid using getpwuid() unimplemente...
kgv [Sun, 21 Mar 2021 20:26:56 +0000 (23:26 +0300)]
0032234: Configuration, OSD_Process::UserName() - avoid using getpwuid() unimplemented by Emscripten SDK

5 weeks ago0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory...
kgv [Thu, 25 Mar 2021 12:26:37 +0000 (15:26 +0300)]
0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory leak

Test case has been adjusted to check memory trend after the loop.

5 weeks ago0032086: Visualization - support deferred data loading
osa [Fri, 26 Feb 2021 15:01:11 +0000 (18:01 +0300)]
0032086: Visualization - support deferred data loading

1) Extend Poly_Triangulation by mesh purpose, possibility to be cleared and late-load deferred data interfaces.
2) Update BRep_TFace to store list of triangulations istead of single one. And also active one. Update getter and setter of single triangulation and add new methods to interaction with whole triangulations list.
3) Update BRep_Tool to get single triangulation of face according to the input mesh purpose or whole triangulations list.
4) Update BRep_Builder to make face by not only single triangulation but whole triangulations list with specified active one.
5) Add new methods to BRepTools to interact with shape triangulations (Load/Unload/Activate/LoadAll/UnloadAllTriangulation(s))
6) Add new 'tlateload'command for shape to load/unload/activate triangulations.
7) Update 'trinfo' command by '-lods' options to print detailaed information about LODs of this shape
8) Support empty triangulations by selection. Use bounding box selection in this case.
9) Add new 'outdisplist' option to XDispaly command to print list of displayed objects to output variable but not to theDI
10) Add new '-noecho' option to vdisplay command to skip printing of displayed objects to theDI
11) Create new RWMesh_TriangulationSource as mesh data wrapper for delayed triangulation loading.
12) Create new RWMesh_TriangulationReader as base interface for reading primitive array from the buffer.
13) Cache nodes/triangles number defined in glTF file
14) Use RWMesh_TriangulationSource class as base of RWGltf_GltfLatePrimitiveArray one and RWMesh_TriangulationReader class as base of RWGltf_TriangulationReader one
15) Add possibilty to support of LODs by glTF reader. It is possible to skip data loading and load them later
16) Add new '-skiplateloading' (to skip triangulation loading), '-keeplate' (to keep information about deferred storage to load/unload triangulation later),
'-toprintdebuginfo' (to print additional debug information) options to ReadGltf command
17) Add new test of glTF late loading

5 weeks ago0032243: Tests - unexpected file artifact s.stl at the root of repository
kgv [Wed, 24 Mar 2021 07:52:51 +0000 (10:52 +0300)]
0032243: Tests - unexpected file artifact s.stl at the root of repository

Several test cases have been corrected to avoid creation
of temporary files s.stl, comp_nonmanifold.step, bug31301_1.stp at unexpected location.

6 weeks ago0032208: Tests - refactor visualization tests to cover several graphic drivers
kgv [Mon, 22 Mar 2021 09:29:04 +0000 (12:29 +0300)]
0032208: Tests - refactor visualization tests to cover several graphic drivers

Removed testgrids 'bugs/vis' and '3rdparty'; tests have been redistributed across other grids.
Moved testgrid 'v3d/ivtk' into dedicated 'vtk/ivtk'.

Added testgrid 'vselect' dedicated to 3D viewer picking/selection functionality
and filled with tests from 'v3d/vertex', 'v3d/face' and similar groups.

Added testgrid 'opengl' dedicated to OpenGL driver low-level functionality (GLSL programs and similar)
and filled with tests from 'v3d/glsl', 'v3d/raytrace', '3rdparty/fonts', 'bugs/vis' (portion) and similar.

Added testgrid 'opengles3' dedicated to OpenGL ES 3.0 driver low-level functionality
and reusing tests from 'opengl' testgrid.
Subgroup 'opengles3/raytrace' is disabled on Windows, as Ray-Tracing currently requires OpenGL ES 3.2.
while ANGLE library implements only OpenGL ES 3.0.

Added testgrid 'opengles2' dedicated to OpenGL ES 2.0 driver low-level functionality
and reusing a limited subset of passing tests from 'opengl' testgrid.
Currently testgrid is activated only on Windows platform when using ANGLE library
(properietary OpenGL ES drivers do not allow creation of restricted 2.0 context).

Test cases have been cleaned out to put bug description into log,
to properly load necessary plugins and to explicitly dump viewer.

6 weeks ago0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera...
kgv [Mon, 22 Mar 2021 14:57:30 +0000 (17:57 +0300)]
0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera projection

6 weeks ago0032222: Visualization, V3d_Viewer - use Graphic3d_TOSM_FRAGMENT by default instead...
kgv [Mon, 22 Mar 2021 17:32:02 +0000 (20:32 +0300)]
0032222: Visualization, V3d_Viewer - use Graphic3d_TOSM_FRAGMENT by default instead of Graphic3d_TOSM_VERTEX

6 weeks ago0032230: Coding Rules - remove class headers Graphic3d_HighlightStyle.hxx deprecated...
kgv [Fri, 19 Mar 2021 09:37:30 +0000 (12:37 +0300)]
0032230: Coding Rules - remove class headers Graphic3d_HighlightStyle.hxx deprecated since OCCT 7.2.0

Removed unused Graphic3d_HighlightStyle, Graphic3d_CTexture, Graphic3d_MapOfZLayerSettings,
Graphic3d_TypeOfComposition, Graphic3d_TypeOfComposition, V3d_Parameter, V3d_ViewPointer, SelectMgr_SequenceOfFilter.

Added missing deprecation statements to SelectBasics_SensitiveEntity, SelectMgr_EntityOwner and PrsMgr_Presentation3d.

6 weeks ago0032235: Foundation Classes, Message_MsgFile - force initialization of global mutex
kgv [Fri, 19 Mar 2021 21:08:50 +0000 (00:08 +0300)]
0032235: Foundation Classes, Message_MsgFile - force initialization of global mutex

Initialization of several global variables has been refactored to a function.

6 weeks ago0025262: Foundation Classes - Poly package improvements
pdn [Tue, 23 Sep 2014 08:04:57 +0000 (12:04 +0400)]
0025262: Foundation Classes - Poly package improvements

Improvements of functionality of Poly package:
* Add function to intersect a triangulation by an axis.
* Add function to intersect a triangle by an axis.
* Correct the bugs in the methods RemoveDegenerated, RemoveTriangle and ReplaceNodes of the class Poly_CoherentTriangulation.

6 weeks ago0032140: Modeling Algorithms - unify same domain calls crossed for opposite vectors
jgv [Mon, 5 Oct 2020 20:39:08 +0000 (23:39 +0300)]
0032140: Modeling Algorithms - unify same domain calls crossed for opposite vectors

1. Correct unification of circular edges: avoid trying to make an axis with null magnitude.
2. New method UnionPCurves: unify existing pcurves of chain instead of projecting the curve of unified edge onto surfaces

6 weeks ago0032206: Visualization, TKOpenGl - move out OpenGL ES support to dedicated library...
kgv [Wed, 17 Mar 2021 18:03:04 +0000 (21:03 +0300)]
0032206: Visualization, TKOpenGl - move out OpenGL ES support to dedicated library TKOpenGles

Added TKOpenGles and TKOpenGlesTest toolkits built with HAVE_GLES2 macros.
Added CSF_OpenGlesLibs as alternative to CSF_OpenGlLibs.

7 weeks ago0032199: Modeling Algorithms - BOP Cut produces invalid shape
emv [Tue, 9 Mar 2021 04:32:30 +0000 (07:32 +0300)]
0032199: Modeling Algorithms - BOP Cut produces invalid shape

Use section tolerance for checking the valid range.

7 weeks ago0032203: Draw Harness, ViewerTest - drop dependency from OpenGL
kgv [Mon, 8 Mar 2021 17:34:41 +0000 (20:34 +0300)]
0032203: Draw Harness, ViewerTest - drop dependency from OpenGL

Added TKOpenGlTest and TKD3DHostTest Draw Harness plugins.
TKOpenGlTest is automatically loaded by ViewerTest::ViewerInit().

Commands vgldebug, vvbo, vcaps and vuserdraw have been moved to TKOpenGlTest.
New command vglshaders lists GLSL programs defined by OpenGl_GraphicDriver,
previously implemented by "vshaderprog -list".

Added new command vdriver for graphic driver selection.
Removed erroneous code from command vstereo.

7 weeks ago0032221: Visualization, TKD3DHost - fix memory leak within D3DHost_FrameBuffer::Release()
kgv [Wed, 17 Mar 2021 06:54:27 +0000 (09:54 +0300)]
0032221: Visualization, TKD3DHost - fix memory leak within D3DHost_FrameBuffer::Release()

D3DHost_FrameBuffer - added missing color texture release within FBO destruction.
OpenGl_View::RedrawImmediate() - fixed unexpected window buffer swap while rendering into offscreen myFBO.

7 weeks ago0032202: Visualization - XCAFDoc_VisMaterial::FillMaterialAspect() should copy emissi...
kgv [Sat, 6 Mar 2021 07:48:18 +0000 (10:48 +0300)]
0032202: Visualization - XCAFDoc_VisMaterial::FillMaterialAspect() should copy emissive color from PBR definition

7 weeks ago0032217: Visualization, TKOpenGl - drop propagation of unused FFP functions
kgv [Wed, 10 Mar 2021 18:59:45 +0000 (21:59 +0300)]
0032217: Visualization, TKOpenGl - drop propagation of unused FFP functions

OpenGl_GlFunctions no more loads unused FFP functions.
OpenGl_GlCoreXX function tables no more defined two hierarchies with and without FFP functions,
and OpenGl_Context::coreXXback fields have been removed.
Introduced OpenGl_Context::core11ffp as more straightforward naming for obsolete FFP function set.

7 weeks ago0032200: Visualization, TKOpenGl - unify Phong/PBR light space calculations
kgv [Fri, 5 Mar 2021 20:06:50 +0000 (23:06 +0300)]
0032200: Visualization, TKOpenGl - unify Phong/PBR light space calculations

Graphic3d_ShaderManager - Phong shading now uses World space calculations.
OpenGl_ShaderManager::pushLightSourceState() - fixed unnormalized direction of headlight source.

7 weeks ago0032198: Visualization, TKOpenGl - per-vertex lighting ignores back/front material...
kgv [Sat, 6 Mar 2021 00:22:05 +0000 (03:22 +0300)]
0032198: Visualization, TKOpenGl - per-vertex lighting ignores back/front material colors

Graphic3d_ShaderManager::stdComputeLighting() now multiplies vertex color by material color.

7 weeks ago0032201: Visualization, TKOpenGl - unify Phong/PBR material properties getters
kgv [Fri, 5 Mar 2021 14:26:47 +0000 (17:26 +0300)]
0032201: Visualization, TKOpenGl - unify Phong/PBR material properties getters

Graphic3d_ShaderManager::stdComputeLighting() - implementation has been adjusted
for better consistency between PBR / non-PBR.

OpenGl_Material definition has been modified to join Front/Back pair into a single uniform variable.
Common material definition now occupies 4x2 vec4 instead of 5x2 vec4.

Getters of Common material properties within Declarations.glsl
have been renamed to match PBR material syntax (e.g. take IsFront flag as function argument).
Auxliary macros (like occTextureColor()) has been renamed (like occMaterialBaseColor())
and adjusted to return material property directly instead of taking it as argument.

7 weeks ago0032207: Draw Harness, ViewerTest - explicitly close 3D Viewer windows at Tcl interpr...
kgv [Wed, 10 Mar 2021 11:17:41 +0000 (14:17 +0300)]
0032207: Draw Harness, ViewerTest - explicitly close 3D Viewer windows at Tcl interpreter closure

7 weeks ago0032218: Visualization - move V3d_View::ShadingModel() property to Graphic3d_Renderin...
kgv [Tue, 16 Mar 2021 17:58:39 +0000 (20:58 +0300)]
0032218: Visualization - move V3d_View::ShadingModel() property to Graphic3d_RenderingParams

7 weeks ago0032219: Visualization, TKService - drop dependency from OpenGL
kgv [Wed, 10 Mar 2021 10:50:45 +0000 (13:50 +0300)]
0032219: Visualization, TKService - drop dependency from OpenGL

Visual selection has been moved out from Xw_Window constructor to OpenGl_GraphicDriver::InitContext().
Default Visual is now stored within Aspect_DisplayConnection.

7 weeks ago0032220: Configuration, Aspect_VKeySet - eliminate name collision with X11 macros
kgv [Wed, 17 Mar 2021 06:51:39 +0000 (09:51 +0300)]
0032220: Configuration, Aspect_VKeySet - eliminate name collision with X11 macros

Aspect_VKeySet::KeyState::Status field has been renamed to KStatus.

2 months ago0032136: Modeling Algorithms - Boolean fuse fails and corrupts the argument-shape IR-2021-03-05 WEEK-9
emv [Thu, 4 Mar 2021 18:25:48 +0000 (21:25 +0300)]
0032136: Modeling Algorithms - Boolean fuse fails and corrupts the argument-shape

Avoid increasing tolerance of the vertex before the check on valid range is passed.

2 months ago0031794: Visualization - Highlighting of AIS_Shape works incorrectly when AddChild...
kgv [Wed, 24 Feb 2021 16:07:07 +0000 (19:07 +0300)]
0031794: Visualization - Highlighting of AIS_Shape works incorrectly when AddChild() used

PrsMgr_PresentationManager::Display(), PrsMgr_PresentationManager::Color(),
and SelectMgr_SelectionManager::Activate() now skip children in Erased state.

2 months ago0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix...
kgv [Wed, 3 Mar 2021 11:58:46 +0000 (14:58 +0300)]
0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix with [0,1] depth range

Added new property Graphic3d_Camera::IsZeroToOneDepth() and OpenGl_Caps::useZeroToOneDepth
for activating [0,1] depth range instead of [-1,1] range using glClipControl() within OpenGL 4.5+.

2 months ago0032144: Draw Harness - add -silent option to command Close
mkrylova [Tue, 2 Mar 2021 14:22:07 +0000 (17:22 +0300)]
0032144: Draw Harness - add -silent option to command Close

- Extended command Close with an option -silent
- Extended command Close to handle */-ALL for closing ALL document
- Replaced catch {Close D} by Close D -silent in tests

2 months ago0032008: Modeling Algorithms - disallow implicit copy of Extrema algorithms
kgv [Fri, 18 Dec 2020 11:29:59 +0000 (14:29 +0300)]
0032008: Modeling Algorithms - disallow implicit copy of Extrema algorithms

Extrema_GenExtPS now prefers resizing of Array2 tables instead of managing tables by extra handles.
Removed unsafe casts to Adaptor3d_SurfacePtr/Adaptor3d_CurvePtr in Extrema classes.
Removed unsafe casts to curve adaptors in Extrema_ExtCC, Extrema_ExtCC2d classes.

Extrema_GenExtPS, Extrema_GenExtSS, Extrema_ExtCS -
copies by value are now disallowed;
several unexpected places copying the object have been fixed.

IntTools_Context - maps of void* have been replaced by typed maps.

2 months ago0032109: Application Framework: Test case bugs caf bug31546 works extremely unstable
mpv [Mon, 8 Feb 2021 12:16:57 +0000 (15:16 +0300)]
0032109: Application Framework: Test case bugs caf bug31546 works extremely unstable

In test it should be taken into account that
  lappend listmem [meminfo h]
  checktrend $listmem 0 0 "Memory leak"
also gets memory (also about 100 bytes per iteration).

2 months ago0032192: Visualization, TKOpenGl - load OpenGL 4.6 functions within OpenGl_Context
kgv [Tue, 2 Mar 2021 18:31:50 +0000 (21:31 +0300)]
0032192: Visualization, TKOpenGl - load OpenGL 4.6 functions within OpenGl_Context

glext.h has been updated to include latest fixes and new definitions.

2 months ago0031779: Visualization, AIS_ViewController - controller should handle selection schemes
mkrylova [Fri, 22 Jan 2021 07:44:42 +0000 (10:44 +0300)]
0031779: Visualization, AIS_ViewController - controller should handle selection schemes

Added AIS_ViewController::MouseSelectionSchemes() property defining map of selection schemes for mouse+modifier combinations.
IsXOR flag has been replaced by AIS_SelectionScheme in interfaces.

Rubber-band selection with Shift key pressed now applies XOR selection scheme in in Draw Harness.
Command vselect has been extended to specify selection scheme by name.

2 months ago0032181: Modeling Algorithms - ChFi3d missing error checking
Chris Hennes (chennes) [Sat, 27 Feb 2021 17:58:50 +0000 (11:58 -0600)]
0032181: Modeling Algorithms - ChFi3d missing error checking

Throughout the ChFi3d fillet creation functions there are two sets of unchecked
errors that can result in segmentation faults when geometry-creation problems
occur.

The first is that the functions ChFi3d_cherche_* may fail to find the requested
item: they silently return without setting the required reference, which is
then accessed by the algorithms. This can be caught with a conditional at the
end of the function that throws an exception if the required item was not
found.

The second class of unchecked error is the use of BRep_Tool::CurveOnSurface,
which may fail to create the required curve, returning a null handle. In many
cases in the existing fillet code this is not checked. This can be dealt with
by checking the returned handle using IsNull() and throwing an exception
if the call did not result in valid geometry.

2 months ago0032188: Visualization, Graphic3d_Aspects - define backface culling using Graphic3d_T...
kgv [Mon, 1 Mar 2021 20:25:21 +0000 (23:25 +0300)]
0032188: Visualization, Graphic3d_Aspects - define backface culling using Graphic3d_TypeOfBackfacingModel

Graphic3d_Aspects::ToSuppressBackFaces() bool flag has been replaced by
Graphic3d_Aspects::FaceCulling() property defined by Graphic3d_TypeOfBackfacingModel enumeration.

Graphic3d_TypeOfBackfacingModel_Auto corresponds to old ToSuppressBackFaces()==TRUE;
Graphic3d_TypeOfBackfacingModel_DoubleSided corresponds to old ToSuppressBackFaces()==FALSE;
Graphic3d_TypeOfBackfacingModel_BackCulled allows enabling back face culling regardless of Graphic3d_Group::IsClosed() flag.

XCAFDoc_VisMaterial::IsDoubleSided() bool flag has been replaced by
XCAFDoc_VisMaterial::FaceCulling() property defined by Graphic3d_TypeOfBackfacingModel enumeration.

glTF reader now maps "doubleSided" material flag into
Graphic3d_TypeOfBackfacingModel_BackCulled (forced back face culling) and
Graphic3d_TypeOfBackfacingModel_Auto (e.g. practically doubleSided as there is no closed/open info in glTF).

glTF writer by default writes materials as "doubleSided" save the Graphic3d_TypeOfBackfacingModel_BackCulled property set
(in future, extra logic might written for automatically defining singleSided materials for Solid B-Rep objects).

Removed obsolete unused types V3d_TypeOfPickCamera, V3d_TypeOfPickLight, V3d_TypeOfRepresentation, and V3d_Coordinate.
Deprecated types V3d_TypeOfBackfacingModel, V3d_TypeOfLight, and V3d_TypeOfShadingModel.

2 months ago0032184: Visualization - remove ambiguous AIS_GlobalStatus constructor
kgv [Mon, 1 Mar 2021 10:20:58 +0000 (13:20 +0300)]
0032184: Visualization - remove ambiguous AIS_GlobalStatus constructor

Auxiliary AIS_GlobalStatus constructor has been removed.
AIS_InteractiveContext::setObjectStatus() no more adds
an invalid -1 mode to AIS_GlobalStatus.

Never updated property AIS_GlobalStatus::GetLayerIndex() has been removed;
AIS_InteractiveContext::SetTransformPersistence() has been corrected to use
ZLayer defined within object itself.

2 months ago0032143: Visualization - add option excluding transparent object from sorting
kgv [Mon, 1 Mar 2021 12:16:52 +0000 (15:16 +0300)]
0032143: Visualization - add option excluding transparent object from sorting

Added option Graphic3d_AlphaMode_MaskBlend combining Mask (no sorting)
and Blend (enable blending with background) behavior.

2 months ago0032180: Visualization - StdSelect_BRepOwner::SetLocation() does not update selected...
kgv [Sat, 27 Feb 2021 07:48:32 +0000 (10:48 +0300)]
0032180: Visualization - StdSelect_BRepOwner::SetLocation() does not update selected sub-shape

StdSelect_BRepOwner::SetLocation() now propagates location to sub-shape presentation instead of invalidating it.

2 months ago0032171: Data Exchange - RWGltf_TriangulationReader doesn't copy cached bounding box IR-2021-02-26 WEEK-8
osa [Thu, 25 Feb 2021 16:18:12 +0000 (19:18 +0300)]
0032171: Data Exchange - RWGltf_TriangulationReader doesn't copy cached bounding box

Save cached bounding box in loaded triangulation getting it from "proxy" late-loaded object.

2 months ago0032165: Visualization - remove obsolete method AIS_InteractiveContext::PurgeViewer()
kgv [Thu, 25 Feb 2021 09:41:51 +0000 (12:41 +0300)]
0032165: Visualization - remove obsolete method AIS_InteractiveContext::PurgeViewer()

2 months ago0032161: Coding Rules - deprecate obsolete alias PrsMgr_PresentationManager3d
kgv [Thu, 25 Feb 2021 07:58:17 +0000 (10:58 +0300)]
0032161: Coding Rules - deprecate obsolete alias PrsMgr_PresentationManager3d

2 months ago0032168: Visualization - Wrong computation of screen axis in V3d_View::SetTwist method
kgv [Thu, 25 Feb 2021 11:10:18 +0000 (14:10 +0300)]
0032168: Visualization - Wrong computation of screen axis in V3d_View::SetTwist method

Fixed wrong axis check.

2 months ago0032160: Coding Rules - merge AIS_InteractiveContext_*.cxx into single file
kgv [Wed, 24 Feb 2021 17:03:40 +0000 (20:03 +0300)]
0032160: Coding Rules - merge AIS_InteractiveContext_*.cxx into single file

Removed redundant .lxx files from API package.

AIS_InteractiveContext_1.cxx,AIS_InteractiveContext_2.cxx,AIS_InteractiveContext_3.cxx
have been merged into AIS_InteractiveContext.cxx.
V3d_View_2.cxx,V3d_View_3.cxx,V3d_View_4.cxx have been merged into V3d_View.cxx
V3d_View_4.cxx has been merged into V3d_View.cxx.

2 months ago0032162: Visualization - move AIS_DisplayStatus from AIS_GlobalStatus to PrsMgr_Prese...
kgv [Wed, 24 Feb 2021 12:37:57 +0000 (15:37 +0300)]
0032162: Visualization - move AIS_DisplayStatus from AIS_GlobalStatus to PrsMgr_PresentableObject

AIS_DisplayStatus has been renamed to PrsMgr_DisplayStatus
and moved from AIS_GlobalStatus class field to PrsMgr_PresentableObject.

0032167: Visualization, AIS_InteractiveContext - setObjectStatus sets wrong status when AIS_DS_Erased

AIS_InteractiveContext::setObjectStatus() Fixed setting unexpected Displayed status to Erased objects.

2 months ago0032155: Tests - remove broken command OCC280
kgv [Mon, 22 Feb 2021 15:40:02 +0000 (18:40 +0300)]
0032155: Tests - remove broken command OCC280

Command OCC280 and a couple of useless tests have been removed.
Test case bug349 has been updated to reproduce scenario using standard commands.

2 months ago0032154: Tests - include vglinfo into Tests Summary
kgv [Mon, 22 Feb 2021 06:58:50 +0000 (09:58 +0300)]
0032154: Tests - include vglinfo into Tests Summary

Command testgrid now includes vglinfo into summary.
Command vinit has been extended by -virtual option creating an offscreen window.
Command vglinfo now splits long values into multiple lines.
Added test case v3d/glsl/glinfo dumping OpenGL context creation info.

OpenGl_Window - fixed initialization of OpenGL 4.6 Core Profile (was limited to 4.5).

2 months ago0032153: Visualization, Graphic3d_ArrayOfPrimitives - share common allocator
kgv [Sun, 21 Feb 2021 17:55:35 +0000 (20:55 +0300)]
0032153: Visualization, Graphic3d_ArrayOfPrimitives - share common allocator

Added method Graphic3d_Buffer::DefaultAllocator(), which is now used across code.