occt.git
10 years ago0024153: Adding OpenCL to OCCT prerequisites
ibs [Thu, 31 Oct 2013 11:43:38 +0000 (15:43 +0400)]
0024153: Adding OpenCL to OCCT prerequisites

OpenCL is supported by CMake OCCT solution
3rdparty directory is changed to <occt root>
3rdparty seeking in additional places if 3rdparty dir isn't defined

10 years ago0024130: Implementing ray tracing visualization core
dbp [Thu, 31 Oct 2013 11:35:18 +0000 (15:35 +0400)]
0024130: Implementing ray tracing visualization core

The purpose of this functionality is to bring a basic ray-tracing solution to existing OCCT visualization toolkit (TKOpenGL).
Currently ray-tracing visualization core supports sharp shadows, specular reflections, transparency and adaptive anti-aliasing.
However, the basis for all ray-tracing algorithms is versatile, allowing you to add new ray-tracing features easily (such as ambient occlusion).
All ray-tracing computations are performed on the GPU using OpenCL framework, allowing real-time rendering performance.

It is important to note, that real-time ray-tracing is possible using high-performance GPUs with support of OpenCL 1.1 and higher (such as NVIDIA GeForce 660 or ATI/AMD Radeon 7850).
When using low-end GPUs (such as NVIDIA GeForce 640) the ray-tracing performance may slow down significantly.
Therefore, even with NVIDIA GeForce 640 you can render scenes with the millions of triangles. The support of OpenCL-enabled CPUs and integrated graphics cards is not guaranteed.

10 years ago0024234: occt master is not compiled by VC++ 2005 (vc8 32/64 bit TKBO)
abv [Wed, 30 Oct 2013 20:44:20 +0000 (00:44 +0400)]
0024234: occt master is not compiled by VC++ 2005 (vc8 32/64 bit TKBO)

Fixed building by VS 2005 and VS 2013 (Express):
- macro _WIN32_WINNT defined in BOPCol_TBB.hxx for building with TBB on VS 2005
- compiler warnings specific for VS 2005 (vc8) fixed (explicit casts added in assignment expressions involving small integer types)
- definition of functions atanh, acosh, asinh is avoided for vc12 and later (they are provided by CRT in vc12)
- math constants (M_PI and similar) are defined by including math.h rather than by custom code
- misuse of stream operator << fixed in a few places

10 years ago0024300: Remove unused class MMgt_StackManager
abv [Wed, 30 Oct 2013 13:16:51 +0000 (17:16 +0400)]
0024300: Remove unused class MMgt_StackManager

10 years ago0024280: Documentation of TObj_Model::GetFile() is incorrect
kgv [Fri, 25 Oct 2013 05:17:26 +0000 (09:17 +0400)]
0024280: Documentation of TObj_Model::GetFile() is incorrect

Do not throw exception when model was not stored yet

10 years ago0024277: DRAW command that shows coordinates of a vertex
ibs [Thu, 31 Oct 2013 09:52:27 +0000 (13:52 +0400)]
0024277: DRAW command that shows coordinates of a vertex

"getcoords" command added

"getcoords" moved to BRepTest/BRepTest_BasicCommands

10 years ago0024297: OpenGl_Texture::Release() might call OpenGL functions without active context
kgv [Tue, 29 Oct 2013 10:10:28 +0000 (14:10 +0400)]
0024297: OpenGl_Texture::Release() might call OpenGL functions without active context

Add check to Release() method of OpenGl_Texture, OpenGl_ShaderObject, OpenGl_ShaderProgram

10 years ago0024295: vclose behavior is inconsistent
kgv [Thu, 31 Oct 2013 09:46:12 +0000 (13:46 +0400)]
0024295: vclose behavior is inconsistent

Process vclose on active view when executed without arguments
Fix trivial warning

10 years ago0024294: Access violation in AIS_InteractiveContext::MoveTo()
kgv [Mon, 28 Oct 2013 12:25:28 +0000 (16:25 +0400)]
0024294: Access violation in AIS_InteractiveContext::MoveTo()

10 years ago0024284: Some trivial warnings produced by ICC 14
abv [Thu, 24 Oct 2013 05:22:29 +0000 (09:22 +0400)]
0024284: Some trivial warnings produced by ICC 14

Eliminated ICC 14 warnings:
# 82: storage class is not first (e.g. "int static f()"
# 2621: attribute "dllexport" does not apply here (e.g. "Standard_EXPORT typedef int qqint;")
# 2415: variable "..." of static storage duration was declared but never referenced
# 111: statement is unreachable (usually "break" after "return" in cycles)

10 years ago0024282: Shaded presentation is not computed due to exception in StdPrs_ToolShadedSha...
kgv [Thu, 31 Oct 2013 09:28:33 +0000 (13:28 +0400)]
0024282: Shaded presentation is not computed due to exception in StdPrs_ToolShadedShape::Normal()

Fix gp_Dir initialization with zero modulus
StdPrs_ToolShadedShape::Normal() - reduce code duplication
Test cases for issue CR24282

10 years agoAdjusting test unstable testing cases in Debug mode for current state of OCCT
mkv [Fri, 25 Oct 2013 09:55:18 +0000 (13:55 +0400)]
Adjusting test unstable testing cases in Debug mode for current state of OCCT

