|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
OCCT-side implementation of the STEP solid import bridge. More...
#include "G4OCCT_STEPSolid_impl.hh"#include "G4OCCT/G4OCCTSolid.hh"#include <BRepMesh_IncrementalMesh.hxx>#include <BRep_Tool.hxx>#include <Poly_Triangulation.hxx>#include <TopAbs_Orientation.hxx>#include <TopExp_Explorer.hxx>#include <TopoDS.hxx>#include <TopoDS_Face.hxx>#include <stdexcept>#include <string>Go to the source code of this file.
Functions | |
| G4OCCT_STEPSolidGeometry | G4OCCT_ImportSTEPSolid (const std::string &name, const std::string &path) |
OCCT-side implementation of the STEP solid import bridge.
This TU includes G4OCCT and OpenCASCADE headers and must NOT include any DD4hep or ROOT headers to avoid the Printf return-type collision (see G4OCCT_STEPSolid_impl.hh).
Definition in file G4OCCT_STEPSolid_impl.cc.
| G4OCCT_STEPSolidGeometry G4OCCT_ImportSTEPSolid | ( | const std::string & | name, |
| const std::string & | path | ||
| ) |
Import a STEP file, tessellate it, and return the triangle mesh in mm. Throws std::runtime_error on failure or empty mesh.
Definition at line 26 of file G4OCCT_STEPSolid_impl.cc.
References G4OCCTSolid::FromSTEP(), G4OCCTSolid::GetOCCTShape(), G4OCCT_STEPSolidGeometry::triangles, and G4OCCT_Triangle::v.
Referenced by create_step_solid().