![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#include <VrmlData_ShapeConvert.hxx>
Data Structures | |
| struct | ShapeData |
Public Member Functions | |
| VrmlData_ShapeConvert (VrmlData_Scene &theScene, const double theScale=1.) | |
| void | AddShape (const TopoDS_Shape &theShape, const char *theName=nullptr) |
| void | Convert (const bool theExtractFaces, const bool theExtractEdges, const double theDeflection=0.01, const double theDeflAngle=20. *M_PI/180.) |
| void | ConvertDocument (const occ::handle< TDocStd_Document > &theDoc) |
Algorithm converting one shape or a set of shapes to VrmlData_Scene.
|
inline |
|
protected |
|
protected |
|
protected |
| void VrmlData_ShapeConvert::AddShape | ( | const TopoDS_Shape & | theShape, |
| const char * | theName = nullptr ) |
Add one shape to the internal list, may be called several times with different shapes.
| void VrmlData_ShapeConvert::Convert | ( | const bool | theExtractFaces, |
| const bool | theExtractEdges, | ||
| const double | theDeflection = 0.01, | ||
| const double | theDeflAngle = 20. *M_PI/180. ) |
Convert all accumulated shapes and store them in myScene. The internal data structures are cleared in the end of conversion.
| theExtractFaces | If True, converter extracst faces from the shapes. |
| theExtractEdges | If True, converter extracts edges from the shapes. |
| theDeflection | Deflection for tessellation of geometrical lines/surfaces. Existing mesh is used if its deflection is smaller than the one given by this parameter. |
| theDeflAngle | Angular deflection for tessellation of geometrical lines. |
| void VrmlData_ShapeConvert::ConvertDocument | ( | const occ::handle< TDocStd_Document > & | theDoc | ) |
Add all shapes start from given document with colors and names to the internal structure
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |