OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_io_ply.h
Go to the documentation of this file.
1// Copyright (c) 2026 Capgemini Engineering Research and Development.
2//
3// This file is part of OCCT-Light software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Affero General Public License version 3 as published
7// by the Free Software Foundation, with an option to use any later version.
8// Consult the file LICENSE_AGPL_30.txt included in OCCT-Light distribution
9// for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of a commercial
12// license or contractual agreement.
13//
14// SPDX-License-Identifier: AGPL-3.0-or-later
15
28#ifndef OCCTL_IO_PLY_H
29#define OCCTL_IO_PLY_H
30
31#include <stddef.h>
32#include <stdint.h>
33
34#include "occtl_core.h"
35#include "occtl_topo.h"
36
37#ifdef __cplusplus
38extern "C"
39{
40#endif
41
52
53#define OCCTL_IO_PLY_WRITE_OPTIONS_VERSION_1 1u
54
74
75#define OCCTL_IO_PLY_WRITE_OPTIONS_INIT \
76 {OCCTL_IO_PLY_WRITE_OPTIONS_VERSION_1, \
77 NULL, \
78 OCCTL_IO_PLY_COORDINATE_SYSTEM_Z_UP, \
79 OCCTL_IO_PLY_COORDINATE_SYSTEM_Y_UP, \
80 1, \
81 1, \
82 0, \
83 1, \
84 0, \
85 NULL, \
86 NULL}
87
100
122 occtl_node_id_t root,
123 const char* path,
124 const occtl_io_ply_write_options_t* options);
125
126#ifdef __cplusplus
127} /* extern "C" */
128#endif
129
130#endif /* OCCTL_IO_PLY_H */
OCCT-Light: core public API.
#define OCCTL_API
Definition occtl_core.h:111
enum occtl_status occtl_status_t
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
void occtl_io_ply_write_options_init(occtl_io_ply_write_options_t *options)
occtl_io_ply_coordinate_system
Definition occtl_io_ply.h:46
@ 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
struct occtl_io_ply_write_options occtl_io_ply_write_options_t
OCCT-Light: topology module public API.
struct occtl_graph occtl_graph_t
Definition occtl_topo_types.h:152
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
const void * p_next
Definition occtl_io_ply.h:61
int32_t write_part_id
Definition occtl_io_ply.h:69
uint32_t struct_version
Definition occtl_io_ply.h:60
occtl_io_ply_coordinate_system_t file_coordinate_system
Definition occtl_io_ply.h:65
const char * comment
Definition occtl_io_ply.h:71
Definition occtl_topo_types.h:50