10 years agoUpdate CSharp sample (issue 0024147) for current state of OCCT
bugmaster [Fri, 25 Oct 2013 09:52:07 +0000 (13:52 +0400)]
Update CSharp sample (issue 0024147) for current state of OCCT

10 years ago0024147: Update of CSharp sample
vdn [Fri, 25 Oct 2013 09:44:45 +0000 (13:44 +0400)]
0024147: Update of CSharp sample

Overall revision of of CSharp sample code:
- Pure C++ project "OCC" deleted as unnecessary
- C++/CLI project "shell" renamed to OCCTProxy and refactored to implement all required interface to OCCT functionality.
- In About dialog, date corrected in Copyright statement
- CSharp files re-layouted with 2 spaces indentation
- ReadMe converted to MarkDown format and revised
- Generation of names of views refactored to avoid calling C++ level
- Project files corrected to run on 64-bit systems
- Batch scripts refactored to use OCCT default configuration

WPF front-end added to demonstrate usage of OCCT in WPF applications.
WPF sample was modified, operation Export has been fixed
Exception "Cannot create this file", which appeared by export to image format, has been corrected.
Option "Export image to .xwd" removed.

10 years agoFix cyclic dependency between OpenGl (OpenGl_Vec) and Graphic3d (Graphic3d_ShaderVari...
kgv [Fri, 25 Oct 2013 07:23:16 +0000 (11:23 +0400)]
Fix cyclic dependency between OpenGl (OpenGl_Vec) and Graphic3d (Graphic3d_ShaderVariable)

10 years agoEliminate newly appeared warnings
abv [Fri, 25 Oct 2013 02:43:43 +0000 (06:43 +0400)]
Eliminate newly appeared warnings

10 years ago0024157: Parallelization of assembly part of BO
pkv [Tue, 22 Oct 2013 09:13:38 +0000 (13:13 +0400)]
0024157: Parallelization of assembly part of BO
New metod was implemented to class BOPAlgo_Builder
   - method:
void BOPAlgo_Builder::SetRunParallel(const Standard_Boolean theFlag)
The method sets the flag of parallel processing
 if <theFlag> is true  the parallel processing is switched on
 if <theFlag> is false the parallel processing is switched off
  - method:
Standard_Boolean BOPAlgo_Builder::RunParallel()const
The method returns the  flag of parallel processing

Class BOPTest was changed
   - static function:
Standard_Integer bbuild(Draw_Interpretor& di, Standard_Integer n, const char** a)
The optional parameters [ -s -t ] have been added to the command line of
the command 'bbuild':
bbuild r [-s -t]
-s : builds the result using serial procesing
-t : show the wall time

10 years ago0024267: Exception in Visual3d_ViewManager::Redraw() when color scale is displayed
san [Fri, 18 Oct 2013 09:23:25 +0000 (13:23 +0400)]
0024267: Exception in Visual3d_ViewManager::Redraw() when color scale is displayed
Removing V3d_Viewer::Init() and the default views created internally by the viewer.

10 years ago0024270: Port viewer3d mfc sample to new clipping
apl [Mon, 21 Oct 2013 17:28:14 +0000 (21:28 +0400)]
0024270: Port viewer3d mfc sample to new clipping

10 years agoCR24212: Moving OCAF samples from 'DRAW' component to OCCT samples.
szy [Wed, 2 Oct 2013 14:21:13 +0000 (18:21 +0400)]
CR24212: Moving OCAF samples from 'DRAW' component to OCCT samples.

10 years ago0024273: Eliminate compiler warnings in lex.ExprIntrp.tab.c generated by flex 2.91
abv [Sun, 20 Oct 2013 05:36:51 +0000 (09:36 +0400)]
0024273: Eliminate compiler warnings in lex.ExprIntrp.tab.c generated by flex 2.91

Added #include of missing headers; double opening of C comment fixed; some warnings suppressed

10 years ago0024264: OCCT 6.6.0: cutting 1600 cylinders from a box leads to out-of-memory on...
abv [Thu, 24 Oct 2013 09:14:33 +0000 (13:14 +0400)]
0024264: OCCT 6.6.0: cutting 1600 cylinders from a box leads to out-of-memory on 32-bit system

Added test case (perf bop boxholes)

10 years ago0024266: Wrong result obtained by 'bopargcheck'
pkv [Thu, 24 Oct 2013 09:12:25 +0000 (13:12 +0400)]
0024266: Wrong result obtained by 'bopargcheck'

   - method:IntTools_EdgeFace has been changed
Standard_Boolean IntTools_EdgeFace::IsProjectable(const Standard_Real aT) const
The checking the distance between the point on the curve projected point has been added.

IntTools packages were modified

Test cases for issue CR24266

10 years ago0024192: Adding support for shaders to OCCT visualization toolkit
apl [Mon, 21 Oct 2013 07:47:10 +0000 (11:47 +0400)]
0024192: Adding support for shaders to OCCT visualization toolkit

10 years ago0024276: Memory leak due to a static variable
vro [Tue, 22 Oct 2013 04:49:01 +0000 (08:49 +0400)]
0024276: Memory leak due to a static variable
Cleaning of selected entities to avoid a memory leak.

10 years ago0024228: TKOpenGL - destroy GL context at view close
apl [Thu, 24 Oct 2013 08:53:42 +0000 (12:53 +0400)]
0024228: TKOpenGL - destroy GL context at view close

- OpenGl_Display - release GL resources correctly on closing views
- OpenGl_AspectFace, OpenGl_AspectText, OpenGl_AspectLine, OpenGl_AspectMarker - initialize OpenGl resources on demand, when context is available.
- Graphic3d_TextureRoot - use const modifier for GetId method to avoid asynchronous resource state at OpenGl.
- Do not call OpenGL functions if no active GL context has been left
- Reset thread's context before deletion for Mesa WNT

10 years ago0024271: Provide Boolean operations for NCollection_Map
kgv [Thu, 24 Oct 2013 08:12:42 +0000 (12:12 +0400)]
0024271: Provide Boolean operations for NCollection_Map

NCollection_Map - add two maps content Exchange operation without data copying
Add Exchange method to NCollection_DataMap, NCollection_DoubleMap, NCollection_IndexedDataMap, NCollection_IndexedMap
Add NCollection_Map::IsEqual() method
Corrections for gcc - use this->myAllocator

10 years ago0023846: A crash on reading of a VRML file with wrong indices
vro [Thu, 24 Oct 2013 08:00:10 +0000 (12:00 +0400)]
0023846: A crash on reading of a VRML file with wrong indices
A check of indices.
Test cases for issue CR23846

10 years ago0024193: Useless iterations in IntStart_SearchOnBoundaries.gxx
ifv [Wed, 16 Oct 2013 07:44:18 +0000 (11:44 +0400)]
0024193: Useless iterations in IntStart_SearchOnBoundaries.gxx

10 years ago0024274: Eliminate GCC compiler warning (wrong initialize order)
ski [Mon, 21 Oct 2013 08:04:56 +0000 (12:04 +0400)]
0024274: Eliminate GCC compiler warning (wrong initialize order)
Eliminated GCC compiler warning about wrong initialize order

10 years ago0024200: Wrong result obtained by Exterma Curve/Curve
aml [Thu, 24 Oct 2013 07:54:40 +0000 (11:54 +0400)]
0024200: Wrong result obtained by Exterma Curve/Curve
changed number of nodes in case of GeomAbs_Line in Extrema_GExtCC::Perform() function.
changed number of nodes in case of GeomAbs_Line in Extrema_GExtCC::Perform().
fixed incorrect indexes and Coeff check in Extrema_CurveCache::Extrema_CurveCache added to avoid int overflow.
Added test case bugs/modalg_5/bug24200
Added check if (aNbS[i] * Coeff[i]) too big in Extrema_GExtCC::Perform().

10 years ago0024206: Exception is raised in the STEP loopback tests.
gka [Thu, 24 Oct 2013 07:48:44 +0000 (11:48 +0400)]
0024206: Exception is raised in the STEP loopback tests.

Fixed several cases of potentially uninitialized variables in Shape Healing.
Corrections to avoid warning for unused variable distmini and to avoid regression for case bug22805

10 years ago0024263: TNaming_CopyShape::CopyTool failure
apn [Mon, 21 Oct 2013 13:20:07 +0000 (17:20 +0400)]
0024263: TNaming_CopyShape::CopyTool failure

Problem is not reproduced on current state of master. Test case bugs/caf/bug24263 was added.

10 years ago0024257: Minor corrections for building / testing on VC++ 11
abv [Mon, 14 Oct 2013 13:38:02 +0000 (17:38 +0400)]
0024257: Minor corrections for building / testing on VC++ 11

Several corrections coming from building and testing on MSVC++ 11:
- compiler warnings corrected in structiges.c (32-bit mode) and BOPAlgo (64-bit mode)
- DRAW command for testing exceptions (OCC6143) refactored for getting some output even if process fails (problem with stack overflow handling)
- DRAW command readstep removed as it leads to hang-up in Debug mode due to waiting for user input; the only test that used it changed to use testreadstep command

10 years agoImprovements IGES and STEP interface in DEBUG mode
apn [Fri, 18 Oct 2013 07:50:48 +0000 (11:50 +0400)]
Improvements IGES and STEP interface in DEBUG mode

10 years ago.gitignore - ignore generated sh/bat scripts
kgv [Thu, 17 Oct 2013 10:26:05 +0000 (14:26 +0400)]
.gitignore - ignore generated sh/bat scripts

10 years ago0023962: Moving OCCT documentation to sources
ibs [Thu, 17 Oct 2013 08:47:29 +0000 (12:47 +0400)]
0023962: Moving OCCT documentation to sources

OCCT documentation (Overview and User Guides) has been converted from MS Word files to text-based MarkDown format and added to OCCT sources, in the new subfolder 'dox'. The HTML and PDF articles can be generated from the sources using Doxygen and MiKTeX. See the file OCCT_Docs_HowTo.md for details on the new documentation system.

This branch includes:

- new folder structure for Open CASCADE documentation
- sources of almost all OCCT User Guides and Overview
- tcl and bat scripts, which allow to generate HTML and PDF articles

10 years ago0024227: Enable SSE2 instructions for OCCT building
abv [Thu, 17 Oct 2013 05:20:30 +0000 (09:20 +0400)]
0024227: Enable SSE2 instructions for OCCT building

CMake script changed: SSE2 option is disabled for 64-bit MSVC compilers (redundant)

10 years ago0024144: BRepPrimAPI_MakeWedge wrong
aml [Thu, 17 Oct 2013 08:36:38 +0000 (12:36 +0400)]
0024144: BRepPrimAPI_MakeWedge wrong

fixed direction computing in gp_Lin Primitives_Wedge::Line.
Test cases for issue CR24144

10 years ago0024244: Command bclear in DRAW does not clear all the data required for BOP re-initi...
abv [Thu, 17 Oct 2013 08:28:37 +0000 (12:28 +0400)]
0024244: Command bclear in DRAW does not clear all the data required for BOP re-initialization
In BOPTest_Objects::Clear() added clearing of the objects and tools of the operation.

Test cases for issue CR24244

10 years ago0024157: Parallelization of assembly part of BO
pkv [Thu, 17 Oct 2013 08:26:19 +0000 (12:26 +0400)]
0024157: Parallelization of assembly part of BO

v0.0

I. New features:
no new features

II. Changes:
II.1. class BRepClass3d
   - method:
Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
 gp_Lin& L,  Standard_Real& _Par)
