mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Test for 0023176: Intersection of cylinder and cone produces open curve
This commit is contained in:
parent
b4fd9d00c2
commit
63bd365eed
@ -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 <DDocStd.hxx>
|
||||
#include <DBRep.hxx>
|
||||
|
@ -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 <Standard_NullObject.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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
43
tests/bugs/modalg_7/bug23176
Normal file
43
tests/bugs/modalg_7/bug23176
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user