|
|
|||
File indexing completed on 2026-07-24 09:16:20
0001 // Created on: 1992-09-28 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 _GC_MakeCylindricalSurface_HeaderFile 0018 #define _GC_MakeCylindricalSurface_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <GC_Root.hxx> 0025 #include <Geom_CylindricalSurface.hxx> 0026 0027 class gp_Ax2; 0028 class gp_Cylinder; 0029 class gp_Pnt; 0030 class gp_Ax1; 0031 class gp_Circ; 0032 0033 //! This class implements the following algorithms used 0034 //! to create a CylindricalSurface from Geom. 0035 //! * Create a CylindricalSurface parallel to another and 0036 //! passing through a point. 0037 //! * Create a CylindricalSurface parallel to another at a 0038 //! distance 0039 //! <Dist>. 0040 //! * Create a CylindricalSurface passing through 3 points. 0041 //! * Create a CylindricalSurface by its axis and radius. 0042 //! * Create a cylindricalSurface by its circular base. 0043 //! The local coordinate system of the CylindricalSurface is defined 0044 //! with an axis placement (see class ElementarySurface). 0045 //! 0046 //! The "ZAxis" is the symmetry axis of the CylindricalSurface, 0047 //! it gives the direction of increasing parametric value V. 0048 //! 0049 //! The parametrization range is : 0050 //! U [0, 2*PI], V ]- infinite, + infinite[ 0051 //! 0052 //! The "XAxis" and the "YAxis" define the placement plane of the 0053 //! surface (Z = 0, and parametric value V = 0) perpendicular to 0054 //! the symmetry axis. The "XAxis" defines the origin of the 0055 //! parameter U = 0. The trigonometric sense gives the positive 0056 //! orientation for the parameter U. 0057 class GC_MakeCylindricalSurface : public GC_Root 0058 { 0059 public: 0060 DEFINE_STANDARD_ALLOC 0061 0062 //! A2 defines the local coordinate system of the cylindrical surface. 0063 //! The "ZDirection" of A2 defines the direction of the surface's 0064 //! axis of symmetry. 0065 //! At the creation the parametrization of the surface is defined 0066 //! such that the normal Vector (N = D1U ^ D1V) is oriented towards 0067 //! the "outside region" of the surface. 0068 //! Warnings : 0069 //! It is not forbidden to create a cylindrical surface with 0070 //! Radius = 0.0 0071 //! Status is "NegativeRadius" if Radius < 0.0 0072 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Ax2& A2, const Standard_Real Radius); 0073 0074 //! Creates a CylindricalSurface from a non persistent Cylinder 0075 //! from package gp. 0076 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Cylinder& C); 0077 0078 //! Make a CylindricalSurface from Geom <TheCylinder> 0079 //! parallel to another 0080 //! CylindricalSurface <Cylinder> and passing through a 0081 //! Pnt <Point>. 0082 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, const gp_Pnt& Point); 0083 0084 //! Make a CylindricalSurface from Geom <TheCylinder> 0085 //! parallel to another 0086 //! CylindricalSurface <Cylinder> at the distance <Dist> 0087 //! which can be greater or lower than zero. 0088 //! The radius of the result is the absolute value of the 0089 //! radius of <Cyl> plus <Dist> 0090 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, const Standard_Real Dist); 0091 0092 //! Make a CylindricalSurface from Geom <TheCylinder> 0093 //! passing through 3 Pnt <P1>,<P2>,<P3>. 0094 //! Its axis is <P1P2> and its radius is the distance 0095 //! between <P3> and <P1P2> 0096 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3); 0097 0098 //! Make a CylindricalSurface by its axis <Axis> and radius 0099 //! <Radius>. 0100 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Ax1& Axis, const Standard_Real Radius); 0101 0102 //! Make a CylindricalSurface by its circular base. 0103 Standard_EXPORT GC_MakeCylindricalSurface(const gp_Circ& Circ); 0104 0105 //! Returns the constructed cylinder. 0106 //! Exceptions StdFail_NotDone if no cylinder is constructed. 0107 Standard_EXPORT const Handle(Geom_CylindricalSurface)& Value() const; 0108 0109 operator const Handle(Geom_CylindricalSurface) & () const { return Value(); } 0110 0111 private: 0112 Handle(Geom_CylindricalSurface) TheCylinder; 0113 }; 0114 0115 #endif // _GC_MakeCylindricalSurface_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|