occt.git
7 years ago0027313: Exception during WriteStep with PMI
ika [Tue, 28 Jun 2016 09:00:13 +0000 (12:00 +0300)]
0027313: Exception during WriteStep with PMI

Add check for datum position during export of datum_system
Add Draw commands for set/get datum position
update test cases

Correction of case bugs/step/bug27313

7 years ago0025423: Incorrect result of splitting some shapes
bugmaster [Fri, 9 Sep 2016 13:10:56 +0000 (16:10 +0300)]
0025423: Incorrect result of splitting some shapes

Adding testing case

7 years ago0022609: Cut operation between two solids produces not valid shape
bugmaster [Thu, 8 Sep 2016 13:22:40 +0000 (16:22 +0300)]
0022609: Cut operation between two solids produces not valid shape

Adding test case

7 years ago0022454: Export /Import of valid model leads to lost of tolerances
bugmaster [Thu, 8 Sep 2016 15:19:41 +0000 (18:19 +0300)]
0022454: Export /Import of valid model leads to lost of tolerances

Adding testing case

7 years ago0027842: Exception in intersection algorithm if FPE is switched on
nbv [Tue, 6 Sep 2016 12:35:35 +0000 (15:35 +0300)]
0027842: Exception in intersection algorithm if FPE is switched on

1. The reason of exception has been eliminated.
2. Interfaces of DistanceMinimizeByGradient and DistanceMinimizeByExtrema methods of IntWalk_PWalking class has been changed.

Creation of test case for this issue.

TODO has been added with reference to the issue #26329

7 years ago0027836: Visualization, TKOpenGl - gradient background is lost at some camera positions
kgv [Sat, 3 Sep 2016 18:37:55 +0000 (21:37 +0300)]
0027836: Visualization, TKOpenGl - gradient background is lost at some camera positions

OpenGl_View::ZLayerBoundingBox() now adds screen background plane for proper Z-fit.

Graphic3d_TransformPers::Compute() - projection matrix has been excluded
from the math to eliminate floating point computation error.

7 years ago0027827: Samples - fix compilation errors in XAML (UWP) sample.
ski [Wed, 31 Aug 2016 09:35:03 +0000 (12:35 +0300)]
0027827: Samples - fix compilation errors in XAML (UWP) sample.

Error about deployment target version was fixed.
Check of export to VRML format was added to sample XAML (UWP).

Add freetype.dll to the sample project for correct execution of sample from Visual Studio.

7 years ago0025152: Incorrect result of Boolean Union by BRepAlgoAPI_Fuse
bugmaster [Wed, 7 Sep 2016 12:11:32 +0000 (15:11 +0300)]
0025152: Incorrect result of Boolean Union by BRepAlgoAPI_Fuse

Adding testing case

7 years ago0025102: A part of intersection cannot be found
bugmaster [Wed, 7 Sep 2016 10:28:59 +0000 (13:28 +0300)]
0025102: A part of intersection cannot be found

Adding testing case

7 years ago0027222: Empty result of making volume operation
emv [Tue, 30 Aug 2016 05:36:48 +0000 (08:36 +0300)]
0027222: Empty result of making volume operation

1. BOPAlgo_MakerVolume - Taking into account the possibility of Same Domain faces
   while collecting the faces for building the solids;
2. BOPDS_DS - Making the check on coincidence of edges consistent with the intersection
   algorithm which also adds the Precision::Confusion() to the intersection tolerance;
3. Test case for the issue.
4. Adjusting test cases (improvements) to their new behavior.

7 years ago0027805: Visualization - AIS_InteractiveContext::FitSelected() is broken for global...
kgv [Sat, 3 Sep 2016 09:23:55 +0000 (12:23 +0300)]
0027805: Visualization - AIS_InteractiveContext::FitSelected() is broken for global selection

AIS_Selection class has been cleaned up:
- SelectMgr_EntityOwner is now used in interface instead of Standard_Transient.
- Method ::Select() has been renamed to ::Clear() for clarity.
- Dropped unused class fields.
- Owners without Selectable are not added to the list (should never happen).

SelectMgr_SelectableObject::BndBoxOfSelected() has been modified
to properly compute bounding box of ALL selection Entities
for specified Owner (only first Entity has been used before the patch).

Methods of AIS_InteractiveContext::DisplaySelected(), ::SetSelectedAspect(),
::FitSelected(), ::SubIntensityOff() have been fixed (wrong DownCast).
AIS_InteractiveContext::AddSelect() now handles properly AIS_InteractiveObject as argument.

7 years ago0027804: Two breps cause intersections to loop for too long/infinitely
msv [Fri, 26 Aug 2016 14:33:46 +0000 (17:33 +0300)]
0027804: Two breps cause intersections to loop for too long/infinitely

In ProjLib_ComputeApprox algorithm, compute correct parametric tolerance from the input 3D tolerance using surface resolution, in order to pass it to low-level 2D algorithm Approx_FitAndDivide2d (instantiation of the generic class Approx_ComputeCLine). Earlier 3D tolerance was used as parametric tolerance directly, which was a problem for surfaces with too small radius of curvature.

Also, eliminate redundant creation of the object of type AppParCurves_MultiCurve on each iteration in the method Approx_ComputeCLine::Compute.

The post treatment of the Edge/Edge intersections has been improved. Namely:
a. Making the procedure of sharing Edge/Edge intersection vertices consistent with intersection algorithm by enlarging bounding box of each vertex on half of Precision::Confusion();
b. Algorithm of computation of vertex tolerance (in order to cover tangent zone between Edges) has been changed for Line/Circle cases.

Test cases for issue CR27804
Adjusting test cases according to their new behavior.

Mark the test boolean/volumemaker/A8 as unstable between different versions of MSVS (2010 and 2013).

7 years ago0027759: Invalid result of a Boolean fuse operation
emv [Tue, 30 Aug 2016 05:00:08 +0000 (08:00 +0300)]
0027759: Invalid result of a Boolean fuse operation

Test case for the issue.

7 years ago0025055: Incorrect shape copying in BRepBuilderAPI_Copy
bugmaster [Wed, 7 Sep 2016 07:32:49 +0000 (10:32 +0300)]
0025055: Incorrect shape copying in BRepBuilderAPI_Copy

Adding testing case

7 years ago0025534: TObj_Application unicode path issue.
mpv [Mon, 5 Sep 2016 10:27:40 +0000 (13:27 +0300)]
0025534: TObj_Application unicode path issue.

