OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_io_brep.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
25#ifndef OCCTL_IO_BREP_H
26#define OCCTL_IO_BREP_H
27
28#include <stddef.h>
29#include <stdint.h>
30
31#include "occtl_core.h"
32#include "occtl_topo.h"
33
34#ifdef __cplusplus
35extern "C"
36{
37#endif
38
39#define OCCTL_IO_BREP_WRITE_OPTIONS_VERSION_1 1u
40
54
55#define OCCTL_IO_BREP_WRITE_OPTIONS_INIT {OCCTL_IO_BREP_WRITE_OPTIONS_VERSION_1, NULL, 1}
56
69
89OCCTL_API occtl_status_t OCCTL_CALL occtl_io_brep_read(const char* path,
90 occtl_graph_t** out_graph,
91 occtl_node_id_t* out_root);
92
116OCCTL_API occtl_status_t OCCTL_CALL
118 occtl_node_id_t root,
119 const char* path,
120 const occtl_io_brep_write_options_t* options);
121
122#ifdef __cplusplus
123} /* extern "C" */
124#endif
125
126#endif /* OCCTL_IO_BREP_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_brep_write(const occtl_graph_t *graph, occtl_node_id_t root, const char *path, const occtl_io_brep_write_options_t *options)
void occtl_io_brep_write_options_init(occtl_io_brep_write_options_t *options)
struct occtl_io_brep_write_options occtl_io_brep_write_options_t
occtl_status_t occtl_io_brep_read(const char *path, occtl_graph_t **out_graph, occtl_node_id_t *out_root)
OCCT-Light: topology module public API.
struct occtl_graph occtl_graph_t
Definition occtl_topo_types.h:152
Definition occtl_io_brep.h:49
uint32_t struct_version
Definition occtl_io_brep.h:50
int32_t write_triangulation
Definition occtl_io_brep.h:52
const void * p_next
Definition occtl_io_brep.h:51
Definition occtl_topo_types.h:50