The condition to prevent infinite loop has been added.

III. Modified entities:
packages:
BRepClass3d

Added test case bugs/modalg_5/bug24242

The phase 1 : Parallelization Building Faces.
Part 1.2. Building Same Domain Faces
Combined by pkv

Small correction of test case for issue CR24157_3

10 years ago0024259: Clean up OSD_File implementation
abv [Tue, 15 Oct 2013 02:58:03 +0000 (06:58 +0400)]
0024259: Clean up OSD_File implementation

Field myFileChannel removed from OSD_FileNode and introduced to OSD_File as Linux-only along with Windows-only myFileHandle.
Implementation of OSD_File cleaned from redundant type casts; some missing type cases added.
File mode passed to fdopen() corrected in read-write case ("rw" replaced by "w+").
Method OSD_File::Size() now returns Standard_Size to be able to return correct value for large files (on 64-bit platforms only).

10 years ago0024256: TKOpenGl - C++/CLI application compilation issue due to namespaces collision
kgv [Mon, 14 Oct 2013 11:04:28 +0000 (15:04 +0400)]
0024256: TKOpenGl - C++/CLI application compilation issue due to namespaces collision

10 years ago0024242: Hang-up during classification a 3D point relative to a solid
pkv [Thu, 17 Oct 2013 08:19:24 +0000 (12:19 +0400)]
0024242: Hang-up during classification a 3D point relative to a solid

