BRL-CAD
Loading...
Searching...
No Matches
pipe.h
Go to the documentation of this file.
1/* P I P E . H
2 * BRL-CAD
3 *
4 * Copyright (c) 1993-2025 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_pipe */
21/** @{ */
22/** @file rt/primitives/pipe.h */
23
24#ifndef RT_PRIMITIVES_PIPE_H
25#define RT_PRIMITIVES_PIPE_H
26
27#include "common.h"
28#include "vmath.h"
29#include "bu/list.h"
30#include "bu/vls.h"
31#include "rt/defines.h"
32
34
35/* PIPE specific editing info */
37 struct wdb_pipe_pnt *es_pipe_pnt; /* Currently selected PIPE segment */
38};
39
40
41RT_EXPORT extern void rt_vls_pipe_pnt(struct bu_vls *vp,
42 int seg_no,
43 const struct rt_db_internal *ip,
44 double mm2local);
45RT_EXPORT extern void rt_pipe_pnt_print(const struct wdb_pipe_pnt *pipe_pnt, double mm2local);
46RT_EXPORT extern int rt_pipe_ck(const struct bu_list *headp);
47
50
56
57
58/** @} */
59
61
62#endif /* RT_PRIMITIVES_PIPE_H */
63
64/*
65 * Local Variables:
66 * tab-width: 8
67 * mode: C
68 * indent-tabs-mode: t
69 * c-file-style: "stroustrup"
70 * End:
71 * ex: shiftwidth=4 tabstop=8
72 */
Definition dvec.h:74
Header file for the BRL-CAD common definitions.
struct wdb_pipe_pnt * rt_pipe_add_pnt(struct rt_pipe_internal *pipeip, struct wdb_pipe_pnt *pp, const point_t new_pt)
int rt_pipe_ck(const struct bu_list *headp)
struct wdb_pipe_pnt * rt_pipe_get_seg_i(struct rt_pipe_internal *pipeip, int seg_i)
void rt_pipe_pnt_print(const struct wdb_pipe_pnt *pipe_pnt, double mm2local)
struct wdb_pipe_pnt * rt_pipe_ins_pnt(struct rt_pipe_internal *pipeip, struct wdb_pipe_pnt *pp, const point_t new_pt)
int rt_pipe_get_i_seg(struct rt_pipe_internal *pipeip, struct wdb_pipe_pnt *ps)
struct wdb_pipe_pnt * rt_pipe_delete_pnt(struct wdb_pipe_pnt *ps)
int rt_pipe_move_pnt(struct rt_pipe_internal *pipeip, struct wdb_pipe_pnt *ps, const point_t new_pt)
void rt_vls_pipe_pnt(struct bu_vls *vp, int seg_no, const struct rt_db_internal *ip, double mm2local)
struct wdb_pipe_pnt * rt_pipe_find_pnt_nearest_pnt(const struct bu_list *pipe_hd, const point_t model_pt, matp_t view2model)
fastf_t * matp_t
pointer to a 4x4 matrix
Definition vmath.h:373
fastf_t point_t[ELEMENTS_PER_POINT]
3-tuple point
Definition vmath.h:355
Definition vls.h:53
struct wdb_pipe_pnt * es_pipe_pnt
Definition pipe.h:37
fundamental vector, matrix, quaternion math macros