|
|
|||
File indexing completed on 2026-11-23 10:18:48
0001 // Created on: 1996-02-13 0002 // Created by: Yves FRICAUD 0003 // Copyright (c) 1996-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 _BRepOffsetAPI_MakeThickSolid_HeaderFile 0018 #define _BRepOffsetAPI_MakeThickSolid_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <BRepOffsetAPI_MakeOffsetShape.hxx> 0025 #include <TopoDS_Shape.hxx> 0026 #include <NCollection_List.hxx> 0027 #include <BRepOffset_Mode.hxx> 0028 #include <Standard_Boolean.hxx> 0029 #include <GeomAbs_JoinType.hxx> 0030 class TopoDS_Shape; 0031 0032 //! Describes functions to build hollowed solids. 0033 //! A hollowed solid is built from an initial solid and a set of 0034 //! faces on this solid, which are to be removed. The 0035 //! remaining faces of the solid become the walls of the 0036 //! hollowed solid, their thickness defined at the time of construction. 0037 //! the solid is built from an initial 0038 //! solid <S> and a set of faces {Fi} from <S>, 0039 //! builds a solid composed by two shells closed by 0040 //! the {Fi}. First shell <SS> is composed by all 0041 //! the faces of <S> expected {Fi}. Second shell is 0042 //! the offset shell of <SS>. 0043 //! A MakeThickSolid object provides a framework for: 0044 //! - defining the cross-section of a hollowed solid, 0045 //! - implementing the construction algorithm, and 0046 //! - consulting the result. 0047 class BRepOffsetAPI_MakeThickSolid : public BRepOffsetAPI_MakeOffsetShape 0048 { 0049 public: 0050 DEFINE_STANDARD_ALLOC 0051 0052 //! Constructor does nothing. 0053 Standard_EXPORT BRepOffsetAPI_MakeThickSolid(); 0054 0055 //! Constructs solid using simple algorithm. 0056 //! According to its nature it is not possible to set list of the closing faces. 0057 //! This algorithm does not support faces removing. It is caused by fact that 0058 //! intersections are not computed during offset creation. 0059 //! Non-closed shell or face is expected as input. 0060 Standard_EXPORT void MakeThickSolidBySimple(const TopoDS_Shape& theS, 0061 const double theOffsetValue); 0062 0063 //! Constructs a hollowed solid from 0064 //! the solid S by removing the set of faces ClosingFaces from S, where: 0065 //! Offset defines the thickness of the walls. Its sign indicates 0066 //! which side of the surface of the solid the hollowed shape is built on; 0067 //! - Tol defines the tolerance criterion for coincidence in generated shapes; 0068 //! - Mode defines the construction type of parallels applied to free 0069 //! edges of shape S. Currently, only one construction type is 0070 //! implemented, namely the one where the free edges do not generate 0071 //! parallels; this corresponds to the default value BRepOffset_Skin; 0072 //! Intersection specifies how the algorithm must work in order to 0073 //! limit the parallels to two adjacent shapes: 0074 //! - if Intersection is false (default value), the intersection 0075 //! is calculated with the parallels to the two adjacent shapes, 0076 //! - if Intersection is true, the intersection is calculated by 0077 //! taking account of all parallels generated; this computation 0078 //! method is more general as it avoids self-intersections 0079 //! generated in the offset shape from features of small dimensions 0080 //! on shape S, however this method has not been completely 0081 //! implemented and therefore is not recommended for use; 0082 //! - SelfInter tells the algorithm whether a computation to 0083 //! eliminate self-intersections needs to be applied to the 0084 //! resulting shape. However, as this functionality is not yet 0085 //! implemented, you should use the default value (false); 0086 //! - Join defines how to fill the holes that may appear between 0087 //! parallels to the two adjacent faces. It may take values 0088 //! GeomAbs_Arc or GeomAbs_Intersection: 0089 //! - if Join is equal to GeomAbs_Arc, then pipes are generated 0090 //! between two free edges of two adjacent parallels, 0091 //! and spheres are generated on "images" of vertices; 0092 //! it is the default value, 0093 //! - if Join is equal to GeomAbs_Intersection, 0094 //! then the parallels to the two adjacent faces are 0095 //! enlarged and intersected, so that there are no free 0096 //! edges on parallels to faces. 0097 //! RemoveIntEdges flag defines whether to remove the INTERNAL edges 0098 //! from the result or not. 0099 //! Warnings 0100 //! Since the algorithm of MakeThickSolid is based on 0101 //! MakeOffsetShape algorithm, the warnings are the same as for 0102 //! MakeOffsetShape. 0103 Standard_EXPORT void MakeThickSolidByJoin( 0104 const TopoDS_Shape& S, 0105 const NCollection_List<TopoDS_Shape>& ClosingFaces, 0106 const double Offset, 0107 const double Tol, 0108 const BRepOffset_Mode Mode = BRepOffset_Skin, 0109 const bool Intersection = false, 0110 const bool SelfInter = false, 0111 const GeomAbs_JoinType Join = GeomAbs_Arc, 0112 const bool RemoveIntEdges = false, 0113 const Message_ProgressRange& theRange = Message_ProgressRange()); 0114 0115 // Does nothing. 0116 Standard_EXPORT void Build( 0117 const Message_ProgressRange& theRange = Message_ProgressRange()) override; 0118 0119 //! Returns the list of shapes modified from the shape 0120 //! <S>. 0121 Standard_EXPORT const NCollection_List<TopoDS_Shape>& Modified(const TopoDS_Shape& S) override; 0122 }; 0123 0124 #endif // _BRepOffsetAPI_MakeThickSolid_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|