|
|
|||
File indexing completed on 2026-06-24 08:28:20
0001 // Created on: 1994-02-16 0002 // Created by: Remi LEQUETTE 0003 // Copyright (c) 1994-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 _BRepBuilderAPI_MakeShell_HeaderFile 0018 #define _BRepBuilderAPI_MakeShell_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <BRepLib_MakeShell.hxx> 0025 #include <BRepBuilderAPI_MakeShape.hxx> 0026 #include <Standard_Real.hxx> 0027 #include <BRepBuilderAPI_ShellError.hxx> 0028 class Geom_Surface; 0029 class TopoDS_Shell; 0030 0031 //! Describes functions to build a 0032 //! shape corresponding to the skin of a surface. 0033 //! Note that the term shell in the class name has the same definition 0034 //! as that of a shell in STEP, in other words the skin of a shape, 0035 //! and not a solid model defined by surface and thickness. If you want 0036 //! to build the second sort of shell, you must use 0037 //! BRepOffsetAPI_MakeOffsetShape. A shell is made of a series of 0038 //! faces connected by their common edges. 0039 //! If the underlying surface of a face is not C2 continuous and 0040 //! the flag Segment is True, MakeShell breaks the surface down into 0041 //! several faces which are all C2 continuous and which are 0042 //! connected along the non-regular curves on the surface. 0043 //! The resulting shell contains all these faces. 0044 //! Construction of a Shell from a non-C2 continuous Surface 0045 //! A MakeShell object provides a framework for: 0046 //! - defining the construction of a shell, 0047 //! - implementing the construction algorithm, and 0048 //! - consulting the result. 0049 //! Warning 0050 //! The connected C2 faces in the shell resulting from a decomposition of 0051 //! the surface are not sewn. For a sewn result, you need to use 0052 //! BRepOffsetAPI_Sewing. For a shell with thickness, you need to use 0053 //! BRepOffsetAPI_MakeOffsetShape. 0054 class BRepBuilderAPI_MakeShell : public BRepBuilderAPI_MakeShape 0055 { 0056 public: 0057 DEFINE_STANDARD_ALLOC 0058 0059 //! Constructs an empty shell framework. The Init 0060 //! function is used to define the construction arguments. 0061 //! Warning 0062 //! The function Error will return 0063 //! BRepBuilderAPI_EmptyShell if it is called before the function Init. 0064 Standard_EXPORT BRepBuilderAPI_MakeShell(); 0065 0066 //! Constructs a shell from the surface S. 0067 Standard_EXPORT BRepBuilderAPI_MakeShell(const Handle(Geom_Surface)& S, 0068 const Standard_Boolean Segment = Standard_False); 0069 0070 //! Constructs a shell from the surface S, 0071 //! limited in the u parametric direction by the two 0072 //! parameter values UMin and UMax, and limited in the v 0073 //! parametric direction by the two parameter values VMin and VMax. 0074 Standard_EXPORT BRepBuilderAPI_MakeShell(const Handle(Geom_Surface)& S, 0075 const Standard_Real UMin, 0076 const Standard_Real UMax, 0077 const Standard_Real VMin, 0078 const Standard_Real VMax, 0079 const Standard_Boolean Segment = Standard_False); 0080 0081 //! Defines or redefines the arguments 0082 //! for the construction of a shell. The construction is initialized 0083 //! with the surface S, limited in the u parametric direction by the 0084 //! two parameter values UMin and UMax, and in the v parametric 0085 //! direction by the two parameter values VMin and VMax. 0086 //! Warning 0087 //! The function Error returns: 0088 //! - BRepBuilderAPI_ShellParametersOutOfRange 0089 //! when the given parameters are outside the bounds of the 0090 //! surface or the basis surface if S is trimmed 0091 Standard_EXPORT void Init(const Handle(Geom_Surface)& S, 0092 const Standard_Real UMin, 0093 const Standard_Real UMax, 0094 const Standard_Real VMin, 0095 const Standard_Real VMax, 0096 const Standard_Boolean Segment = Standard_False); 0097 0098 //! Returns true if the shell is built. 0099 Standard_EXPORT virtual Standard_Boolean IsDone() const Standard_OVERRIDE; 0100 0101 //! Returns the construction status: 0102 //! - BRepBuilderAPI_ShellDone if the shell is built, or 0103 //! - another value of the BRepBuilderAPI_ShellError 0104 //! enumeration indicating why the construction failed. 0105 //! This is frequently BRepBuilderAPI_ShellParametersOutOfRange 0106 //! indicating that the given parameters are outside the bounds of the surface. 0107 Standard_EXPORT BRepBuilderAPI_ShellError Error() const; 0108 0109 //! Returns the new Shell. 0110 Standard_EXPORT const TopoDS_Shell& Shell() const; 0111 Standard_EXPORT operator TopoDS_Shell() const; 0112 0113 protected: 0114 private: 0115 BRepLib_MakeShell myMakeShell; 0116 }; 0117 0118 #endif // _BRepBuilderAPI_MakeShell_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|