OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_io_iges.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
30#ifndef OCCTL_IO_IGES_H
31#define OCCTL_IO_IGES_H
32
33#include <stddef.h>
34#include <stdint.h>
35
36#include "occtl_core.h"
37#include "occtl_topo.h"
38
39#ifdef __cplusplus
40extern "C"
41{
42#endif
43
44#define OCCTL_IO_IGES_READ_OPTIONS_VERSION_1 1u
45#define OCCTL_IO_IGES_WRITE_OPTIONS_VERSION_1 1u
46
57
58#define OCCTL_IO_IGES_READ_OPTIONS_INIT {OCCTL_IO_IGES_READ_OPTIONS_VERSION_1, NULL, 1, 1}
59
70
71#define OCCTL_IO_IGES_WRITE_OPTIONS_INIT {OCCTL_IO_IGES_WRITE_OPTIONS_VERSION_1, NULL, 0}
72
85
98
117OCCTL_API occtl_status_t OCCTL_CALL occtl_io_iges_read(const char* path,
118 occtl_graph_t** out_graph,
119 occtl_node_id_t* out_root,
120 const occtl_io_iges_read_options_t* options);
121
140OCCTL_API occtl_status_t OCCTL_CALL
142 occtl_node_id_t root,
143 const char* path,
144 const occtl_io_iges_write_options_t* options);
145
146#ifdef __cplusplus
147} /* extern "C" */
148#endif
149
150#endif /* OCCTL_IO_IGES_H */
OCCT-Light: core public API.
#define OCCTL_API
Definition occtl_core.h:111
enum occtl_status occtl_status_t
void occtl_io_iges_read_options_init(occtl_io_iges_read_options_t *options)
struct occtl_io_iges_read_options occtl_io_iges_read_options_t
struct occtl_io_iges_write_options occtl_io_iges_write_options_t
occtl_status_t occtl_io_iges_write(const occtl_graph_t *graph, occtl_node_id_t root, const char *path, const occtl_io_iges_write_options_t *options)
void occtl_io_iges_write_options_init(occtl_io_iges_write_options_t *options)
occtl_status_t occtl_io_iges_read(const char *path, occtl_graph_t **out_graph, occtl_node_id_t *out_root, const occtl_io_iges_read_options_t *options)
OCCT-Light: topology module public API.
struct occtl_graph occtl_graph_t
Definition occtl_topo_types.h:152
Definition occtl_io_iges.h:51
int32_t read_color
Definition occtl_io_iges.h:54
const void * p_next
Definition occtl_io_iges.h:53
uint32_t struct_version
Definition occtl_io_iges.h:52
int32_t read_name
Definition occtl_io_iges.h:55
Definition occtl_io_iges.h:65
const void * p_next
Definition occtl_io_iges.h:67
int32_t write_brep
Definition occtl_io_iges.h:68
uint32_t struct_version
Definition occtl_io_iges.h:66
Definition occtl_topo_types.h:50