AMCAX Kernel 1.0.0.0
A Iges File Reading And Writing Example

Overview

This tutorial introduces the basic usage of the AMCAX IGES module, which only provides a read interface and does not yet provide a write interface. Currently, only partial data reading is supported.

The Reader Section

Import The Header Files

#include <iges/IgesIO.hpp>
Class of IgesIO.

Create an instance

AMCAX::IGES::IgesIO::Read(ts, "./iges/test.igs");
static AMCAX_API bool Read(TopoShape &s, const std::string &file)
Read a shape from a file.
Base class of shape, containing an underlying shape with a location and an orientation.
Definition: TopoShape.hpp:15

Appendix

The complete code of this sample is listed here:

#include <iges/IgesIO.hpp>
if (AMCAX::IGES::IgesIO::Read(ts, "./iges/test.igs"))
OCCTIO::OCCTTool::Write(ts,"./test.brep");
Class of read and write shapes from OCCT BRep files.