7 years ago0027835: Application Framework, BinXCAF - handle correctly faces with NULL surface...
kgv [Sat, 3 Sep 2016 16:21:58 +0000 (19:21 +0300)]
0027835: Application Framework, BinXCAF - handle correctly faces with NULL surface within BinTools_ShapeSet

BinTools_ShapeSet::AddGeometry() now writes NULL surface with 0 index.
myWithTriangles is ignored for TopoDS_Face with NULL surface so that
triangulation-only faces are not lost with defaults.

Added Draw Harness command StoreTriangulation defining
WithTriangulation flag for BinXCAF/BinOcaf storage drivers.

7 years ago0027815: Visualization, TKV3d - AIS_InteractiveContext has inconsistent display mode API
san [Fri, 26 Aug 2016 16:04:23 +0000 (19:04 +0300)]
0027815: Visualization, TKV3d - AIS_InteractiveContext has inconsistent display mode API

7 years ago0027834: Visualization, SelectMgr_ViewerSelector - iteration through detected Entitie...
kgv [Fri, 2 Sep 2016 16:11:23 +0000 (19:11 +0300)]
0027834: Visualization, SelectMgr_ViewerSelector - iteration through detected Entities should be sorted

SelectMgr_SortCriterion now stores detected SensitiveEntity and 3D point.
SelectMgr_ToleranceMap class definition has been moved out to dedicated file (from SelectMgr_ViewerSelector).

SelectMgr_ViewerSelector - the methods implementing class-as-iterator
Init(), More(), Next(), Picked() and InitDetected(), MoreDetected(),
NextDetected(), DetectedEntity() have been deprecated.
User should access detection results by using index.
New methods PickedData(), PickedEntity(), PickedPoint() have been added
for accessing auxiliary information about picked object in sorted order.

7 years ago0027811: Configuration - allow building TKOpenGl with OpenGL ES on Windows
kgv [Wed, 31 Aug 2016 16:34:32 +0000 (19:34 +0300)]
0027811: Configuration - allow building TKOpenGl with OpenGL ES on Windows

OpenGl_ShaderManager::prepareStdProgramFboBlit() now tries using extension
GL_EXT_frag_depth within OpenGL ES 2.0 when OpenGL ES 3.0 is not available.
OpenGl_View::blitBuffers() now disables Depth test
when copying depth values is not supported by OpenGL ES 2.0 hardware.

Fixed building for UWP with SDK 10.0.10240.0
Fixed building TKService, TKV3d and TKOpenGl for UWP.

OSD_Environment now defines global environment map
for emulating desktop behavior on UWP.

7 years ago0027819: Visualization - provide a possibility to redefine SelectMgr_SelectableObject...
vpa [Wed, 31 Aug 2016 14:42:50 +0000 (17:42 +0300)]
0027819: Visualization - provide a possibility to redefine SelectMgr_SelectableObject::UpdateSelection

- SelectMgr_SelectableObject::UpdateSelection calls redefineable SelectMgr_SelectableObject::updateSelection

7 years ago0027813: Visualization - add method V3d_View::DiagnosticInformation() similar to...
kgv [Wed, 31 Aug 2016 18:06:54 +0000 (21:06 +0300)]
0027813: Visualization - add method V3d_View::DiagnosticInformation() similar to vglinfo command

New method V3d_View::DiagnosticInformation() has been introduced
providing the access to low-level OpenGL context information
for diagnostic automated reports or displaying in application About System.

7 years ago0027817: Visualization, StdSelect_BRepOwner - copy transformation persistence flag
kgv [Sun, 28 Aug 2016 16:21:13 +0000 (19:21 +0300)]
0027817: Visualization, StdSelect_BRepOwner - copy transformation persistence flag

7 years ago0027821: Visualization, AIS_Shape - add NULL checks for displaying TopoDS_Face with...
akz [Fri, 5 Aug 2016 08:24:58 +0000 (11:24 +0300)]
0027821: Visualization, AIS_Shape - add NULL checks for displaying TopoDS_Face with NULL surface NULL surface

7 years ago0027807: Units are lost during import presentation of GDT.
ika [Fri, 26 Aug 2016 13:10:19 +0000 (16:10 +0300)]
0027807: Units are lost during import presentation of GDT.

Add entities to import a subtype of draughting_model,
Add units calculating during STEP reading.

7 years ago0022582: Visualization - provide an API for dumping a sub-region of the viewport
osa [Sun, 21 Aug 2016 18:55:10 +0000 (21:55 +0300)]
0022582: Visualization - provide an API for dumping a sub-region of the viewport

Graphic3d_Camera definition has been exended by optional Tile property (Graphic3d_CameraTile structure).
V3d_View::ToPixMap() now performs tiled dump when image size exceeds hardware limits.

OpenGl_View::Redraw() - fixed dump of immediate Z layers in no stereo and no MSAA case.

OpenGl_Context now tracks viewport values.
Draw Harness command vdump has been extended with new argument -tileSize.

7 years ago0027810: Compilation error on NCollection_UBTree::Kill()
oan [Thu, 25 Aug 2016 13:46:13 +0000 (16:46 +0300)]
0027810: Compilation error on NCollection_UBTree::Kill()

7 years ago0027796: Visualization - allow 3D objects with Graphic3d_TMF_2d flag
kgv [Sat, 20 Aug 2016 16:37:56 +0000 (19:37 +0300)]
0027796: Visualization - allow 3D objects with Graphic3d_TMF_2d flag

Graphic3d_TransformPers::Apply() now does not reset projection matrix
for objects with Graphic3d_TMF_2d flag.

Useless flag Graphic3d_TMF_2d_IsTopDown has been removed.
SelectMgr_SelectableObjectTrsfPersSet now does not skip Graphic3d_TMF_2d presentations.
OpenGl_Layer::BoundingBox() now takes into account Graphic3d_TMF_2d presentations for proper Z-fit.

AIS_ColorScale now uses "lazy" mode for rendering labels
(considering 2D persistence to be already defined within entire structure).

OpenGl_Layer::updateBVH() now updates myAlwaysRenderedMap to handle
dynamic transformation persistence flag change without redisplaying the object.

7 years ago0027626: Attempt to display shape in 3d leads to very long calculation loop
apn [Wed, 6 Jul 2016 15:42:02 +0000 (18:42 +0300)]
0027626: Attempt to display shape in 3d leads to very long calculation loop

