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

C++ veneer for native BRep I/O. More...

#include <occtl/occtl_io_brep.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_brep.hpp:

Go to the source code of this file.

Classes

struct  occtl::io_brep::WriteOptions
 Options for write. PascalCase mirror of occtl_io_brep_write_options_t. The output format (binary / ASCII) is managed internally by the OCCT DEBREP_Provider. More...
 

Functions

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

Detailed Description

C++ veneer for native BRep I/O.

Function Documentation

◆ read()

std::pair< Graph, NodeId > occtl::io_brep::read ( const std::string &  thePath)
inline

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

Exceptions
Erroron failure.

◆ write()

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

Writes the topology rooted at theRoot to a BRep file.

Exceptions
Erroron failure.