|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
OCCT-Light: PLY file export. More...


Go to the source code of this file.
Classes | |
| struct | occtl_io_ply_write_options |
Macros | |
| #define | OCCTL_IO_PLY_WRITE_OPTIONS_VERSION_1 1u |
| #define | OCCTL_IO_PLY_WRITE_OPTIONS_INIT |
Typedefs | |
| typedef enum occtl_io_ply_coordinate_system | occtl_io_ply_coordinate_system_t |
| typedef struct occtl_io_ply_write_options | occtl_io_ply_write_options_t |
Enumerations | |
| enum | occtl_io_ply_coordinate_system { OCCTL_IO_PLY_COORDINATE_SYSTEM_Y_UP = 0 , OCCTL_IO_PLY_COORDINATE_SYSTEM_Z_UP = 1 , OCCTL_IO_PLY_COORDINATE_SYSTEM_GLTF = 2 , OCCTL_IO_PLY_COORDINATE_SYSTEM_RESERVED_FUTURE = 0x7fffffff } |
Functions | |
| void | occtl_io_ply_write_options_init (occtl_io_ply_write_options_t *options) |
| 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) |
OCCT-Light: PLY file export.
Writes Stanford PLY polygon mesh files via OCCT's DEPLY_Provider / DEPLY_ConfigurationNode.
OCCT 8.0.0 does not support PLY import through DEPLY_Provider, so this module is intentionally write-only. Callers that need deterministic mesh output should run occtl_mesh_generate before writing.
| #define OCCTL_IO_PLY_WRITE_OPTIONS_INIT |
Coordinate system used by PLY export conversion.
| typedef struct occtl_io_ply_write_options occtl_io_ply_write_options_t |
Options for occtl_io_ply_write. Pass NULL for defaults.
| 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 | ||
| ) |
Writes the topology rooted at root to a PLY file.
| [in] | graph | Borrows it. Must be non-NULL. |
| [in] | root | Root node id to serialise. |
| [in] | path | Borrows it. NUL-terminated UTF-8 path; existing file is overwritten. |
| [in] | options | Borrows it. May be NULL for defaults. |
| OCCTL_OK | On success. |
| OCCTL_INVALID_ARGUMENT | graph or path is NULL; options has invalid fields (non-NULL p_next, non-0/1 flags); or mutually exclusive options are enabled. |
| OCCTL_NOT_FOUND | root is invalid or has been removed. |
| OCCTL_VERSION_MISMATCH | options has an unsupported struct_version. |
| OCCTL_OUT_OF_RANGE | options has an unsupported coordinate-system value. |
| OCCTL_IO_ERROR | Filesystem failure, unwritable file, or OCCT writer failure. |
\par Thread Safety Yes (read-only on graph).
| void occtl_io_ply_write_options_init | ( | occtl_io_ply_write_options_t * | options | ) |
Initialises options to default values matching OCCTL_IO_PLY_WRITE_OPTIONS_INIT.
NULL-tolerant.
| [out] | options | Borrows it. May be NULL (no-op). |
\par Thread Safety Yes.