Added test case bugs/mesh/bug27626

Small correction of test case for issue CR27626

7 years ago0027781: [Regression to 6.9.0] Exception in ShapeFix_Shape algorithm with option...
msv [Thu, 18 Aug 2016 09:12:33 +0000 (12:12 +0300)]
0027781: [Regression to 6.9.0] Exception in ShapeFix_Shape algorithm with option FixSmallAreaWireMode

The matter was that during checking wires of a shape for small area, non-outer wires were checked with constructing a new face with BRepBuilderAPI_MakeFace. If a face has location an edge from original face has no pcurve on the constructed face, which leads to exception in BRepGProp::SurfaceProperties. The fix constructs new face using EmptyCopy.

The method ShapeAnalysis_Wire::CheckSmallArea() has been changed so as to check area of the outer wire without hole-wires. API of this method has been changed, as the second argument theIsOuterWire is not needed any more.

The test cases have been updated, below are explanations of changes:

test de iges_2 G7
The fixed version leaves a wire in a face, but the master version considered it small and removed. The master version works wrong. It is because the face built with this wire has negative area, but the code in CheckSmallArea function does not get absolute value before comparing area with the tolerance. The left wire leads to splitting of the face on two, checkshape error in the face, and statshape faulty due to increased number of faces in the second pass.

test de iges_2 G2
The fixed version leaves a wire that is removed in the master version. The cause is the same as in G7 test case. However, here the problematic wire has very big tolerance. So, when the fixed version left it in the shape, the overall maximal tolerance became much greater than in reference data.

test de step_3 E6
In fixed version a really bad small wire is removed from the face, while in master version it is left and produces an error in checkshape report. So, it is an improvement.

7 years ago0025220: Using BRepFill_OffsetWire withs wires containing arc edges throws exception...
bugmaster [Fri, 26 Aug 2016 12:19:19 +0000 (15:19 +0300)]
0025220: Using BRepFill_OffsetWire withs wires containing arc edges throws exception "Standard_NullValue"
Adding testing case

7 years ago0026910: General fuse does not find intersection between line and circle
bugmaster [Thu, 25 Aug 2016 13:57:08 +0000 (16:57 +0300)]
0026910: General fuse does not find intersection between line and circle
Adding testing case

7 years ago0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
kgv [Thu, 25 Aug 2016 11:58:51 +0000 (14:58 +0300)]
0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead of "unsigned int"

Code has been updated to remove no-op casts and implicit casts to Standard_Boolean.

Places of inproper use of Standard_Boolean instead of Standard_Integer
have been corrected:
- Bnd_Box, Bnd_Box2d
  Bit flags are now defined as private enum
- HLRAlgo_BiPoint, HLRAlgo_EdgesBlock, HLRBRep_EdgeData, HLRBRep_FaceData
  Bit flags are now defined as enum
- HLRAlgo_EdgeStatus, HLRBRep_BiPnt2D, HLRBRep_BiPoint
  Bit flags are now defined as bool fields
- HLRAlgo_PolyData
  Bit flags are now defined as Standard_Integer
- OSD_DirectoryIterator, OSD_FileIterator
  Boolean flag is now defined as Standard_Boolean
- ShapeAnalysis_Surface::SurfaceNewton()
  now returns Standard_Integer (values 0, 1 or 3)
- ChFi2d_FilletAlgo
  now uses TColStd_SequenceOfBoolean instead of TColStd_SequenceOfInteger
  for storing boolean flags

Method IFSelect_Dispatch::PacketsCount() has been dropped from interface.

ShapeFix_Solid::Status() has been fixed to decode requested status
instead of returning integer value.

TopOpeBRepBuild_Builder1 now defines map storing Standard_Boolean values
instead of Standard_Integer.

Persistence for Standard_Boolean type has been corrected
to keep backward compatibility:
- BinMDataStd, BinTools, FSD_BinaryFile

Broken Draw Harness commands vdisplaymode and verasemode have been removed.

BRepMesh_FastDiscretFace::initDataStructure() - workaround old gcc limitations

BRepMesh_IncrementalMesh::clear() - avoid ambiguity

7 years ago0027793: Visualization - object drifts at zoom within Graphic3d_TMF_TriedronPers...
kgv [Tue, 23 Aug 2016 14:11:49 +0000 (17:11 +0300)]
0027793: Visualization - object drifts at zoom within Graphic3d_TMF_TriedronPers applied

Graphic3d_TransformPers now takes Graphic3d_Camera definition as argument
for methods applying transformation.

Graphic3d_TransformPers::Apply() now computes Graphic3d_TMF_TriedronPers
transformation in the following way:
- The object is moved onto Z focus distance.
- The object is expected to be defined in pixels.
- The Z coordinate on anchor point is used as offset from the view corner in pixels.
- It is now possible to define not only corners of the view, but also middle of the side.
- Graphic3d_TMF_TriedronPers now works with perspective projection.

OpenGl_LayerList::ChangeLayer() - fixed removing of the element in old ZLayer.

OpenGl_Layer::BoundingBox() now takes into account bounding box
of Graphic3d_TMF_TriedronPers presentations for Z-fit operation.

7 years ago0027350: Support for Universal Windows Platform
ski [Fri, 12 Aug 2016 15:38:48 +0000 (18:38 +0300)]
0027350: Support for Universal Windows Platform

- Toolchain file to configure a Visual Studio generator for a Windows 10 Universal Application was added (CMake).
- There is no support for environment variables in UWP.
- SID is not supported (were excluded).
- Windows registry is not supported (were excluded).
- Mess with usage of Unicode/ANSI was corrected.
- Added sample to check UWP functionality.
- Excluded usage of methods with Unicode characters where it is possible.
- Minor corrections to allow building OCAF (except TKVCAF) and DE (except VRML and XDE)
- Building of unsupported modules for UWP platform is off by default .
- Checking of DataExchange functionality was added to XAML (UWP) sample.
- Added information about UWP to the documentation.
- Update of results of merge with issue 27801

7 years ago0027645: Data Exchange - access violation when reading STEP AP242 file
ika [Tue, 23 Aug 2016 08:06:03 +0000 (11:06 +0300)]
0027645: Data Exchange - access violation when reading STEP AP242 file

Fix exceptions, add test cases.

Small correction of test cases for issue CR27645

