Open CASCADE Technology  7.2.0
Public Member Functions | Protected Member Functions

TopoDS_Builder Class Reference

A Builder is used to create Topological Data Structures.It is the root of the Builder class hierarchy. More...

#include <TopoDS_Builder.hxx>

Inheritance diagram for TopoDS_Builder:
Inheritance graph
[legend]

Public Member Functions

void MakeWire (TopoDS_Wire &W) const
 Make an empty Wire. More...
 
void MakeShell (TopoDS_Shell &S) const
 Make an empty Shell. More...
 
void MakeSolid (TopoDS_Solid &S) const
 Make a Solid covering the whole 3D space. More...
 
void MakeCompSolid (TopoDS_CompSolid &C) const
 Make an empty Composite Solid. More...
 
void MakeCompound (TopoDS_Compound &C) const
 Make an empty Compound. More...
 
void Add (TopoDS_Shape &S, const TopoDS_Shape &C) const
 Add the Shape C in the Shape S. Exceptions. More...
 
void Remove (TopoDS_Shape &S, const TopoDS_Shape &C) const
 Remove the Shape C from the Shape S. Exceptions TopoDS_FrozenShape if S is frozen and cannot be modified. More...
 

Protected Member Functions

void MakeShape (TopoDS_Shape &S, const Handle< TopoDS_TShape > &T) const
 The basic method to make a Shape, used by all the Make methods. More...
 

Detailed Description

A Builder is used to create Topological Data Structures.It is the root of the Builder class hierarchy.

There are three groups of methods in the Builder :

The Make methods create Shapes.

The Add method includes a Shape in another Shape.

The Remove method removes a Shape from an other Shape.

The methods in Builder are not static. They can be redefined in inherited builders.

This Builder does not provide methods to Make Vertices, Edges, Faces, Shells or Solids. These methods are provided in the inherited Builders as they must provide the geometry.

The Add method check for the following rules :

Member Function Documentation

◆ Add()

void TopoDS_Builder::Add ( TopoDS_Shape S,
const TopoDS_Shape C 
) const

Add the Shape C in the Shape S. Exceptions.

  • TopoDS_FrozenShape if S is not free and cannot be modified.
  • TopoDS__UnCompatibleShapes if S and C are not compatible.

◆ MakeCompound()

void TopoDS_Builder::MakeCompound ( TopoDS_Compound C) const

Make an empty Compound.

◆ MakeCompSolid()

void TopoDS_Builder::MakeCompSolid ( TopoDS_CompSolid C) const

Make an empty Composite Solid.

◆ MakeShape()

void TopoDS_Builder::MakeShape ( TopoDS_Shape S,
const Handle< TopoDS_TShape > &  T 
) const
protected

The basic method to make a Shape, used by all the Make methods.

◆ MakeShell()

void TopoDS_Builder::MakeShell ( TopoDS_Shell S) const

Make an empty Shell.

◆ MakeSolid()

void TopoDS_Builder::MakeSolid ( TopoDS_Solid S) const

Make a Solid covering the whole 3D space.

◆ MakeWire()

void TopoDS_Builder::MakeWire ( TopoDS_Wire W) const

Make an empty Wire.

◆ Remove()

void TopoDS_Builder::Remove ( TopoDS_Shape S,
const TopoDS_Shape C 
) const

Remove the Shape C from the Shape S. Exceptions TopoDS_FrozenShape if S is frozen and cannot be modified.


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