|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
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>
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, NodeId > | occtl::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. | |
C++ veneer for Wavefront OBJ I/O.
|
inline |
Reads an OBJ file into a fresh graph and returns (graph, root).
| Error | on failure. |
|
inline |
Writes the topology rooted at theRoot to an OBJ file.
| Error | on failure. |