OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
io_iges.hpp File Reference

C++ veneer for IGES I/O. More...

#include <occtl/occtl_io_iges.h>
#include <occtl-hpp/core.hpp>
#include <occtl-hpp/topo.hpp>
#include <cstddef>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for io_iges.hpp:

Go to the source code of this file.

Classes

struct  occtl::io_iges::ReadOptions
 Options for read. PascalCase mirror of occtl_io_iges_read_options_t. More...
 
struct  occtl::io_iges::WriteOptions
 Options for write. PascalCase mirror of occtl_io_iges_write_options_t. More...
 

Functions

std::pair< Graph, NodeIdocctl::io_iges::read (const std::string &thePath, const ReadOptions &theOptions=ReadOptions{})
 Reads an IGES file into a fresh graph and returns (graph, root).
 
void occtl::io_iges::write (const Graph &theGraph, const NodeId theRoot, const std::string &thePath, const WriteOptions &theOptions=WriteOptions{})
 Writes the topology rooted at theRoot to an IGES file.
 

Detailed Description

C++ veneer for IGES I/O.

Function Documentation

◆ read()

std::pair< Graph, NodeId > occtl::io_iges::read ( const std::string &  thePath,
const ReadOptions theOptions = ReadOptions{} 
)
inline

Reads an IGES file into a fresh graph and returns (graph, root).

Exceptions
Erroron failure.

◆ write()

void occtl::io_iges::write ( const Graph theGraph,
const NodeId  theRoot,
const std::string &  thePath,
const WriteOptions theOptions = WriteOptions{} 
)
inline

Writes the topology rooted at theRoot to an IGES file.

Exceptions
Erroron failure.