|
|
|||
File indexing completed on 2026-09-27 09:17:10
0001 // Created on: 1995-10-12 0002 // Created by: Bruno DUMORTIER 0003 // Copyright (c) 1995-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 _BRepOffset_HeaderFile 0018 #define _BRepOffset_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <BRepOffset_Status.hxx> 0025 0026 class Geom_Surface; 0027 class TopoDS_Face; 0028 0029 //! Auxiliary tools for offset algorithms 0030 0031 class BRepOffset 0032 { 0033 public: 0034 //! returns the Offset surface computed from the 0035 //! surface <Surface> at an OffsetDistance <Offset>. 0036 //! 0037 //! If possible, this method returns the real type of 0038 //! the surface ( e.g. An Offset of a plane is a plane). 0039 //! 0040 //! If no particular case is detected, the returned 0041 //! surface will have the Type Geom_OffsetSurface. 0042 //! Parameter allowC0 is then passed as last argument to 0043 //! constructor of Geom_OffsetSurface. 0044 Standard_EXPORT static occ::handle<Geom_Surface> Surface(const occ::handle<Geom_Surface>& Surface, 0045 const double Offset, 0046 BRepOffset_Status& theStatus, 0047 bool allowC0 = false); 0048 0049 //! Preprocess surface to be offset (bspline, bezier, or revolution based on 0050 //! bspline or bezier curve), by collapsing each singular side to single point. 0051 //! 0052 //! This is to avoid possible flipping of normal at the singularity 0053 //! of the surface due to non-zero distance between the poles that 0054 //! logically should be in one point (singularity). 0055 //! 0056 //! The (parametric) side of the surface is considered to be singularity if face 0057 //! has degenerated edge whose vertex encompasses (by its tolerance) all points on that side, 0058 //! or if all poles defining that side fit into sphere with radius thePrecision. 0059 //! 0060 //! Returns either original surface or its modified copy (if some poles have been moved). 0061 Standard_EXPORT static occ::handle<Geom_Surface> CollapseSingularities( 0062 const occ::handle<Geom_Surface>& theSurface, 0063 const TopoDS_Face& theFace, 0064 double thePrecision); 0065 }; 0066 0067 #endif // _BRepOffset_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|