7 years ago0027797: Visualization - consider ZLayer properties while sorting list of picked...
kgv [Tue, 23 Aug 2016 14:26:22 +0000 (17:26 +0300)]
0027797: Visualization - consider ZLayer properties while sorting list of picked entities

OpenGl_GraphicDriver::ZLayers() / V3d_Viewer::GetAllZLayers() now return
the layers sequence following rendering order (taking into account IsImmediate flag).

StdSelect_ViewerSelector3d::Pick() now sort result taking into account ZLayers flags.

7 years ago0027801: Configuration - fix compilation of Standard.cxx when using MinGW-W64
kgv [Tue, 23 Aug 2016 12:00:50 +0000 (15:00 +0300)]
0027801: Configuration - fix compilation of Standard.cxx when using MinGW-W64

7 years ago0027783: Visualization, XCAFPrs_AISObject - override method SetMaterial()
kgv [Tue, 23 Aug 2016 12:18:48 +0000 (15:18 +0300)]
0027783: Visualization, XCAFPrs_AISObject - override method SetMaterial()

XCAFPrs_AISObject::SetMaterial() now changes the default material of the object
but preserves custom XDE styles.

XCAFPrs_AISObject::Compute() now does not reset map of custom aspects each call,
so that to keep in sync aspects across multiple presentations.

AIS_InteractiveContext - private methods and class fields
are now protected to allow inheritance.

7 years ago0027789: Visualization, TKOpenGl - improve compatibility with new OpenGL ES devices
kgv [Wed, 17 Aug 2016 19:28:35 +0000 (22:28 +0300)]
0027789: Visualization, TKOpenGl - improve compatibility with new OpenGL ES devices

OpenGl_ShaderManager::prepareStdProgramStereo() - fixed definition of global constants
in optimized Anaglyph shader.

OpenGl_Context now loads GL_KHR_debug extension within OpenGL ES context.

7 years ago0027780: Face-face intersection produces 2D curve that has reversed derivative at...
msv [Tue, 16 Aug 2016 09:41:23 +0000 (12:41 +0300)]
0027780: Face-face intersection produces 2D curve that has reversed derivative at its end

The matter was that with starting point paased into intersector the walking line goes one point outside of the surface domain. Then during purging this extra point is removed from the line but its geometry is used for the last vertex. This makes a set of points invalid for approximation, and as a result we obtain the curve with reversed tangent direction at the end.

The API of the method IntPatch_WLineTool::ComputePurgedWLine has been changed to insert a new Boolean parameter RestrictLine. If this parameter is false than the step of removing of outside points is skipped, and the result line is not distorted. This flag is determined inside IntTools_FaceFace to tell the intersector if it is needed to limit intersection line by surface domain.

Test case has been added.

7 years ago0027726: List of formats supported by TDocStd_Application
skv [Fri, 29 Jul 2016 08:57:56 +0000 (11:57 +0300)]
0027726: List of formats supported by TDocStd_Application

Minor corrections and implementation of ABV remark

7 years ago0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether...
dbp [Thu, 18 Aug 2016 16:41:05 +0000 (19:41 +0300)]
0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether the object is fully clipped or not

OpenGl_Structure::Render() now checks if structure is entirely clipped to skip rendering at all,
or entirely NOT clipped to disable clipping / capping plane.

OpenGl_ShaderManager now defines dedicated GLSL programs for one and two clipping planes
to optimize rendering on slow hardware.

7 years ago0023585: Boolean Fuse Operation Fails.
bugmaster [Fri, 19 Aug 2016 13:44:19 +0000 (16:44 +0300)]
0023585: Boolean Fuse Operation Fails.
Adding test case

7 years ago0022794: Boolean Cut operation produces incorrect result.
bugmaster [Fri, 19 Aug 2016 06:55:06 +0000 (09:55 +0300)]
0022794: Boolean Cut operation produces incorrect result.
Adding testing case

7 years ago0027763: Visualization - remove V3d_View::Print() method
kgv [Wed, 10 Aug 2016 20:32:50 +0000 (23:32 +0300)]
0027763: Visualization - remove V3d_View::Print() method

Dependency from FreeImagePlus.dll (but not FreeImage.dll) has been removed.

Method V3d_View::Export() has been marked as deprecated.

Added Standard_DISABLE_DEPRECATION_WARNINGS and Standard_ENABLE_DEPRECATION_WARNINGS
to eliminate compiler warnings for using deprecated APIs within Draw Harness for testing.

compatibility with gcc 4.5-

7 years ago0022634: Cut operation on closed solids returns opened one
bugmaster [Wed, 17 Aug 2016 13:32:01 +0000 (16:32 +0300)]
0022634: Cut operation on closed solids returns opened one
Adding testing cases

7 years ago0027766: Incorrect section curves between attached cylinders
nbv [Fri, 12 Aug 2016 19:08:50 +0000 (22:08 +0300)]
0027766: Incorrect section curves between attached cylinders

2d-tolerance has been bounded above (earlier it was too big for precise computation).

Creation of the test case for this issue.
Adjusting some test cases according to their new behavior.

Adjusting test case according to its new behavior.

7 years ago0021246: checkshape command does not return faulty shapes.
bugmaster [Mon, 15 Aug 2016 12:53:02 +0000 (15:53 +0300)]
0021246: checkshape command does not return faulty shapes.
Adding testing case

7 years ago0027775: Different behavior of GeomFill_BSplineCurves algorithm in DEBUG and RELEASE...
nbv [Mon, 15 Aug 2016 15:06:34 +0000 (18:06 +0300)]
0027775: Different behavior of GeomFill_BSplineCurves algorithm in DEBUG and RELEASE mode

Throw an exception in case of incorrect input data.

7 years ago0008040: Offset direction is wrong for a closed circle
bugmaster [Tue, 16 Aug 2016 10:58:32 +0000 (13:58 +0300)]
0008040: Offset direction is wrong for a closed circle
Adding testing case

7 years ago0027773: Empty result of section operation between line and offset of a circle
emv [Mon, 15 Aug 2016 12:08:33 +0000 (15:08 +0300)]
0027773: Empty result of section operation between line and offset of a circle

In Edge/Edge intersection the Resolution for the Offset Curve based on the elementary
curve (Line/Circle/Ellipse) is computed using this basis curve.

