12 #ifndef ROOT_TOCCToStep 13 #define ROOT_TOCCToStep 19 #include <TDF_Label.hxx> 20 #include <XCAFDoc_ShapeTool.hxx> 21 #include <TDocStd_Document.hxx> 22 #include <STEPCAFControl_Writer.hxx> 23 #include <TDF_Label.hxx> 24 #include <TopoDS_Shape.hxx> 33 Handle(TDocStd_Document) fDoc;
45 void AddChildLabel(TDF_Label mother, TDF_Label child, TopLoc_Location loc);
The manager class for any TGeo geometry.
void FillOCCWithNode(TGeoManager *m, TGeoNode *currentNode, TGeoIterator &nextNode, int level, int max_level, int level1_skipped)
void OCCWriteStep(const char *fname)
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void AddChildLabel(TDF_Label mother, TDF_Label child, TopLoc_Location loc)
TGeoVolume * GetVolumeOfLabel(TDF_Label fLabel)
Matrix class used for computing global transformations Should NOT be used for node definition...
This class contains implementation of converting ROOT's geometry shapes to OpenCascade shapes...
STEPCAFControl_Writer fWriter
std::map< TGeoVolume *, TDF_Label > LabelMap_t
This class contains implementation of writing OpenCascade's geometry shapes to the STEP file reproduc...
TopLoc_Location CalcLocation(TGeoHMatrix matrix)
void OCCTreeCreation(TGeoManager *m, int max_level=-1)
TDF_Label OCCShapeCreation(TGeoManager *m)
Logical fTree creation.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TDF_Label GetLabelOfVolume(TGeoVolume *v)
Handle(TDocStd_Document) fDoc
bool OCCPartialTreeCreation(TGeoManager *m, const char *node_name, int max_level=-1)
TopoDS_Shape AssemblyShape(TGeoVolume *vol, TGeoHMatrix m)