diff --git a/src/DDocStd/DDocStd_ShapeSchemaCommands.cxx b/src/DDocStd/DDocStd_ShapeSchemaCommands.cxx index 649f82fb31..21ead8f997 100644 --- a/src/DDocStd/DDocStd_ShapeSchemaCommands.cxx +++ b/src/DDocStd/DDocStd_ShapeSchemaCommands.cxx @@ -1,3 +1,17 @@ +// Created on: 2017-03-28 +// Created by: Sergey NIKONOV +// Copyright (c) 2000-2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. #include #include diff --git a/src/ShapePersistent/ShapePersistent_Geom2d.cxx b/src/ShapePersistent/ShapePersistent_Geom2d.cxx index 45735b1edd..36574476ab 100644 --- a/src/ShapePersistent/ShapePersistent_Geom2d.cxx +++ b/src/ShapePersistent/ShapePersistent_Geom2d.cxx @@ -1,3 +1,15 @@ +// Copyright (c) 2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. #include diff --git a/src/ShapePersistent/ShapePersistent_TriangleMode.hxx b/src/ShapePersistent/ShapePersistent_TriangleMode.hxx index 336b7029b7..c537d4cf34 100644 --- a/src/ShapePersistent/ShapePersistent_TriangleMode.hxx +++ b/src/ShapePersistent/ShapePersistent_TriangleMode.hxx @@ -1,3 +1,16 @@ +// Copyright (c) 2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. + #ifndef _ShapePersistent_TriangleMode_HeaderFile #define _ShapePersistent_TriangleMode_HeaderFile diff --git a/src/StdObjMgt/StdObjMgt_TransientPersistentMap.hxx b/src/StdObjMgt/StdObjMgt_TransientPersistentMap.hxx index 9af876d8ee..282f529208 100644 --- a/src/StdObjMgt/StdObjMgt_TransientPersistentMap.hxx +++ b/src/StdObjMgt/StdObjMgt_TransientPersistentMap.hxx @@ -1,3 +1,16 @@ +// Copyright (c) 2015 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. + #ifndef _StdObjMgt_TransientPersistentMap_HeaderFile #define _StdObjMgt_TransientPersistentMap_HeaderFile diff --git a/src/StdStorage/StdStorage_HSequenceOfRoots.hxx b/src/StdStorage/StdStorage_HSequenceOfRoots.hxx index 62e33a3b34..d457dd77e4 100644 --- a/src/StdStorage/StdStorage_HSequenceOfRoots.hxx +++ b/src/StdStorage/StdStorage_HSequenceOfRoots.hxx @@ -1,3 +1,16 @@ +// Copyright (c) 2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. + #ifndef StdStorage_HSequenceOfRoots_HeaderFile #define StdStorage_HSequenceOfRoots_HeaderFile diff --git a/src/StdStorage/StdStorage_MapOfRoots.hxx b/src/StdStorage/StdStorage_MapOfRoots.hxx index a4824945dc..088d1883ab 100644 --- a/src/StdStorage/StdStorage_MapOfRoots.hxx +++ b/src/StdStorage/StdStorage_MapOfRoots.hxx @@ -1,3 +1,16 @@ +// Copyright (c) 2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. + #ifndef StdStorage_MapOfRoots_HeaderFile #define StdStorage_MapOfRoots_HeaderFile diff --git a/src/StdStorage/StdStorage_SequenceOfRoots.hxx b/src/StdStorage/StdStorage_SequenceOfRoots.hxx index 5fe2128ed0..e9a12636db 100644 --- a/src/StdStorage/StdStorage_SequenceOfRoots.hxx +++ b/src/StdStorage/StdStorage_SequenceOfRoots.hxx @@ -1,3 +1,16 @@ +// Copyright (c) 2017 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. + #ifndef StdStorage_SequenceOfRoots_HeaderFile #define StdStorage_SequenceOfRoots_HeaderFile diff --git a/src/XDEDRAW/XDEDRAW_Views.hxx b/src/XDEDRAW/XDEDRAW_Views.hxx index ab47937795..feb5d4d10f 100644 --- a/src/XDEDRAW/XDEDRAW_Views.hxx +++ b/src/XDEDRAW/XDEDRAW_Views.hxx @@ -2,15 +2,15 @@ // Created by: Irina KRYLOVA // Copyright (c) 2016 OPEN CASCADE SAS // -// This file is part Open CASCADE Technology software library. +// This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under -// the terms the GNU Lesser General Public License version 2.1 as published +// the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text the license and disclaimer any warranty. +// distribution for complete text of the license and disclaimer of any warranty. // -// Alternatively, this file may be used under the terms Open CASCADE +// Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _XDEDRAW_Views_HeaderFile diff --git a/tests/bugs/modalg_7/bug23176 b/tests/bugs/modalg_7/bug23176 new file mode 100644 index 0000000000..454432023a --- /dev/null +++ b/tests/bugs/modalg_7/bug23176 @@ -0,0 +1,43 @@ +puts "================" +puts "OCC23176" +puts "================" +puts "" +####################################################################### +# Intersection of cylinder and cone produces open curve +####################################################################### + +restore [locate_data_file bug23176_surface1_draw.draw] s1 +restore [locate_data_file bug23176_surface2_draw.draw] s2 + +intersect result s1 s2 + +# first result curve +cvalue result_1 0 x y z +vertex v0 x y z +cvalue result_1 1 x y z +vertex v1 x y z + +# second result curve +cvalue result_2 0 x y z +vertex v2 x y z +cvalue result_2 1 x y z +vertex v3 x y z + +set tol_abs_dist 1.0e-7 +set tol_rel_dist 0.001 + +distmini d_f v0 v1 +regexp {([-0-9.+eE]+)} [dump d_f_val] full dist_1 +set expected_dist_1 408.093320004435 +checkreal "Length first curve" ${dist_1} ${expected_dist_1} ${tol_abs_dist} ${tol_rel_dist} + +distmini d_s v2 v3 +regexp {([-0-9.+eE]+)} [dump d_s_val] full dist_2 +set expected_dist_2 408.093320004435 +checkreal "Length second curve" ${dist_2} ${expected_dist_2} ${tol_abs_dist} ${tol_rel_dist} + +smallview +donly result* +fit +display s1 s2 +checkview -screenshot -2d -path ${imagedir}/${test_image}.png