rkv [Tue, 23 Aug 2016 12:52:11 +0000 (15:52 +0300)]
0027567: VIS - possible memory leaks due to use of plain pointers: Fix also the VIS guide. Add the test v3d/ivtk/bug27567. Add a draw command "ivtkremove".
0027734: Configuration - TKIVtkDraw build fails with TBB: Remove unnecessary define statement (windows specific).
Small correction of test case for issue CR27567
kgv [Sun, 4 Sep 2016 11:31:47 +0000 (14:31 +0300)]
0027838: Foundation Classes - support wchar_t* input within TCollection_AsciiString and TCollection_ExtendedString
TCollection_ExtendedString/TCollection_AsciiString description
has been updated to reflect usage of this classes for Unicode strings.
TCollection_ExtendedString now defines constructor taking wchar_t* (all platforms)
and method ::ToWideString() returning wchar_t* (Windows only).
TCollection_AsciiString now defines constructor taking wchar_t*.
TCollection_ExtendedString/TCollection_AsciiString now defines
auxiliary methods ::StartsWith() and ::EndsWith().
TCollection_ExtendedString internals has been updated to eliminate
duplicated code for converting between UTF-16 and UTF-8.
Code has been cleaned up from redundant explicit conversions to wchar_t*.
Global method OSD_OpenStream()/OSD_OpenFileBuf() have been replaced
by C++ template to eliminate copy-paste for different STL collections.
OSD_SharedLibrary now uses wide-char system API call LoadLibraryExW()
on Windows for consistency.
New macro Standard_UNUSED has been added for marking possibly unused functions and variables
(to suppress gcc/clang compiler warnings).
ika [Tue, 13 Sep 2016 07:47:23 +0000 (10:47 +0300)]
0027808: Some geometric_tolerances are not imported.
Process datum_feature entity during collecting shape_aspects of GDT.
Update test cases.
msv [Thu, 8 Sep 2016 19:57:50 +0000 (22:57 +0300)]
0027830: Infinite HLR looping
Make protection of HLR algo against garbage data in faces. In particular case, there are faces built on a periodical surfaces, which U bounds exceed period thousands times. Such faces are excluded from the process of edges hiding.
In addition, while fitting the intersection point in period for periodical faces, replace looping with the single call to AdjustPeriodic method.
- Add new test case.
- Update tests of HLR according to new numbers of subshapes.
Update of test cases according to the new behavior
Sergey Solomin [Tue, 13 Sep 2016 08:07:03 +0000 (11:07 +0300)]
0027867: Visualization - AIS_InteractiveContext::HasSelectedShape() returns true if selected interactive is instance of AIS_Shape only
kgv [Sat, 10 Sep 2016 12:38:05 +0000 (15:38 +0300)]
0027861: Configuration - include ApplicationFramework to UWP list
bugmaster [Wed, 14 Sep 2016 11:22:59 +0000 (14:22 +0300)]
0022037: Exception (Construction Error) during splitting face with hole by another face
Adding test case
bugmaster [Wed, 14 Sep 2016 09:20:37 +0000 (12:20 +0300)]
0025138: SIGSEGV when sweeping along helix
Adding test case
kgv [Wed, 14 Sep 2016 10:44:47 +0000 (13:44 +0300)]
0027816: Visualization - provide an API for overriding clipping planes list
Graphic3d_SequenceOfHClipPlane now inherits Standard_Transient.
PrsMgr_PresentableObject, Graphic3d_Structure, Graphic3d_CStructure,
V3d_View, OpenGl_View now manages the plane list by Handle.
The getters ::GetClipPlanes() has been removed,
setters taking non-handle ::SetClipPlanes() has been marked deprecated.
OpenGl_Structure::Render() and SelectMgr_ViewerSelector::checkOverlap()
now disable global (view) clipping planes for objects
with flags Graphic3d_TMF_TriedronPers and Graphic3d_TMF_2d
or with new flag Graphic3d_SequenceOfHClipPlane::ToOverrideGlobal().
OpenGl_Clipping now implements interface for managing clipping planes
without copying the sequences.
The filtering of duplicates is no more performed by OpenGl_Clipping
- application is responsible to not do this.
OpenGl_Clipping tries avoiding unnecessary allocations for managing
list of active planes.
MFC sample has been updated to use V3d_View::ClipPlanes() method.
msv [Mon, 12 Sep 2016 07:21:53 +0000 (10:21 +0300)]
0027862: Exception in BRepOffsetAPI_MakePipeShell
Check if the shape is not null before querying its ShapeType.
Create test case for the bug.
Small correction of test case for issue CR27862
kgv [Thu, 8 Sep 2016 19:54:54 +0000 (22:54 +0300)]
0027854: Foundation Classes - OSD_Parallel::NbLogicalProcessors() should handle Android specifically
Read CPU info from sysfs.
kgv [Mon, 12 Sep 2016 06:54:55 +0000 (09:54 +0300)]
0027844: Foundation Classes - remove method OSD_File::Print()
kgv [Thu, 8 Sep 2016 14:16:56 +0000 (17:16 +0300)]
0027853: Visualization, OpenGl_Texture - optimize sequential upload of texture image
Graphic3d_TextureRoot - added methods Revision() and UpdateRevision()
for marking updates in texture data source.
OpenGl_AspectFace handles Graphic3d_TextureRoot::Revision() changes.
OpenGl_Texture::Init() now patches already allocated texture image when possible.
Graphic3d_Texture2D - added methods HasMipMaps()/SetMipMaps()
for configuring MipMap usage (as alternative to sub-classing).
nbv [Mon, 12 Sep 2016 14:48:59 +0000 (17:48 +0300)]
0027851: Wrong result of classification of the point relative to the solid
Test case creation.
razmyslovich [Mon, 12 Sep 2016 09:17:48 +0000 (11:17 +0200)]
0027863: Geom_BSplineSurface::SetVKnot(const Standard_Integer, const Standard_Real) has no effect
Fix Geom_BSplineSurface::SetVKnot function to have the same behavior as SetUKnot.
apl [Fri, 9 Sep 2016 12:53:58 +0000 (15:53 +0300)]
0027739: Visualization, TKV3d - implement individual acceleration data structure for selection of 2D persistent objects
Low-level selection algorithms has been improved to explicitly support 2D
transformation persistent objects. This patch generally touches:
1) SelectMgr_SelectableObjectSet - the lists of objects has been split onto three
subsets (regular, 3d-persistent, 2d-persistent). Each subset has individual BVH
tree. The algorithms are now have more flexibility to update only those trees
that is really required for actual camera state.
2) SelectMgr_ViewerSelector - explicitly supports Eye space selection operations
on BVH tree for 2d-persistent subset. Change of camera position does not
anymore affect acceleration data structure (BVH tree) of 2d-persistent selectable objects.
3) Other classes from SelectMgr have been fine-tuned to provide appropriate API.
Porting notes:
This patch touches very low-level selection classes. If the low-level features were used
the following modifications may need to be considered for porting:
1) Iteration over objects of SelectMgr_SelectableObjectSet should now
be implemented with corresponding Iterator class.
2) SelectMgr_BaseFrustum::ScaleAndTransform and derived classes return
Handle(SelectMgr_BaseFrustum) instead of NCollection_Handle<> type.
Small correction of test case for issue CR27739
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
bugmaster [Fri, 9 Sep 2016 13:10:56 +0000 (16:10 +0300)]
0025423: Incorrect result of splitting some shapes
Adding testing case
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
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
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
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.
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.
bugmaster [Wed, 7 Sep 2016 12:11:32 +0000 (15:11 +0300)]
0025152: Incorrect result of Boolean Union by BRepAlgoAPI_Fuse
Adding testing case
bugmaster [Wed, 7 Sep 2016 10:28:59 +0000 (13:28 +0300)]
0025102: A part of intersection cannot be found
Adding testing case
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.
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.
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).
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.
bugmaster [Wed, 7 Sep 2016 07:32:49 +0000 (10:32 +0300)]
0025055: Incorrect shape copying in BRepBuilderAPI_Copy
Adding testing case
mpv [Mon, 5 Sep 2016 10:27:40 +0000 (13:27 +0300)]
0025534: TObj_Application unicode path issue.
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.
san [Fri, 26 Aug 2016 16:04:23 +0000 (19:04 +0300)]
0027815: Visualization, TKV3d - AIS_InteractiveContext has inconsistent display mode API
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.
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.
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
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.
kgv [Sun, 28 Aug 2016 16:21:13 +0000 (19:21 +0300)]
0027817: Visualization, StdSelect_BRepOwner - copy transformation persistence flag
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
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.
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.
oan [Thu, 25 Aug 2016 13:46:13 +0000 (16:46 +0300)]
0027810: Compilation error on NCollection_UBTree::Kill()
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.
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
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.
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
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
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
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.
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
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
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.
kgv [Tue, 23 Aug 2016 12:00:50 +0000 (15:00 +0300)]
0027801: Configuration - fix compilation of Standard.cxx when using MinGW-W64
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.
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.
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.
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
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.
bugmaster [Fri, 19 Aug 2016 13:44:19 +0000 (16:44 +0300)]
0023585: Boolean Fuse Operation Fails.
Adding test case
bugmaster [Fri, 19 Aug 2016 06:55:06 +0000 (09:55 +0300)]
0022794: Boolean Cut operation produces incorrect result.
Adding testing case
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-
bugmaster [Wed, 17 Aug 2016 13:32:01 +0000 (16:32 +0300)]
0022634: Cut operation on closed solids returns opened one
Adding testing cases
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.
bugmaster [Mon, 15 Aug 2016 12:53:02 +0000 (15:53 +0300)]
0021246: checkshape command does not return faulty shapes.
Adding testing case
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.
bugmaster [Tue, 16 Aug 2016 10:58:32 +0000 (13:58 +0300)]
0008040: Offset direction is wrong for a closed circle
Adding testing case
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.
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.
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
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.
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
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.
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
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.
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.
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.
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
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
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.
kgv [Fri, 5 Aug 2016 19:05:19 +0000 (19:05 +0000)]
0027754: Configuration - fix compilation of Standard.cxx on non-x86 desktop systems
kgv [Sat, 6 Aug 2016 11:07:54 +0000 (14:07 +0300)]
0027563: Foundation Classes, opencascade::handle - make operator*() consistent with operator->()
bugmaster [Mon, 8 Aug 2016 09:55:39 +0000 (12:55 +0300)]
0021427: Invalid result of cutting attached shapes
Adding test case
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.
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.
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
kgv [Wed, 3 Aug 2016 09:53:30 +0000 (12:53 +0300)]
0027749: Configuration - drop remaining occurences of GLU dependency
emv [Wed, 3 Aug 2016 08:04:46 +0000 (11:04 +0300)]
0027746: Incomplete result of SECTION operation
Test cases for the issue.
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.
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.
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.
isk [Mon, 1 Aug 2016 12:30:40 +0000 (15:30 +0300)]
0027680: Visualization - AIS_InteractiveContext::Remove() should remove all presentation of the object
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.
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.
san [Mon, 1 Aug 2016 15:10:55 +0000 (18:10 +0300)]
0027717: Visualization - drop broken Prs3d_Drawer::ShadingAspectGlobal() flag
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.
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.
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().
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.
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
kgv [Fri, 29 Jul 2016 09:45:41 +0000 (12:45 +0300)]
0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input