7 years ago0027774: Constructor GeomPlate_BuildAveragePlane crashes if two input normals are...
nbv [Mon, 15 Aug 2016 12:57:11 +0000 (15:57 +0300)]
0027774: Constructor GeomPlate_BuildAveragePlane crashes if two input normals are parallel to each other

Normalization has been avoided in case of impossibility.

7 years ago0025957: nurbsconvert modifies original shape
isn [Tue, 7 Jun 2016 04:20:13 +0000 (07:20 +0300)]
0025957: nurbsconvert modifies original shape

- Ensure that the subshapes from the original shape will not be changed after nurbsconvert operation.
For that create the new vertexes (NewPoint(..)) as well as new curves (NewCurve(..)) and new surfaces (NewSurface(..)) before calling of Rebuild() method. Make copies of all vertexes impacted by curve or surface modifications. This eliminates necessity of creation of new vertices during recursive rebuilding of the entire shape.

- Compatibility with the old behavior of BRepTools_Modifier has been retained as an option. For that the new flag MutableInput has been added in the interface of the class.

- This patch also impacts other operations based on BRepTools_Modifier, in the sense that they also become safe regarding input shapes.

- Create new test cases. Some test cases with nurbsconvert command are changed to lock input shapes from modifications.

fix regressions

7 years ago0027762: Incorrect result of General Fuse operation
msv [Thu, 11 Aug 2016 07:23:53 +0000 (10:23 +0300)]
0027762: Incorrect result of General Fuse operation

The algorithm of finding of extrema solutions of a point and a torus in Extrema_ExtPElS has been corrected for the case of torus having major radius equal to zero.

Test cases are added.

7 years ago0027729: UnifySameDomain: allow the user to specify linear and angular tolerances
msv [Fri, 29 Jul 2016 15:23:57 +0000 (18:23 +0300)]
0027729: UnifySameDomain: allow the user to specify linear and angular tolerances

- New methods SetLinearTolerance and SetAngularTolerance have been added in the class ShapeUpgrade_UnifySameDomain.
- The algorithm has been modified to consider these tolerances when checking if two faces are same domain.
- The draw command unifysamedomain has been changed to accept new parameters.
- The internal method MergeSeq has been changed to avoid exception connected with access to unknown key in the data map.

Create test case

Small correction of test case for issue CR27729

7 years ago0027761: Intersection loops infinitely
emv [Thu, 11 Aug 2016 08:55:29 +0000 (11:55 +0300)]
0027761: Intersection loops infinitely

The static method CorrectSurfaceBoundaries() in the class IntTools_FaceFace,
which is used for correction of the boundaries of the faces before their intersection,
contains two inconsistent adjustments of the boundaries of the faces based on periodic surfaces.
One of these adjustments has been removed. The remaining adjustment, the one that is based on the
2D bounding boxes of the closed curves, should be sufficient.

Test case for the issue.

7 years ago0027751: Visualization, Graphic3d_ClipPlane - add option to inherit material from...
kgv [Mon, 8 Aug 2016 16:51:40 +0000 (19:51 +0300)]
0027751: Visualization, Graphic3d_ClipPlane - add option to inherit material from object

Graphic3d_ClipPlane - Graphic3d_AspectFillArea3d is now stored as class field.
OpenGl_CappingAlgo::RenderCapping() now handles special mode
preserving material from rendered object.

MeshVS_ElementalColorPrsBuilder::Build() now creates single primitives group
for triangles, thus Closed flag is correctly applied.

Redundant methods OpenGl_Structure::DrawGroups() and ::renderClosedGeometry()
have been removed.

Draw Harness, ViewerTest - vaspects now preserves display mode
and location when assigning sub-shape aspects.
The syntax of command vclipplane has been revised
(preserving compatibility with old syntax):
- Use "-param" style syntax for all arguments.
- Eliminate redundant arguments "change", "view", "object".
- Allow passing multiple parameters withing single call.
- Do not require "create" command - create new plane implicitly.
- "maxplanes" argument does not require view name anymore.
- "delete" does not throws TCL exception for non-existing plane.
- "view" argument without list now applies to active view.
- Handle * and ALL withing "delete" to remove all defined planes.

update test case bugs/vis/bug26028

7 years ago0027750: Visualization, V3d_View - remove unused functionality ZClipping and ZCueing
kgv [Wed, 3 Aug 2016 19:08:01 +0000 (22:08 +0300)]
0027750: Visualization, V3d_View - remove unused functionality ZClipping and ZCueing

Methods V3d_View::SetZClippingType(), ::SetZClippingDepth(), ::SetZClippingWidth(),
::SetZCueingDepth(), ::SetZCueingWidth(), ::SetZCueingOn(), ::SetZCueingOff()
have been removed.

7 years ago0027756: Visualization - add Draw() method taking Graphic3d_Group to tools Prs3d_Arro...
kgv [Wed, 10 Aug 2016 07:55:07 +0000 (10:55 +0300)]
0027756: Visualization - add Draw() method taking Graphic3d_Group to tools Prs3d_Arrow, Prs3d_Text

and deprecate Draw() methods taking Prs3d_Presentation.

7 years ago0027755: Visualization, V3d_View::ToPixMap() - fix image dump with MSAA turned on
kgv [Sun, 7 Aug 2016 09:05:39 +0000 (12:05 +0300)]
0027755: Visualization, V3d_View::ToPixMap() - fix image dump with MSAA turned on

OpenGl_View::Redraw() now handles correctly myTransientDrawToFront
with MSAA turned on and resolution not equal to window size.

7 years ago0027757: Visualization - handle child objects in selection manager regardless of...
vpa [Mon, 8 Aug 2016 14:38:02 +0000 (17:38 +0300)]
0027757: Visualization - handle child objects in selection manager regardless of HasOwnPresentations() flag

- all methods of SelectMgr_SelectionManager now processes children first, then check HasOwnPresentations() flag;
- test case for issue #27757

Small correction of test case for issue CR27757

7 years ago0027676: Foundation Classes - define Standard_ExtCharacter, Standard_Utf16Char using...
kgv [Fri, 5 Aug 2016 19:49:11 +0000 (22:49 +0300)]
0027676: Foundation Classes - define Standard_ExtCharacter, Standard_Utf16Char using C++11 types char16_t

7 years ago0027735: Visualization, OpenGl_ShaderManager - fix clipping state management
kgv [Fri, 5 Aug 2016 17:58:13 +0000 (20:58 +0300)]
0027735: Visualization, OpenGl_ShaderManager - fix clipping state management