v0.0

I. New features:
no new features

II. Changes:
II.1. class BRepClass3d
   - method:
Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
 gp_Lin& L,  Standard_Real& _Par)
The condition to prevent infinite loop has been added.

III. Modified entities:
packages:
BRepClass3d

Added test case bugs/modalg_5/bug24242

10 years ago0024247: Wrong result obtained by General Fuse algorithm
pkv [Thu, 17 Oct 2013 08:17:35 +0000 (12:17 +0400)]
0024247: Wrong result obtained by General Fuse algorithm

v0.0

I. New features:
no new features

II. Changes:
II.1. class BOPAlgo_PaveFiller
   - method:
void BOPAlgo_PaveFiller::PerformFF()
Prepare data to the filter BOPAlgo_PaveFiller::::CheckPlanes(...).

   - method:
Standard_Boolean
  BOPAlgo_PaveFiller::CheckPlanes(const Standard_Integer nF1,
  const Standard_Integer nF2)const
1)The contents of the filter has been updated by all vertices of the faces images.
2)The method declared as const

III. Modified entities:
packages:
BOPAlgo

Test cases for issue CR24247

10 years ago0023650: Slow mesher: one bspline surface, 80 seconds for 132 triangles
aml [Thu, 17 Oct 2013 08:14:52 +0000 (12:14 +0400)]
0023650: Slow mesher: one bspline surface, 80 seconds for 132 triangles
Corrections in GeomLib::NormEstim, added norm computing using GeomLProp_SLProps.
Corrections in GeomLib::NormEstim, normal is computed with CSLib::Normal in case of a null normal.
Modified GeomLib::NormEstim Algo in case of null normal.
Added test case bugs/mesh/bug23650

10 years ago0024246: Draw command stepread given whithout arguments throws an exception
emv [Thu, 17 Oct 2013 08:07:09 +0000 (12:07 +0400)]
0024246: Draw command stepread given whithout arguments throws an exception

To stepread command added check for the number of arguments.
Minor correction (return 1 to indicate error)

10 years ago0024227: Enable SSE2 instructions for OCCT building
ibs [Fri, 11 Oct 2013 05:55:50 +0000 (09:55 +0400)]
0024227: Enable SSE2 instructions for OCCT building
sse2 if used for just vc7, vc8, vc9 and vc10

10 years ago0024224: Suspicious logics in changing clipping planes at OpenGl_Structure
apl [Thu, 10 Oct 2013 13:14:52 +0000 (17:14 +0400)]
0024224: Suspicious logics in changing clipping planes at OpenGl_Structure

1) Resolved buggy situation of shared clip planes between view and structure;
2) Added clipping plane equation space identification - to be used with shaders;
3) Code refactoring to resolve performance issue reported by 0024189;
4) Attachment of stencil buffer to FBO.

Added test case bugs/vis/bug24224

10 years ago0024245: TKOpenGL - use Message_Messenger interface to report issues
kgv [Thu, 10 Oct 2013 04:41:05 +0000 (08:41 +0400)]
0024245: TKOpenGL - use Message_Messenger interface to report issues

10 years agoRemoving test case bugs/vis/buc60547 according to issue 23922 (test is meaningless...
apn [Thu, 10 Oct 2013 11:15:16 +0000 (15:15 +0400)]
Removing test case bugs/vis/buc60547 according to issue 23922 (test is meaningless and it sometimes hang-ups)

10 years ago0024231: Test case update for bug 23654
dbv [Mon, 7 Oct 2013 08:05:29 +0000 (12:05 +0400)]
0024231: Test case update for bug 23654
Test case update

10 years ago0024236: Eliminate GCC compiler warning (uninitialized variables)
ski [Thu, 10 Oct 2013 10:47:21 +0000 (14:47 +0400)]
0024236: Eliminate GCC compiler warning (uninitialized variables)

10 years ago0024239: Eliminate GCC compiler warning (multi-line comment)
ski [Tue, 8 Oct 2013 12:06:12 +0000 (16:06 +0400)]
0024239: Eliminate GCC compiler warning (multi-line comment)

10 years ago0024222: Compiler warnings 'unreacheable code' and 'conditional expression is constan...
aml [Thu, 10 Oct 2013 10:43:03 +0000 (14:43 +0400)]
0024222: Compiler warnings 'unreacheable code' and 'conditional expression is constant' in MOA

Eliminated MSVS L4 warnings.
fixed incorrect break invoking in edge searching in SplitEdge.

10 years ago0024227: Enable SS2 instructions for OCCT building
abv [Thu, 10 Oct 2013 10:41:01 +0000 (14:41 +0400)]
0024227: Enable SS2 instructions for OCCT building

Test for exceptions corrected to handle FPE when built with with SSE2 option on Windows (NumericError raised instead of specific exceptions)
New test for performance of bspline intersections added

sse2 added; build bitness hardlinked to compiler

"bitness" variable was hidden

10 years ago0024230: TKOpenGl - request debug context by default in debug mode
kgv [Tue, 8 Oct 2013 13:04:22 +0000 (17:04 +0400)]
0024230: TKOpenGl - request debug context by default in debug mode

Enable GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB only for debug builds.

10 years ago0024225: TKOpenGL, OpenGl_FrameBuffer - Wrong ID is used for attachement of depth...
kgv [Fri, 4 Oct 2013 18:44:26 +0000 (22:44 +0400)]
0024225: TKOpenGL, OpenGl_FrameBuffer - Wrong ID is used for attachement of depth RenderBuffer to FBO

10 years ago0024220: bopargcheck returns valid for C0 shape but results of boolean operations...
emv [Thu, 10 Oct 2013 10:27:16 +0000 (14:27 +0400)]
0024220: bopargcheck returns valid for C0 shape but results of boolean operations are broken with such shapes

Added check for C0 geometries to bopargcheck command.
Test cases for issue CR24220

10 years ago0024235: BRepBuilderAPI_Sewing - add protection against too small tolerance
kgv [Mon, 7 Oct 2013 11:53:19 +0000 (15:53 +0400)]
0024235: BRepBuilderAPI_Sewing - add protection against too small tolerance

10 years ago0024233: OpenGl_Window - compilation for Windows NT 4.0 target
kgv [Mon, 7 Oct 2013 10:12:37 +0000 (14:12 +0400)]
0024233: OpenGl_Window - compilation for Windows NT 4.0 target

10 years ago0024181: Text to BRep functionality
isn [Thu, 10 Oct 2013 09:35:04 +0000 (13:35 +0400)]
0024181: Text to BRep functionality

Introduce new class Font_BRepFont for conversion of font glyph in vector format into BRep representation.
New text2brep Draw Harness command.

bottle.tcl - draw text on the bottle side using new functionality.
ViewerTest - process Delete key in 3D-Viewer to delete selected presentations.
Font_FontMgr::FindFont - return correct font when font alias and not default aspect is requested.

bottle.tcl - use prism instead of pipe

TKViewerTest - add required FreeType dependency

verase - display the list of erase objects

TKViewerTest - add required FreeType dependency for projects generation

10 years ago0024211: Definition of Basic Runtime Check parameter causes regression in debug mode
nbv [Fri, 4 Oct 2013 14:26:23 +0000 (18:26 +0400)]
0024211: Definition of Basic Runtime Check parameter causes regression in debug mode

Out of ChoixRef array boundaries.
Uninitialized variable in IntCurve_IntPolyPolyGen::findIntersect(...) function.
Handling of infinity numbers in sprops command is added.
test (CPU-limit)

10 years ago0024164: Optimization of OCAF document closing
szy [Thu, 10 Oct 2013 09:28:30 +0000 (13:28 +0400)]
0024164: Optimization of OCAF document closing
OCAF document closing redesign.
added 2 test scripts.
removed commented method.
added missed Draw commands.

10 years ago0023932: Standard_NoSuchObject thrown computing section between two cylinders - new...
mkv [Fri, 4 Oct 2013 08:40:11 +0000 (12:40 +0400)]
0023932: Standard_NoSuchObject thrown computing section between two cylinders - new to 6.6.0
Adding new test cases

10 years ago0024005: Intersecting a slightly off angle plane with a cylinder takes 7+ seconds
bugmaster [Fri, 4 Oct 2013 08:39:02 +0000 (12:39 +0400)]
0024005: Intersecting a slightly off angle plane with a cylinder takes 7+ seconds
Update testing case

10 years ago0024140: Endless loop in BRepAlgoAPI_Section
bugmaster [Fri, 4 Oct 2013 08:37:37 +0000 (12:37 +0400)]
0024140: Endless loop in BRepAlgoAPI_Section
Update testing cases

10 years agoImprovements in test cases bugs/modalg_1/bug13209_1 bug13209_3 bug13211_7 bug13211_9...
bugmaster [Fri, 4 Oct 2013 08:27:00 +0000 (12:27 +0400)]
Improvements in test cases bugs/modalg_1/bug13209_1 bug13209_3 bug13211_7 bug13211_9 on MacOS platform after integration fix for 23981 issue

10 years agoImprovements in test cases boolean/bsection/G5 N6 in Debug mode according to integrat...
bugmaster [Fri, 4 Oct 2013 08:12:45 +0000 (12:12 +0400)]
Improvements in test cases boolean/bsection/G5 N6 in Debug mode according to integration fix for issue 24140

10 years ago0023654: Problem with displaying vertices in OCC view after closing all OCC views...
bugmaster [Fri, 4 Oct 2013 07:09:24 +0000 (11:09 +0400)]
0023654: Problem with displaying vertices in OCC view after closing all OCC views and opening new one
Update CSharp sample

10 years ago0024174: [regression] BRepBuilderAPI_Sewing returns result with very high tolerance
gka [Thu, 3 Oct 2013 12:36:52 +0000 (16:36 +0400)]
0024174: [regression] BRepBuilderAPI_Sewing returns result with very high tolerance

Fix for bug 0024174: [regression] BRepBuilderAPI_Sewing returns result with very high tolerance
Test script for CR24174
Test cases for issue CR24174
Small correction of test cases for issue CR24174

10 years ago0024195: Use of uninitialized data in IntCurve_IntPolyPolyGen.gxx
ifv [Thu, 3 Oct 2013 12:30:51 +0000 (16:30 +0400)]
0024195: Use of uninitialized data in IntCurve_IntPolyPolyGen.gxx

Fix for regressions
Modified test cases de/iges_1/R8 and de/iges_2/I7 according to new data

10 years ago0023981: Wrong section curves
ifv [Thu, 3 Oct 2013 12:13:10 +0000 (16:13 +0400)]
0023981: Wrong section curves

Test case for issue CR23981
Small correction of test case for issue CR23981

10 years ago0024140: Endless loop in BRepAlgoAPI_Section
jgv [Thu, 3 Oct 2013 11:47:26 +0000 (15:47 +0400)]
0024140: Endless loop in BRepAlgoAPI_Section

Test cases for issue CR24140

10 years ago0024068: Wrong result done by projection algorithm
aml [Thu, 3 Oct 2013 10:36:41 +0000 (14:36 +0400)]
0024068: Wrong result done by projection algorithm

Corrected number of nodes needed to create tree in case of BSplineSurface on current master.
Test case for issue CR24068

10 years ago0024137: math_FunctionSetRoot returns too rough solution
ifv [Thu, 3 Oct 2013 10:34:03 +0000 (14:34 +0400)]
0024137: math_FunctionSetRoot returns too rough solution

Test case and new draw command for issue CR24137
Modified test case de/iges_1/G9 according to new data
Small correction of test cases for issue CR24137

10 years ago0023360: Test cases for command mkoffset produce different results on different versi...
nbv [Thu, 3 Oct 2013 10:30:18 +0000 (14:30 +0400)]
0023360: Test cases for command mkoffset produce different results on different versions of OCCT

1. Function QuasiFleche(...) does not call for small edges.
2. Forbid to work with NULL-shapes in OffsetWire::FixHoles(...) function.
3. ProjOnCurve(...) function in Bisector_BisecCC.cxx file returns status (DONE or NOT DONE).

10 years ago0023459: Update QT samples
vdn [Thu, 3 Oct 2013 10:26:39 +0000 (14:26 +0400)]
0023459: Update QT samples

Removing Qt3Support layer of Qt 4
Changed all files for Qt4 and added file VoxelDemo.pro
Removed 'static' before the declaration of handling FSD_File.

10 years ago0024213: bopargcheck complains on sphere
emv [Thu, 3 Oct 2013 10:20:54 +0000 (14:20 +0400)]
0024213: bopargcheck complains on sphere

Added check for degenerated edges.
Test case for issue CR24213

10 years ago0024172: Compiler warnings 'unreacheable code' and 'unreferenced local function'...
szy [Mon, 30 Sep 2013 11:53:00 +0000 (15:53 +0400)]
0024172: Compiler warnings 'unreacheable code' and 'unreferenced local function' in OCAF

Files _Sample.cxx containing unused sample code are removed from several OCAF packages.
Cycles for() with body always ending with 'break' are replaced by equivalent if() statements.

10 years ago0023654: Problem with displaying vertices in OCC view after closing all OCC views...
dbv [Thu, 3 Oct 2013 10:11:13 +0000 (14:11 +0400)]
0023654: Problem with displaying vertices in OCC view after closing all OCC views and opening new one

Fixed graphic structure recompute after closing view.
Removed collector and all corresponding logic and methods from AIS_InteractiveContext.
Method AIS_InteractiveContext::Erase() now hide object from viewer without deleting resources.
Erased objects now properly recomputed after closing view.
Samples update
Removed useless method AIS_InteractiveContext::EraseMode()
Documentation update
Warnings fix
Regressions fix

10 years ago0024167: Compiler warnings 'unreacheable code' and 'conditional expression is constan...
aml [Thu, 3 Oct 2013 10:07:10 +0000 (14:07 +0400)]
0024167: Compiler warnings 'unreacheable code' and 'conditional expression is constant' in MOA

Resolved some C4702 (unreachable code) and C4127 (conditional expression is constant).

small corrections in NoSuchObject invoking.

Macros names changing, deadcode deleting, re-writing "for" loops into equivalent "if" structures.

changed condition in "if" block, deadcode deleted.

Small changes in else statement.

10 years ago0024148: Test case bugs/vis/bug24131_markers works wrong with software MS OpenGL
kgv [Mon, 30 Sep 2013 07:01:38 +0000 (11:01 +0400)]
0024148: Test case bugs/vis/bug24131_markers works wrong with software MS OpenGL
Fix misprint in OpenGl_Window aGLForma -> aGLFormat

10 years ago0024157: Parallelization of assembly part of BO
pkv [Fri, 27 Sep 2013 10:37:43 +0000 (14:37 +0400)]
0024157: Parallelization of assembly part of BO
Providing compatibility with new versions of Linux

10 years ago0024134: Wrong result of projection point on the face
azv [Fri, 27 Sep 2013 06:32:19 +0000 (10:32 +0400)]
0024134: Wrong result of projection point on the face
Changed Bnd_SphereUBTreeSelector for the Extrema_ExtAlgo_Tree projection algorithm properly work
Test case for issue CR24134

10 years ago0024108: Boolean fuse fails
abv [Sat, 14 Sep 2013 10:21:00 +0000 (14:21 +0400)]
0024108: Boolean fuse fails

Tolerance of checking distance between vertex and edge in BOPInt_Context::ComputeVE() increased by additional Precision::Confusion() to allow for interference to be detected in this particular case.

Two tests added for this issue: one with original shapes and another in rotated co-ordinates

10 years ago0024157: Parallelization of Assembly part of BO
pkv [Fri, 13 Sep 2013 03:05:16 +0000 (07:05 +0400)]
0024157: Parallelization of Assembly part of BO

The Build (Assembly) Part of BO consists of several sub-parts:
1. Building Vertices
2. Building Edges
3. Building Faces
4. Building Solids
5. Building Container Shapes (Wires, Shells, Compsolids, Compounds)

Among the parts above
3.Building Faces
and
4.Building Solids
are the most time-consuming and thus should be parallelized first.

The parallelization process can be divided on three phases:
1. Parallelization Building Faces
2. Parallelization Building Solids
3. Parallelization the rest parts

The phase 1 : Parallelization Building Faces consists of three parts:
1.1. Building Split Faces
1.2. Building Same Domain Faces
1.3. Building Faces with Internal Shapes
The branch deals with the phase 1. chapter 1.1. Building Split Faces

10 years ago0024142: Wrong section curve
azv [Thu, 26 Sep 2013 16:34:09 +0000 (20:34 +0400)]
0024142: Wrong section curve
Modified intersection of two conical surfaces with almost the same axis of revolution
Test cases for issue CR24142

10 years ago0024176: Array out-of-bound error in Vrml loader (test bugs moddata_3 bug23023)
abv [Mon, 16 Sep 2013 06:03:12 +0000 (10:03 +0400)]
0024176: Array out-of-bound error in Vrml loader (test bugs moddata_3 bug23023)

Code assigning normals to nodes of triangulation corrected to use correct index of the node and avoid array out-of-bound errors.

10 years ago0023958: Section of shell by plane is incomplete.
emv [Thu, 26 Sep 2013 16:25:54 +0000 (20:25 +0400)]
0023958: Section of shell by plane is incomplete.
Modifications 1
1. To avoid creation of micro edges in the class BOPAlgo_PaveFiller added two new functions ForceInterfVE and
   ForceInterfVF which updates tolerance of Vertex to make it interfere with Edge and Face accordingly.
2. In the class BOPInt_Tools added new function IsInRange which checks whether two ranges cross each other.
3. In the class BOPTools_AlgoTools added new function IntersectCurves2d which intersects pcurves of the face
   to check it on the self-interference.
4. In the function IntTools_BeanFaceIntersector::FastComputeExactIntersection() the check on the coincidence of the whole
   edge with the face (BOPTools_AlgoTools::IsBlockInOnFace) replaced  with the check on the coincidence of one intermediate point with that face.
5. Test cases bugs modalg_1 bug1255, bug1255_1 has been updated with more correct value of the result.
6. TODO statement has been removed from the test cases boolean bcut_complex B1,B3,B5,C2,C4,C6,C8 as they are correct.

Adding test case for issue CR23958

Modification 2
1. In class BOPAlgo_PaveFiller added new function CheckPlanes(nF1, nF2) that checks whether two planar faces have common or intersecting sub shapes.
If these two faces do not have such sub shapes there is no need to intersect them.
2. In the function BOPAlgo_PaveFiller::MakeBlocks() added block for reducing the tolerance values to the previous state for the vertices
that were put on the section curve (with increasing of its tolerance value) that was rejected by the algorithm.

Modification 3
Back to Extrema_ExtAlgo_Grad algorithm in extrema computations in Boolean Operations algorithm.

10 years ago0024148: Test case bugs/vis/bug24131_markers works wrong on software MS OpenGL
kgv [Thu, 26 Sep 2013 16:21:06 +0000 (20:21 +0400)]
0024148: Test case bugs/vis/bug24131_markers works wrong on software MS OpenGL

Add pre-rendered images for custom markers.
OpenGl_Window - drop overcomplicated find_pixel_format() function
OpenGl_Caps - add option to force software OpenGL imlementation (MS or Apple)
Remove TODO from test case
Add grayscale custom marker to the test
Correct color bitness in attributes list

10 years ago0024198: Remove unused stuff in WNT package
abv [Sun, 22 Sep 2013 09:35:10 +0000 (13:35 +0400)]
0024198: Remove unused stuff in WNT package

Removed several obsolete files in WNT package (win32 and Windows 95 specific)

10 years ago0023863: Wrong distance value between circle and cylinder
azv [Thu, 26 Sep 2013 16:13:17 +0000 (20:13 +0400)]
0023863: Wrong distance value between circle and cylinder

The verification of intersection of a circle and a cylinder was added to the calculation of extrema
Test cases for issue CR23863

10 years ago0024186: Eliminate remaining compiler warnings in MSVC++ 2010 64 bit with warning...
omy [Thu, 26 Sep 2013 13:20:52 +0000 (17:20 +0400)]
0024186: Eliminate remaining compiler warnings in MSVC++ 2010 64 bit with warning level 4

Eliminated some warnings of type C4267 (conversion from Type1 to Type2: possible loss of data); size_t to int explicit casts added.
Fixed warning C4267 and 4244 in OSD* files

Change in OSD_FileNode and OSD_File reverted since different handle types are needed on Unix and Windows

10 years ago0024190: Exception raised during topological operation.
pkv [Thu, 26 Sep 2013 13:18:50 +0000 (17:18 +0400)]
0024190: Exception raised during topological operation.
v0.0
I. New features:
no new features

II. Changes:
II.1. class BOPAlgo_CheckerSI
   - method:
void BOPAlgo_CheckerSI::Perform()
The contents of the method is encompassed with "try/catch" block.

III. Modified entities:
packages:
BOPAlgo

Test cases for issue CR24190

10 years ago0024187: Wrong result of COMMON operation.
emv [Thu, 26 Sep 2013 13:16:19 +0000 (17:16 +0400)]
0024187: Wrong result of COMMON operation.
In the function
  void BOPAlgo_Builder::FillInternalShapes()
added treatment for the arguments of type COMPOUND.

Adding test case for issue CR24187

10 years ago0024191: Static assert functionality should be added to Standard_Assert.hxx
omy [Thu, 19 Sep 2013 12:12:48 +0000 (16:12 +0400)]
0024191: Static assert functionality should be added to Standard_Assert.hxx

Added Standard_STATIC_ASSERT macro for compile-time asserts.
The new macro is used in Standard_MMgrOpt and QANCollection.

10 years ago0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
omy [Mon, 16 Sep 2013 09:22:20 +0000 (13:22 +0400)]
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)

