Open CASCADE Technology  7.4.0
Public Member Functions

BRepBuilderAPI_MakeSolid Class Reference

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: More...

#include <BRepBuilderAPI_MakeSolid.hxx>

Inheritance diagram for BRepBuilderAPI_MakeSolid:
Inheritance graph
[legend]

Public Member Functions

 BRepBuilderAPI_MakeSolid ()
 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. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_CompSolid &S)
 Make a solid from a CompSolid. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_Shell &S)
 Make a solid from a shell. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_Shell &S1, const TopoDS_Shell &S2)
 Make a solid from two shells. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_Shell &S1, const TopoDS_Shell &S2, const TopoDS_Shell &S3)
 Make a solid from three shells. Constructs a solid. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_Solid &So)
 Make a solid from a solid. Usefull for adding later. More...
 
 BRepBuilderAPI_MakeSolid (const TopoDS_Solid &So, const TopoDS_Shell &S)
 Add a shell to a solid. More...
 
void Add (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. More...
 
virtual Standard_Boolean IsDone () const override
 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. More...
 
const TopoDS_SolidSolid ()
 Returns the new Solid. More...
 
 operator TopoDS_Solid ()
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S) override
 Returns true if the shape S has been deleted. More...
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Build ()
 This is called by Shape(). It does nothing but may be redefined. More...
 
virtual const TopoDS_ShapeShape ()
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...
 
 operator TopoDS_Shape ()
 
virtual const TopTools_ListOfShapeGenerated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape <S>. More...
 
virtual const TopTools_ListOfShapeModified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape <S>. More...
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
void Check () const
 Raises NotDone if done is false. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False. More...
 
void Done ()
 Set done to true. More...
 
void NotDone ()
 Set done to false. More...
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

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:

Constructor & Destructor Documentation

◆ BRepBuilderAPI_MakeSolid() [1/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( )

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.

◆ BRepBuilderAPI_MakeSolid() [2/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_CompSolid S)

Make a solid from a CompSolid.

◆ BRepBuilderAPI_MakeSolid() [3/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_Shell S)

Make a solid from a shell.

◆ BRepBuilderAPI_MakeSolid() [4/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_Shell S1,
const TopoDS_Shell S2 
)

Make a solid from two shells.

◆ BRepBuilderAPI_MakeSolid() [5/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_Shell S1,
const TopoDS_Shell S2,
const TopoDS_Shell S3 
)

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.

◆ BRepBuilderAPI_MakeSolid() [6/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_Solid So)

Make a solid from a solid. Usefull for adding later.

◆ BRepBuilderAPI_MakeSolid() [7/7]

BRepBuilderAPI_MakeSolid::BRepBuilderAPI_MakeSolid ( const TopoDS_Solid So,
const TopoDS_Shell S 
)

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.

Member Function Documentation

◆ Add()

void BRepBuilderAPI_MakeSolid::Add ( 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.

◆ IsDeleted()

virtual Standard_Boolean BRepBuilderAPI_MakeSolid::IsDeleted ( const TopoDS_Shape S)
overridevirtual

Returns true if the shape S has been deleted.

Reimplemented from BRepBuilderAPI_MakeShape.

◆ IsDone()

virtual Standard_Boolean BRepBuilderAPI_MakeSolid::IsDone ( ) const
overridevirtual

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.

Reimplemented from BRepBuilderAPI_Command.

◆ operator TopoDS_Solid()

BRepBuilderAPI_MakeSolid::operator TopoDS_Solid ( )

◆ Solid()

const TopoDS_Solid& BRepBuilderAPI_MakeSolid::Solid ( )

Returns the new Solid.


The documentation for this class was generated from the following file: