KiCad PCB EDA Suite
|
#include <algorithm>
#include <cmath>
#include <sstream>
#include <string>
#include <utility>
#include <wx/filename.h>
#include <wx/filefn.h>
#include <wx/stdpaths.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>
#include <decompress.hpp>
#include <footprint.h>
#include <pad.h>
#include <pcb_track.h>
#include <kiplatform/io.h>
#include <string_utils.h>
#include <build_version.h>
#include <geometry/shape_segment.h>
#include "step_pcb_model.h"
#include "streamwrapper.h"
#include <IGESCAFControl_Reader.hxx>
#include <IGESCAFControl_Writer.hxx>
#include <IGESControl_Controller.hxx>
#include <IGESData_GlobalSection.hxx>
#include <IGESData_IGESModel.hxx>
#include <Interface_Static.hxx>
#include <Quantity_Color.hxx>
#include <STEPCAFControl_Reader.hxx>
#include <STEPCAFControl_Writer.hxx>
#include <APIHeaderSection_MakeHeader.hxx>
#include <Standard_Version.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_Name.hxx>
#include <TDataStd_TreeNode.hxx>
#include <TDF_LabelSequence.hxx>
#include <TDF_ChildIterator.hxx>
#include <TopExp_Explorer.hxx>
#include <XCAFDoc.hxx>
#include <XCAFDoc_DocumentTool.hxx>
#include <XCAFDoc_ColorTool.hxx>
#include <BRep_Tool.hxx>
#include <BRepMesh_IncrementalMesh.hxx>
#include <BRepBuilderAPI.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <BRepBuilderAPI_GTransform.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepPrimAPI_MakePrism.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepBndLib.hxx>
#include <Bnd_BoundSortBox.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Builder.hxx>
#include <Standard_Failure.hxx>
#include <Geom_Curve.hxx>
#include <Geom_BezierCurve.hxx>
#include <Geom_TrimmedCurve.hxx>
#include <gp_Ax2.hxx>
#include <gp_Circ.hxx>
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <GC_MakeArcOfCircle.hxx>
#include <GC_MakeCircle.hxx>
#include <RWGltf_CafWriter.hxx>
#include <macros.h>
Go to the source code of this file.
Enumerations | |
enum | MODEL3D_FORMAT_TYPE { FMT_NONE , FMT_STEP , FMT_STEPZ , FMT_IGES , FMT_EMN , FMT_IDF , FMT_WRL , FMT_WRZ } |
Functions | |
MODEL3D_FORMAT_TYPE | fileType (const char *aFileName) |
Variables | |
static constexpr double | USER_PREC = 1e-4 |
static constexpr double | USER_ANGLE_PREC = 1e-6 |
static constexpr double | BOARD_OFFSET = 0.05 |
enum MODEL3D_FORMAT_TYPE |
Enumerator | |
---|---|
FMT_NONE | |
FMT_STEP | |
FMT_STEPZ | |
FMT_IGES | |
FMT_EMN | |
FMT_IDF | |
FMT_WRL | |
FMT_WRZ |
Definition at line 114 of file step_pcb_model.cpp.
MODEL3D_FORMAT_TYPE fileType | ( | const char * | aFileName | ) |
Definition at line 127 of file step_pcb_model.cpp.
References CLOSE_STREAM, FMT_EMN, FMT_IDF, FMT_IGES, FMT_NONE, FMT_STEP, FMT_STEPZ, FMT_WRL, FMT_WRZ, OPEN_ISTREAM, and ReportMessage().
Referenced by PANEL_FP_LIB_TABLE::browseLibrariesHandler(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), STEP_PCB_MODEL::getModelLabel(), GRAPHICS_IMPORT_MGR::GetPluginByExt(), SCH_IO_MGR::GuessPluginTypeFromLibPath(), SCH_IO_MGR::GuessPluginTypeFromSchPath(), SCH_EDIT_FRAME::importFile(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), SYMBOL_EDIT_FRAME::ImportSymbol(), SCH_EDIT_FRAME::OnImportProject(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), GERBVIEW_CONTROL::ReloadAllLayers(), and SYMBOL_EDIT_FRAME::saveLibrary().
|
staticconstexpr |
Definition at line 111 of file step_pcb_model.cpp.
Referenced by STEP_PCB_MODEL::getModelLocation().
|
staticconstexpr |
Definition at line 108 of file step_pcb_model.cpp.
Referenced by STEP_PCB_MODEL::STEP_PCB_MODEL().
|
staticconstexpr |
Definition at line 107 of file step_pcb_model.cpp.