|
|
|||
File indexing completed on 2026-09-15 09:14:53
0001 // Created on: 1992-10-19 0002 // Created by: Remi GILET 0003 // Copyright (c) 1992-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Bisector_Bisec_HeaderFile 0018 #define _Bisector_Bisec_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <GeomAbs_JoinType.hxx> 0025 class Geom2d_TrimmedCurve; 0026 class Geom2d_Curve; 0027 class gp_Pnt2d; 0028 class gp_Vec2d; 0029 class Geom2d_Point; 0030 0031 //! Bisec provides the bisecting line between two elements 0032 //! This line is trimmed by a point <P> and it's contained in the domain 0033 //! defined by the two vectors <V1>, <V2> and <Sense>. 0034 //! 0035 //! Definition of the domain: 0036 //! if <Sense> is true the bisecting line is contained in the sector 0037 //! defined by <-V1> and <-V2> in the sense indirect. 0038 //! if <Sense> is false the bisecting line is contained in the sector 0039 //! defined by <-V1> and <-V2> in the sense direct. 0040 //! 0041 //! <Tolerance> is used to define degenerate bisector. 0042 //! if the bisector is an hyperbola and one of this radius is smaller 0043 //! than <Tolerance>, the bisector is replaced by a line or semi_line 0044 //! corresponding to one of hyperbola's axes. 0045 //! if the bisector is a parabola on the focal length is smaller than 0046 //! <Tolerance>, the bisector is replaced by a semi_line corresponding 0047 //! to the axe of symmetry of the parabola. 0048 //! if the bisector is an ellipse and the minor radius is smaller than 0049 //! <Tolerance>, the bisector is replaced by a segment corresponding 0050 //! to the great axe of the ellipse. 0051 class Bisector_Bisec 0052 { 0053 public: 0054 DEFINE_STANDARD_ALLOC 0055 0056 Standard_EXPORT Bisector_Bisec(); 0057 0058 //! Performs the bisecting line between the curves 0059 //! <Cu1> and <Cu2>. 0060 //! <oncurve> is True if the point <P> is common to <Cu1> 0061 //! and <Cu2>. 0062 Standard_EXPORT void Perform(const occ::handle<Geom2d_Curve>& Cu1, 0063 const occ::handle<Geom2d_Curve>& Cu2, 0064 const gp_Pnt2d& P, 0065 const gp_Vec2d& V1, 0066 const gp_Vec2d& V2, 0067 const double Sense, 0068 const GeomAbs_JoinType ajointype, 0069 const double Tolerance, 0070 const bool oncurve = true); 0071 0072 //! Performs the bisecting line between the curve 0073 //! <Cu1> and the point <Pnt>. 0074 //! <oncurve> is True if the point <P> is the point <Pnt>. 0075 Standard_EXPORT void Perform(const occ::handle<Geom2d_Curve>& Cu, 0076 const occ::handle<Geom2d_Point>& Pnt, 0077 const gp_Pnt2d& P, 0078 const gp_Vec2d& V1, 0079 const gp_Vec2d& V2, 0080 const double Sense, 0081 const double Tolerance, 0082 const bool oncurve = true); 0083 0084 //! Performs the bisecting line between the curve 0085 //! <Cu> and the point <Pnt>. 0086 //! <oncurve> is True if the point <P> is the point <Pnt>. 0087 Standard_EXPORT void Perform(const occ::handle<Geom2d_Point>& Pnt, 0088 const occ::handle<Geom2d_Curve>& Cu, 0089 const gp_Pnt2d& P, 0090 const gp_Vec2d& V1, 0091 const gp_Vec2d& V2, 0092 const double Sense, 0093 const double Tolerance, 0094 const bool oncurve = true); 0095 0096 //! Performs the bisecting line between the two points 0097 //! <Pnt1> and <Pnt2>. 0098 Standard_EXPORT void Perform(const occ::handle<Geom2d_Point>& Pnt1, 0099 const occ::handle<Geom2d_Point>& Pnt2, 0100 const gp_Pnt2d& P, 0101 const gp_Vec2d& V1, 0102 const gp_Vec2d& V2, 0103 const double Sense, 0104 const double Tolerance = 0.0, 0105 const bool oncurve = true); 0106 0107 //! Returns the Curve of <me>. 0108 Standard_EXPORT const occ::handle<Geom2d_TrimmedCurve>& Value() const; 0109 0110 //! Returns the Curve of <me>. 0111 Standard_EXPORT const occ::handle<Geom2d_TrimmedCurve>& ChangeValue(); 0112 0113 private: 0114 occ::handle<Geom2d_TrimmedCurve> thebisector; 0115 }; 0116 0117 #endif // _Bisector_Bisec_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|