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-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_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/ptbl.h"
31#include "bu/vls.h"
32#include "rt/edit.h"
33#include "rt/defines.h"
34
36
37/* PIPE specific editing info */
39 struct wdb_pipe_pnt *es_pipe_pnt; /* Currently selected PIPE segment */
40};
41
50
51
52RT_EXPORT extern void rt_vls_pipe_pnt(struct bu_vls *vp,
53 int seg_no,
54 const struct rt_db_internal *ip,
55 double mm2local);
56RT_EXPORT extern void rt_pipe_pnt_print(const struct wdb_pipe_pnt *pipe_pnt, double mm2local);
57RT_EXPORT extern int rt_pipe_ck(const struct bu_list *headp);
58RT_EXPORT extern int rt_pipe_validate(struct bu_ptbl *violations, const struct rt_pipe_internal *pip, int flags);
60
63
69
70
71/** @} */
72
74
75#endif /* RT_PRIMITIVES_PIPE_H */
76
77/*
78 * Local Variables:
79 * tab-width: 8
80 * mode: C
81 * indent-tabs-mode: t
82 * c-file-style: "stroustrup"
83 * End:
84 * ex: shiftwidth=4 tabstop=8
85 */
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)
rt_pipe_vcode
Definition pipe.h:42
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)
int rt_pipe_validate(struct bu_ptbl *violations, const struct rt_pipe_internal *pip, int flags)
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)
int rt_pipe_project_apply(struct rt_constraint_edit_result *out, struct rt_db_internal *ip, const struct rt_constraint_edit_op *op, const struct rt_constraint_edit_ctx *ctx)
struct wdb_pipe_pnt * rt_pipe_find_pnt_nearest_pnt(const struct bu_list *pipe_hd, const point_t model_pt, matp_t view2model)
@ RT_PIPE_V_BEND_OVERLAP_SEGMENT
Definition pipe.h:45
@ RT_PIPE_V_ID_GE_OD
Definition pipe.h:43
@ RT_PIPE_V_BEND_LT_OR
Definition pipe.h:44
@ RT_PIPE_V_LAST_SEGMENT_TOO_SHORT
Definition pipe.h:46
@ RT_PIPE_V_DEGENERATE_SEGMENT
Definition pipe.h:47
@ RT_PIPE_V_NUM_POINTS_LT_2
Definition pipe.h:48
fastf_t * matp_t
pointer to a 4x4 matrix
Definition vmath.h:372
fastf_t point_t[ELEMENTS_PER_POINT]
3-tuple point
Definition vmath.h:354
Definition ptbl.h:53
Definition vls.h:53
struct wdb_pipe_pnt * es_pipe_pnt
Definition pipe.h:39
fundamental vector, matrix, quaternion math macros