#include <VrmlData_ShapeConvert.hxx>
Public Member Functions | |
| VrmlData_ShapeConvert (VrmlData_Scene &theScene, const Standard_Real theScale=1.) | |
| Standard_EXPORT void | AddShape (const TopoDS_Shape &theShape, const char *theName=0L) |
| Standard_EXPORT void | Convert (const Standard_Boolean theExtractFaces, const Standard_Boolean theExtractEdges, const Standard_Real theDeflection=0.01, const Standard_Real theDeflAngle=20.*PI/180.) |
Protected Member Functions | |
| Handle_VrmlData_Geometry | triToIndexedFaceSet (const Handle_Poly_Triangulation &, const TopoDS_Face &, const Handle_VrmlData_Coordinate &) |
| Handle_VrmlData_Geometry | polToIndexedLineSet (const Handle_Poly_Polygon3D &) |
| Handle_VrmlData_Appearance | defaultMaterialFace () const |
| Handle_VrmlData_Appearance | defaultMaterialEdge () const |
Private Attributes | |
| VrmlData_Scene & | myScene |
| Standard_Real | myScale |
| NCollection_List< ShapeData > | myShapes |
Data Structures | |
| struct | ShapeData |
|
||||||||||||
|
Constructor.
|
|
||||||||||||
|
Add one shape to the internal list, may be called several times with different shapes. |
|
||||||||||||||||||||
|
Convert all accumulated shapes and store them in myScene. The internal data structures are cleared in the end of convertion.
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
1.4.1