OpenGl_CappingAlgo::RenderCapping() now updates clipping state in Shader Manager.
OpenGl_View::render() clipping state setup has been moved to OpenGl_View::renderScene().

OpenGl_ShaderManager now converts position to homogeneous coordinates within clipping code GLSL.
This fixes capping plane rendering with clipping planes applied.

Fixed possible Clipping planes misconfiguration when FFP is used;
error-prone OpenGl_Clipping::AddWorldLazy() method has been dropped.

7 years ago0027754: Configuration - fix compilation of Standard.cxx on non-x86 desktop systems
kgv [Fri, 5 Aug 2016 19:05:19 +0000 (19:05 +0000)]
0027754: Configuration - fix compilation of Standard.cxx on non-x86 desktop systems

7 years ago0027563: Foundation Classes, opencascade::handle - make operator*() consistent with...
kgv [Sat, 6 Aug 2016 11:07:54 +0000 (14:07 +0300)]
0027563: Foundation Classes, opencascade::handle - make operator*() consistent with operator->()

7 years ago0021427: Invalid result of cutting attached shapes
bugmaster [Mon, 8 Aug 2016 09:55:39 +0000 (12:55 +0300)]
0021427: Invalid result of cutting attached shapes
Adding test case

7 years ago0021306: Visualization, AIS_InteractiveContext - revise DisplayedModes() semantics
isk [Tue, 2 Aug 2016 11:46:13 +0000 (14:46 +0300)]
0021306: Visualization, AIS_InteractiveContext - revise DisplayedModes() semantics
Remove the AIS_InteractiveContext::DisplayedModes() method.
Remove list of active display modes from AIS_GlobalStatus.

7 years ago0027719: HLRBrep_Algo incorrect output
jgv [Tue, 2 Aug 2016 15:37:18 +0000 (18:37 +0300)]
0027719: HLRBrep_Algo incorrect output

Intersection of curves and surfaces in HLRBRep is corrected: parametric limits of face are used instead of parametric limits of surface

Building of outlines (Contap_Contour) is corrected: method ComputeCloseLine is now used in all cases.

Correction of HLRBRep_Surface: usage of UVbounds-option

Correction of test cases according to the new behavior.

7 years ago0027573: AIS_ColorScale::FindColor does not take into account custom colors
aba [Tue, 2 Aug 2016 11:48:45 +0000 (14:48 +0300)]
0027573: AIS_ColorScale::FindColor does not take into account custom colors

Modified AIS_ColorScale::FindColor (Standard_Real, Quantity_Color&) to take into account custom colors

7 years ago0027749: Configuration - drop remaining occurences of GLU dependency
kgv [Wed, 3 Aug 2016 09:53:30 +0000 (12:53 +0300)]
0027749: Configuration - drop remaining occurences of GLU dependency

7 years ago0027746: Incomplete result of SECTION operation
emv [Wed, 3 Aug 2016 08:04:46 +0000 (11:04 +0300)]
0027746: Incomplete result of SECTION operation

Test cases for the issue.

7 years ago0027665: BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0
nbv [Fri, 22 Jul 2016 08:33:47 +0000 (11:33 +0300)]
0027665: BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0

Creation of test case for issue #27665.

7 years ago0027724: Visualization, TKV3d - Null handle check missing in AIS_InteractiveContext...
mgn [Tue, 2 Aug 2016 07:13:49 +0000 (10:13 +0300)]
0027724: Visualization, TKV3d - Null handle check missing in AIS_InteractiveContext::SelectedShape()
Null handle check has been added.

7 years ago0025448: Coding - remove useless header Quantity_Color_1.hxx
abv [Tue, 2 Aug 2016 15:11:41 +0000 (18:11 +0300)]
0025448: Coding - remove useless header Quantity_Color_1.hxx

Useless header file Quantity_Color_1.hxx is deleted, its content moved to Quantity_Color.cxx
The meaning of special Hue value -1.0 has been added to Quantity_Color methods description.

7 years ago0027680: Visualization - AIS_InteractiveContext::Remove() should remove all presentat...
isk [Mon, 1 Aug 2016 12:30:40 +0000 (15:30 +0300)]
0027680: Visualization - AIS_InteractiveContext::Remove() should remove all presentation of the object

7 years ago0027700: Visualization - glPolygonMode() used for frame drawing affects label text...
apl [Mon, 1 Aug 2016 19:09:20 +0000 (22:09 +0300)]
0027700: Visualization - glPolygonMode() used for frame drawing affects label text shading

Patch extends GL-state caching mechanism of OpenGl_Context by new methods.
The methods allow setting/inquiring polygon rasterization and hatching modes:
- OpenGl_Context::SetPolygonMode
- OpenGl_Context::SetPolygonHatchEnabled
- OpenGl_Context::SetPolygonHatchStyle

With these methods OpenGl_Text is able to configure shading as necessary.
And this configuration is done irrespectively of currently defined face aspect.
Code of OpenGl_Workspace is also modified to use these methods as well.

Porting notes:
- OpenGl_LineAttributes now require OpenGl_Context instance for calling GL API.
- OpenGl_LineAttributes has new flag IsEnabled, it turns on/off hatching without changing the hatch type.
  By default this flag is turned on and can be never modified for compatibility with old code.
- OpenGl_LineAttributes is not anymore a field of OpenGl_Workspace::myLineAttrib.
  This resource is directly created by an OpenGl_Context instance on demand.
  If you use custom implementation of hatch patterns please create and share custom resource
  under resource-key "OpenGl_LineAttributes" in corresponding OpenGl_Context before using
  methods SetPolygonHatchEnabled, SetPolygonHatchStyle.

7 years ago0027731: Visualization, OpenGl_AspectMarker - handle fractional marker Scale when...
kgv [Mon, 1 Aug 2016 14:15:52 +0000 (17:15 +0300)]
0027731: Visualization, OpenGl_AspectMarker - handle fractional marker Scale when sharing resources

OpenGl_AspectMarker::Resources::SpriteKeys() now encodes decimal number of marker scale into resource key,
since built-in markers are defined with 0.5 scale step.

7 years ago0027717: Visualization - drop broken Prs3d_Drawer::ShadingAspectGlobal() flag
san [Mon, 1 Aug 2016 15:10:55 +0000 (18:10 +0300)]
0027717: Visualization - drop broken Prs3d_Drawer::ShadingAspectGlobal() flag

7 years ago0027583: Visualization, MeshVS - handle MeshVS_DA_SupressBackFaces flag within MeshVS...
kgv [Sat, 30 Jul 2016 14:05:32 +0000 (17:05 +0300)]
0027583: Visualization, MeshVS - handle MeshVS_DA_SupressBackFaces flag within MeshVS_NodalColorPrsBuilder

and within MeshVS_ElementalColorPrsBuilder builders.

7 years ago0027360: Visualization - remove obsolete anti-aliasing API
kgv [Sat, 30 Jul 2016 14:54:29 +0000 (17:54 +0300)]
0027360: Visualization - remove obsolete anti-aliasing API

The methods V3d_View::SetAntialiasingOn(), ::SetAntialiasingOff()
and Antialiasing() have been removed.

7 years ago0027543: Samples - flickering when view is resized in MFC samples
kgv [Sat, 30 Jul 2016 16:07:34 +0000 (19:07 +0300)]
0027543: Samples - flickering when view is resized in MFC samples

Define proper window class for OpenGL window within
overridden method CView::PreCreateWindow().

7 years ago0027728: Visualization, OpenGl_Text - handle correctly object local transformation
kgv [Sat, 30 Jul 2016 12:06:23 +0000 (15:06 +0300)]
0027728: Visualization, OpenGl_Text - handle correctly object local transformation

OpenGl_Context::ApplyWorldViewMatrix() - reset ModelWorld matrix to identity for consistency with FFP.

7 years ago0027721: Add possibility to read STEP file with invalid shape_representation entity.
ika [Thu, 28 Jul 2016 13:13:25 +0000 (16:13 +0300)]
0027721: Add possibility to read STEP file with invalid shape_representation entity.

Add special parameter, which allow reading of all top level (not shared by any other entities) solids (manifold_solid_brep) and shells (shell_based_surface_model).

The examples how to use a new parameter:

DRAW:
switch on a parameter:
    param read.step.all.shapes On
update model to apply new parameter value:
    newmodel
read as usual:
    stepread test.stp res * // each top level solid or shell will be read as res_i shape.
    or
    ReadStep Doc test.stp

CXX Code:
switch on a parameter:
    Interface_Static::SetIVal("read.step.all.shapes", 1);
read as usual

7 years ago0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque...
kgv [Fri, 29 Jul 2016 09:45:41 +0000 (12:45 +0300)]
0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input

7 years ago0027718: Class GeomPlate_CurveConstraint contains two same constructors
nbv [Wed, 27 Jul 2016 16:12:28 +0000 (19:12 +0300)]
0027718: Class GeomPlate_CurveConstraint contains two same constructors

Two constructors have been combined to one.

7 years agoUpdate test cases after integration issue 27707
bugmaster [Fri, 29 Jul 2016 08:57:45 +0000 (11:57 +0300)]
Update test cases after integration issue 27707

7 years agoElimination of compiler warning on VC++ 2015 after integration 27448
bugmaster [Fri, 29 Jul 2016 08:39:08 +0000 (11:39 +0300)]
Elimination of compiler warning on VC++ 2015 after integration 27448

7 years ago0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
kgv [Tue, 26 Jul 2016 19:08:39 +0000 (22:08 +0300)]
0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default

OpenGl_Caps - flag ffpEnable is now initialized to false on desktop OpenGL.
OpenGl_Context::init() - now prints error if OpenGL version does not support GLSL
and switches OpenGl_Caps::ffpEnable to true.

update test cases

7 years ago0027704: Numeric inaccuracy due to huge extension of the offset faces
emv [Fri, 22 Jul 2016 08:53:07 +0000 (11:53 +0300)]
0027704: Numeric inaccuracy due to huge extension of the offset faces

The max extension value of the faces in offset operation has been decreased
to 1.e+7 value to avoid the lack of precision in the calculations.

Update of test cases according to the new behavior

7 years ago0027706: Foundation Classes - OSD_Path::DownTrek() crashes on empty argument
ibs [Fri, 22 Jul 2016 13:02:30 +0000 (16:02 +0300)]
0027706: Foundation Classes - OSD_Path::DownTrek() crashes on empty argument

a required check added

7 years ago0027552: Wire creation fails depending on the order of edges
isn [Mon, 20 Jun 2016 12:58:05 +0000 (15:58 +0300)]
0027552: Wire creation fails depending on the order of edges

1) BRepBuilderAPI_MakeWire::Add (const TopTools_ListOfShape &L) method have been completely rewritten. The order of edges is not significant now.
2) The geometric proximity of free vertices from already existing wire and from input list of edges are also have been taken into account. If such vertices are coincident with each other then they are fused into the one. The original wire remains untouched topologically (yet the tolerances and points can be modified).
3) UBTreeFiller is used to speed up the process of picking of coincident vertices.
4) BRepLib now contains the 'new' method - BoundingVertex(..). The implemenation of this method are taken from BOPTools_AlgoTools::MakeVertex(..).
5) The '-unsorted' argument have been added to 'wire' command.

Conflicts:
src/QABugs/QABugs_20.cxx

Add missing include.

Eliminate warning.

7 years ago0027448: BOPTools_AlgoTools::IsMicroEdge does not correspond to shape validity criteria
emv [Wed, 4 May 2016 13:42:55 +0000 (16:42 +0300)]
0027448: BOPTools_AlgoTools::IsMicroEdge does not correspond to shape validity criteria

1. IntTools_ShrunkRange::Perform
The algorithm of building shrunk range on the edge has been redesigned to make this range as big as possible.
By new definition it has to have the length not less than Precision::Confusion().
Although, the possibility of splitting of the edge has been taken into account. If it is impossible to put
vertex on edge in such a way that the tolerance spheres of the edge's vertices do not intersect the tolerance
sphere of the putting vertex the edge cannot be split. This possibility is saved in the new field
IntTools_ShrunkRange::myIsSplittable. It can be checked by the corresponding method IntTools_ShrunkRange::IsSplittable().
It returns TRUE if the shrunk range is computed successfully and it has the length more than the value of sum of two tolerance
values of the edge (for putting vertex, as its tolerance should not be less than the tolerance value of edge) and
two Precision::Confusion() values (to make two new edges valid by Shape validity criteria).