Some fixes to eliminate warning

10 years ago0024201: Remove TODO "Tcl Exception: File aaa.stl could not be found" and similar...
apn [Tue, 24 Sep 2013 08:49:19 +0000 (12:49 +0400)]
0024201: Remove TODO "Tcl Exception: File aaa.stl could not be found" and similar ones

10 years ago0024070: OpenGL capped object-level clipping planes
apl [Thu, 19 Sep 2013 12:58:00 +0000 (16:58 +0400)]
0024070: OpenGL capped object-level clipping planes

Graphical clipping:
- Use "Graphic3d_ClipPlane" to defined clipping for PrsMgr_PresentableObject (local clipping), for V3d_View (global clipping).

Get rid of old implementations:
- Remove Visual3d_ClipPlane.
- Port V3d_Plane to Graphic3d_ClipPlane core.

Selection Sensitives:
- Port "Matches" method to add full set of arguments (SelectBasics_PickArgs), including min-max depth coming from selector.
- Get rid of transient data for pair Matches -> ComputeDepth.
- Extend SelectMgr_ViewerSelector::LoadResult to work with local clipping, add virtual callbacks to compute globa/local depth clipping for picking.

Capping rendering algorithm:
- Recursive rendering algorithm for OpenGl_Groups.
- Introduced Rendering filter for groups.

Clipping plane management in TKOpenGl:
- Added OpenGl_ClippingState to OpenGl_Context.

DRAWEXE commands:
- Ported "vclipplane" command for new approach.
- Added "vsettexturemode" command for changing texture details in views (enable / disable textures).

Correct DownCast syntax (compilation error)

Fix new compiler warnings

tests/bugs/vis/bug22906 migrated to the new vclipplane syntax