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

C++ veneer for Wavefront OBJ I/O. More...

#include <occtl/occtl_io_obj.h>
#include <occtl-hpp/core.hpp>
#include <occtl-hpp/topo.hpp>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for io_obj.hpp:

Go to the source code of this file.

Classes

struct  occtl::io_obj::ReadOptions
 Options for read. PascalCase mirror of occtl_io_obj_read_options_t. More...
 
struct  occtl::io_obj::WriteOptions
 Options for write. PascalCase mirror of occtl_io_obj_write_options_t. More...
 

Enumerations

enum class  occtl::io_obj::CoordinateSystem { YUp = OCCTL_IO_OBJ_COORDINATE_SYSTEM_Y_UP , ZUp = OCCTL_IO_OBJ_COORDINATE_SYSTEM_Z_UP , Gltf = OCCTL_IO_OBJ_COORDINATE_SYSTEM_GLTF }
 Coordinate system used by OBJ import/export conversion.
 

Functions

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

Detailed Description

C++ veneer for Wavefront OBJ I/O.

Function Documentation

◆ read()

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

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

Exceptions
Erroron failure.

◆ write()

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

Writes the topology rooted at theRoot to an OBJ file.

Exceptions
Erroron failure.