Provides methods to cast objects of class TopoDS_Shape to more specialized sub-classes. The types are not verified before casting. If the type does not match, a Standard_TypeMismatch exception is thrown. Below are examples of correct and incorrect casts: More...
Functions | |
| const TopoDS_Vertex & | Vertex (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Vertex. | |
| TopoDS_Vertex & | Vertex (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Vertex. | |
| const TopoDS_Edge & | Edge (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Edge. | |
| TopoDS_Edge & | Edge (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Edge. | |
| const TopoDS_Wire & | Wire (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Wire. | |
| TopoDS_Wire & | Wire (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Wire. | |
| const TopoDS_Face & | Face (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Face. | |
| TopoDS_Face & | Face (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Face. | |
| const TopoDS_Shell & | Shell (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Shell. | |
| TopoDS_Shell & | Shell (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Shell. | |
| const TopoDS_Solid & | Solid (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Solid. | |
| TopoDS_Solid & | Solid (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Solid. | |
| const TopoDS_CompSolid & | CompSolid (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, CompSolid. | |
| TopoDS_CompSolid & | CompSolid (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, CompSolid. | |
| const TopoDS_Compound & | Compound (const TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Compound. | |
| TopoDS_Compound & | Compound (TopoDS_Shape &theShape) |
| Casts shape theShape to the more specialized return type, Compound. | |
Provides methods to cast objects of class TopoDS_Shape to more specialized sub-classes. The types are not verified before casting. If the type does not match, a Standard_TypeMismatch exception is thrown. Below are examples of correct and incorrect casts:
Correct:
Incorrect (will throw a Standard_TypeMismatch exception):
|
inline |
Casts shape theShape to the more specialized return type, Compound.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Compound.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, CompSolid.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, CompSolid.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Edge.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Edge.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Face.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Face.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Shell.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Shell.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Solid.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Solid.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Vertex.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Vertex.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Wire.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |
|
inline |
Casts shape theShape to the more specialized return type, Wire.
| theShape | the shape to be cast |
| Standard_TypeMismatch | if theShape cannot be cast to this return type. |