1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BRepBuilderAPI_MakeSolid_HeaderFile
#define _BRepBuilderAPI_MakeSolid_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <BRepLib_MakeSolid.hxx>
#include <BRepBuilderAPI_MakeShape.hxx>
#include <Standard_Boolean.hxx>
class StdFail_NotDone;
class TopoDS_CompSolid;
class TopoDS_Shell;
class TopoDS_Solid;
class TopoDS_Shape;
//! Describes functions to build a solid from shells.
//! A solid is made of one shell, or a series of shells, which
//! do not intersect each other. One of these shells
//! constitutes the outside skin of the solid. It may be closed
//! (a finite solid) or open (an infinite solid). Other shells
//! form hollows (cavities) in these previous ones. Each
//! must bound a closed volume.
//! A MakeSolid object provides a framework for:
//! - defining and implementing the construction of a solid, and
//! - consulting the result.
class BRepBuilderAPI_MakeSolid : public BRepBuilderAPI_MakeShape
{
public:
DEFINE_STANDARD_ALLOC
//! Initializes the construction of a solid. An empty solid is
//! considered to cover the whole space. The Add function
//! is used to define shells to bound it.
Standard_EXPORT BRepBuilderAPI_MakeSolid();
//! Make a solid from a CompSolid.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_CompSolid& S);
//! Make a solid from a shell.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_Shell& S);
//! Make a solid from two shells.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_Shell& S1, const TopoDS_Shell& S2);
//! Make a solid from three shells.
//! Constructs a solid
//! - covering the whole space, or
//! - from shell S, or
//! - from two shells S1 and S2, or
//! - from three shells S1, S2 and S3, or
//! Warning
//! No check is done to verify the conditions of coherence
//! of the resulting solid. In particular, S1, S2 (and S3) must
//! not intersect each other.
//! Besides, after all shells have been added using the Add
//! function, one of these shells should constitute the outside
//! skin of the solid; it may be closed (a finite solid) or open
//! (an infinite solid). Other shells form hollows (cavities) in
//! these previous ones. Each must bound a closed volume.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_Shell& S1, const TopoDS_Shell& S2, const TopoDS_Shell& S3);
//! Make a solid from a solid. Usefull for adding later.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_Solid& So);
//! Add a shell to a solid.
//!
//! Constructs a solid:
//! - from the solid So, to which shells can be added, or
//! - by adding the shell S to the solid So.
//! Warning
//! No check is done to verify the conditions of coherence
//! of the resulting solid. In particular S must not intersect the solid S0.
//! Besides, after all shells have been added using the Add
//! function, one of these shells should constitute the outside
//! skin of the solid. It may be closed (a finite solid) or open
//! (an infinite solid). Other shells form hollows (cavities) in
//! the previous ones. Each must bound a closed volume.
Standard_EXPORT BRepBuilderAPI_MakeSolid(const TopoDS_Solid& So, const TopoDS_Shell& S);
//! Adds the shell to the current solid.
//! Warning
//! No check is done to verify the conditions of coherence
//! of the resulting solid. In particular, S must not intersect
//! other shells of the solid under construction.
//! Besides, after all shells have been added, one of
//! these shells should constitute the outside skin of the
//! solid. It may be closed (a finite solid) or open (an
//! infinite solid). Other shells form hollows (cavities) in
//! these previous ones. Each must bound a closed volume.
Standard_EXPORT void Add (const TopoDS_Shell& S) ;
//! Returns true if the solid is built.
//! For this class, a solid under construction is always valid.
//! If no shell has been added, it could be a whole-space
//! solid. However, no check was done to verify the
//! conditions of coherence of the resulting solid.
Standard_EXPORT virtual Standard_Boolean IsDone() const;
//! Returns the new Solid.
Standard_EXPORT const TopoDS_Solid& Solid() const;
Standard_EXPORT operator TopoDS_Solid() const;
Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& S) ;
protected:
private:
BRepLib_MakeSolid myMakeSolid;
};
#endif // _BRepBuilderAPI_MakeSolid_HeaderFile
|