IntTools_ShrunkRange::myErrorStatus and IntTools_ShrunkRange::ErrorStatus() have been replaced by
the IntTools_ShrunkRange::myIsDone and IntTools_ShrunkRange::IsDone(). IntTools_ShrunkRange::IsDone() returns TRUE
if the shrunk range has been computed and it has length more than Precision::Confusion().

All computations of the parameters are performed using the GCPnts_AbscissaPoint, but if AbscissaPoint is unable to
compute the parameters the Resolution of the curve is used.

2. Boolean Operations algorithm now partially works with the edges that cannot be split or does not have the ShrunkData
at all (previously such edges have been considered as micro and just ignored). If by the result of some intersection such
edges should be split, i.e. the intersection vertex should be created, the algorithm just ignores them and no vertex is created.
But if such edges coincide with other shapes (other edges or faces) the algorithm uses them for creation of common blocks.
The information of the possibility for the edges to be split is saved in its PaveBlocks, in the new BOPDS_PaveBlock::myIsSplittable field.
It can be retrieved by the BOPDS_PaveBlock::IsSplittable() or BOPDS_PaveBlock::ShrunkData(), but these methods
make sense only after filling of the shrunk data for the pave block.

BOPTools_AlgoTools::IsMicroEdge() has an additional parameter that defines whether it is necessary to take into account
the possibility for the edge to be split or not. By default it is set to TRUE, i.e. by default the edge will be considered as micro
even if the shrunk range is computed, but it is too short for the edge to be split.

3. BOPAlgo_PaveFiller::PerformEF
To avoid creation of too close intersection vertices the intersection ranges of the edges participating in Edge/Face
intersections are reduced taking into account the common ranges computed during Edge/Edge intersections.
Thus, the Edge/Face intersection vertex is not created if it gets into a common range of the Edge/Edge intersection
between that edge and one of the face's edges. The tolerance value of Edge/Edge intersection vertex is increased
to reach the Edge/Face intersection.

4. Unification of the vertices of the section edges considered as micro edges.
If by the result of some Face/Face intersection the section edge is considered as micro edge,
the vertices of this edge will be united and the edge itself will be removed.

5. Test cases for the issues.

6. Adjusting test cases for issue CR27448.

7 years ago0027703: BinTools_ShapeSet stream read bug
msv [Fri, 22 Jul 2016 09:07:24 +0000 (12:07 +0300)]
0027703: BinTools_ShapeSet stream read bug

Avoid out of array bounds read/write.

7 years ago0026270: GeomFill_NSections constructor crash
ema [Fri, 8 Jul 2016 11:01:12 +0000 (14:01 +0300)]
0026270: GeomFill_NSections constructor crash

Correction of code to avoid of usage of undefined associated parameters in order not to get exception in constructor.
Creation of test case for this issue

7 years ago0027684: Coding rules - drop unused declarations from Graphic3d
kgv [Sat, 16 Jul 2016 12:57:23 +0000 (15:57 +0300)]
0027684: Coding rules - drop unused declarations from Graphic3d

The following headers have been removed:
- Graphic3d_TypeOfPolygon
- Graphic3d_TypeOfPrimitive
- Graphic3d_Array1OfVector.hxx
- Graphic3d_Array1OfVertex.hxx
- Graphic3d_Array2OfVertex.hxx
- Graphic3d_CBitFields4.hxx
- Graphic3d_CBitFields8.hxx
- Graphic3d_CBitFields16.hxx
- Graphic3d_CBitFields20.hxx
- Graphic3d_CStructurePtr.hxx
- Graphic3d_CycleError.hxx
- Graphic3d_DataStructure.pxx
- Graphic3d_HSequenceOfStructure.hxx
- Graphic3d_InitialisationError.hxx
- Graphic3d_ListIteratorOfListOfShortReal.hxx
- Graphic3d_ListOfShortReal.hxx
- Graphic3d_NListOfHAsciiString.hxx
- Graphic3d_StructureManagerPtr.hxx
- Graphic3d_StructurePtr.hxx

Graphic3d_StructureManager - remove default aspects, which have been never used.

do not include non-existing header Graphic3d_Array1OfVertex.hxx from MFC sample

Graphic3d_Group::MinMaxValues() - add missing Standard_EXPORT

7 years ago0024056: error LNK2019: unresolved external symbol
isn [Fri, 15 Jul 2016 15:37:53 +0000 (18:37 +0300)]
0024056: error LNK2019: unresolved external symbol

Clean out the TopOpeBRep* classes

Remove unused private fields.

7 years ago0027682: Visualization - provide method Prs3d_Drawer::SetShaderProgram() for setting...
kgv [Sun, 17 Jul 2016 13:53:43 +0000 (16:53 +0300)]
0027682: Visualization - provide method Prs3d_Drawer::SetShaderProgram() for setting program

AIS_ColoredDrawer has been moved to dedicated file.
AIS_ColoredShape::CustomAspectsMap() - added public method for accessing aspects map.

AIS_InteractiveObject::SynchronizeAspects() - added method for synchronizing
all primitive aspects at low-level (TKOpenGl) after their modification.

7 years ago0027679: Wrong offset: overlapping edges
ifv [Fri, 15 Jul 2016 07:42:09 +0000 (10:42 +0300)]
0027679: Wrong offset: overlapping edges

Method BRepFill_OffsetWire::UpdateDetromp(...) is modified for correct treatment of closed bisectors.

Test case for issue #27679

7 years ago0027199: Unifysamedomain regression issue in OCCT 7
isn [Thu, 14 Jul 2016 14:39:03 +0000 (17:39 +0300)]
0027199: Unifysamedomain regression issue in OCCT 7

Allow to process the compounds in UnifySameDomain algorithm. Earlier only faces from shells were allowed to be unified.

Test case for issue #27199

7 years ago0027677: Incorrect CUT of a solid by semi-infinite solid
azv [Mon, 18 Jul 2016 06:33:53 +0000 (09:33 +0300)]
0027677: Incorrect CUT of a solid by semi-infinite solid

The problem of incorrect CUT is wrong Pcurve after projection onto cylinder of a small edge orthogonal to cylinder's axis. The result of projection is a line along V direction, but it should be along U.

ProjLib_Cylinder has no specific functionality to build projection in most common case, so it should return "not done" flag to start projection based on curve approximation.

Following changes are done:
1. ProjLib_Cylinder returns isDone=false in the following cases:
  * the projected line is not parallel to cylinder's axis
  * the plane of projected circle is not orthogonal to cylinder's axis
2. Test case added

Minor correction of test case