Open CASCADE Technology  7.2.0
Static Public Member Functions
TopoDS Class Reference

Provides methods to cast objects of class TopoDS_Shape to be onjects of more specialized sub-classes. Types are verified, thus in the example below, the first two blocks are correct but the third is rejected by the compiler. More...

#include <TopoDS.hxx>

Static Public Member Functions

static const TopoDS_VertexVertex (const TopoDS_Shape &S)
 Basic tool to access the data structure. Casts shape S to the more specialized return type, Vertex. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_VertexVertex (TopoDS_Shape &)
 
static const TopoDS_EdgeEdge (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Edge Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_EdgeEdge (TopoDS_Shape &)
 
static const TopoDS_WireWire (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Wire. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_WireWire (TopoDS_Shape &)
 
static const TopoDS_FaceFace (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Face. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_FaceFace (TopoDS_Shape &)
 
static const TopoDS_ShellShell (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Shell. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_ShellShell (TopoDS_Shape &)
 
static const TopoDS_SolidSolid (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Solid. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_SolidSolid (TopoDS_Shape &)
 
static const TopoDS_CompSolidCompSolid (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, CompSolid. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_CompSolidCompSolid (TopoDS_Shape &)
 
static const TopoDS_CompoundCompound (const TopoDS_Shape &S)
 Casts shape S to the more specialized return type, Compound. Exceptions Standard_TypeMismatch if S cannot be cast to this return type. More...
 
static TopoDS_CompoundCompound (TopoDS_Shape &)
 

Detailed Description

Provides methods to cast objects of class TopoDS_Shape to be onjects of more specialized sub-classes. Types are verified, thus in the example below, the first two blocks are correct but the third is rejected by the compiler.

Member Function Documentation

◆ Compound() [1/2]

static const TopoDS_Compound& TopoDS::Compound ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Compound. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Compound() [2/2]

static TopoDS_Compound& TopoDS::Compound ( TopoDS_Shape )
inlinestatic

◆ CompSolid() [1/2]

static const TopoDS_CompSolid& TopoDS::CompSolid ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, CompSolid. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ CompSolid() [2/2]

static TopoDS_CompSolid& TopoDS::CompSolid ( TopoDS_Shape )
inlinestatic

◆ Edge() [1/2]

static const TopoDS_Edge& TopoDS::Edge ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Edge Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Edge() [2/2]

static TopoDS_Edge& TopoDS::Edge ( TopoDS_Shape )
inlinestatic

◆ Face() [1/2]

static const TopoDS_Face& TopoDS::Face ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Face. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Face() [2/2]

static TopoDS_Face& TopoDS::Face ( TopoDS_Shape )
inlinestatic

◆ Shell() [1/2]

static const TopoDS_Shell& TopoDS::Shell ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Shell. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Shell() [2/2]

static TopoDS_Shell& TopoDS::Shell ( TopoDS_Shape )
inlinestatic

◆ Solid() [1/2]

static const TopoDS_Solid& TopoDS::Solid ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Solid. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Solid() [2/2]

static TopoDS_Solid& TopoDS::Solid ( TopoDS_Shape )
inlinestatic

◆ Vertex() [1/2]

static const TopoDS_Vertex& TopoDS::Vertex ( const TopoDS_Shape S)
static

Basic tool to access the data structure. Casts shape S to the more specialized return type, Vertex. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Vertex() [2/2]

static TopoDS_Vertex& TopoDS::Vertex ( TopoDS_Shape )
inlinestatic

◆ Wire() [1/2]

static const TopoDS_Wire& TopoDS::Wire ( const TopoDS_Shape S)
static

Casts shape S to the more specialized return type, Wire. Exceptions Standard_TypeMismatch if S cannot be cast to this return type.

◆ Wire() [2/2]

static TopoDS_Wire& TopoDS::Wire ( TopoDS_Shape )
inlinestatic

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