BRL-CAD
Loading...
Searching...
No Matches
bspline.h
Go to the documentation of this file.
1/* B S P L I N E . H
2 * BRL-CAD
3 *
4 * Copyright (c) 1993-2026 United States Government as represented by
5 * the U.S. Army Research Laboratory.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * version 2.1 as published by the Free Software Foundation.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this file; see the file named COPYING for more
18 * information.
19 */
20/** @addtogroup rt_nurb */
21/** @{ */
22/** @file rt/primitives/bspline.h */
23
24#ifndef RT_PRIMITIVES_BSPLINE_H
25#define RT_PRIMITIVES_BSPLINE_H
26
27#include "common.h"
28#include "rt/defines.h"
29
31
32/**
33 * Convert a BSPLINE (ID_BSPLINE) rt_db_internal to a BREP (ID_BREP)
34 * rt_db_internal in-place.
35 *
36 * The caller must already hold a loaded ID_BSPLINE internal (e.g. from
37 * rt_db_get_internal()). On success the internal is freed and replaced
38 * with an equivalent ID_BREP internal; the caller owns the result and
39 * must eventually call rt_db_free_internal().
40 *
41 * Returns 0 on success, -1 on failure (the original internal is
42 * unchanged on failure).
43 */
45
46/** @} */
47
49
50#endif /* RT_PRIMITIVES_BSPLINE_H */
51
52/*
53 * Local Variables:
54 * tab-width: 8
55 * mode: C
56 * indent-tabs-mode: t
57 * c-file-style: "stroustrup"
58 * End:
59 * ex: shiftwidth=4 tabstop=8
60 */
Definition dvec.h:74
Header file for the BRL-CAD common definitions.
int rt_nurb_to_brep(struct rt_db_internal *ip)