21#ifndef OCCTL_HPP_IO_PLY_HPP
22#define OCCTL_HPP_IO_PLY_HPP
34namespace occtl::io_ply
50 bool write_normals =
true;
51 bool write_colors =
true;
52 bool write_texcoords =
false;
53 bool write_part_id =
true;
54 bool write_face_id =
false;
70 aOpts.
comment = comment.empty() ? nullptr : comment.c_str();
71 aOpts.
author = author.empty() ? nullptr : author.c_str();
78inline void write(
const Graph& theGraph,
80 const std::string& thePath,
83 const ::occtl_io_ply_write_options_t aOpts = theOptions.to_c();
RAII handle for a topology graph. Mirrors occtl_graph_t.
Definition topo.hpp:1444
::occtl_graph_t * get() const noexcept
Borrows-it pointer to the underlying C handle, for direct ABI calls.
Definition topo.hpp:1494
Session-local identity of a graph node. Mirrors occtl_node_id_t.
Definition topo.hpp:52
::occtl_node_id_t get() const noexcept
Borrows-it view of the underlying C value type, for direct ABI calls.
Definition topo.hpp:64
C++ veneer for the core module.
void check(const ::occtl_status_t theStatus)
Throw on non-OK; otherwise a no-op.
Definition core.hpp:85
CoordinateSystem
Coordinate system used by PLY export conversion.
Definition io_ply.hpp:39
OCCT-Light: PLY file export.
occtl_status_t occtl_io_ply_write(const occtl_graph_t *graph, occtl_node_id_t root, const char *path, const occtl_io_ply_write_options_t *options)
enum occtl_io_ply_coordinate_system occtl_io_ply_coordinate_system_t
@ OCCTL_IO_PLY_COORDINATE_SYSTEM_GLTF
Definition occtl_io_ply.h:49
@ OCCTL_IO_PLY_COORDINATE_SYSTEM_Y_UP
Definition occtl_io_ply.h:47
@ OCCTL_IO_PLY_COORDINATE_SYSTEM_Z_UP
Definition occtl_io_ply.h:48
Options for write. PascalCase mirror of occtl_io_ply_write_options_t.
Definition io_ply.hpp:47
Definition occtl_io_ply.h:59
occtl_io_ply_coordinate_system_t system_coordinate_system
Definition occtl_io_ply.h:63
int32_t write_face_id
Definition occtl_io_ply.h:70
int32_t write_colors
Definition occtl_io_ply.h:67
int32_t write_normals
Definition occtl_io_ply.h:66
int32_t write_texcoords
Definition occtl_io_ply.h:68
const char * author
Definition occtl_io_ply.h:72
int32_t write_part_id
Definition occtl_io_ply.h:69
occtl_io_ply_coordinate_system_t file_coordinate_system
Definition occtl_io_ply.h:65
const char * comment
Definition occtl_io_ply.h:71
C++ veneer for the topo module.