BRL-CAD
commands.h
Go to the documentation of this file.
1/* C O M M A N D S . H
2 * BRL-CAD
3 *
4 * Copyright (c) 2008-2022 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 libged
21 *
22 * Geometry EDiting Library Commands
23 *
24 */
25/** @{ */
26/** @file ged/commands.h */
27/** @} */
28
29#ifndef GED_COMMANDS_H
30#define GED_COMMANDS_H
31
32#include "common.h"
33#include "ged/defines.h"
34
35
36__BEGIN_DECLS
37
38/** @addtogroup ged_plugins */
39/** @{ */
40/** Execute plugin based command */
41GED_EXPORT extern int ged_exec(struct ged *gedp, int argc, const char *argv[]);
42/** @} */
43
44/* LIBGED maintains this list - callers should regard it as read only. This
45 * list will change (size and pointers to individual command strings if
46 * commands are added or removed - caller is responsible for performing a new
47 * call to get an updated list and size if commands are altered. */
48GED_EXPORT size_t ged_cmd_list(const char * const **cmd_list);
49
50/* Report whether a string identifies a valid LIBGED command. If func is
51 * non-NULL, check that cmd and func both refer to the same function pointer
52 * (i.e., they are aliases for the same command.)
53 *
54 * If func is NULL, a 0 return indicates an valid GED command and non-zero
55 * indicates a valid command.
56 *
57 * If func is non-null:
58 * 0 indicates both cmd and func strings invoke the same LIBGED function
59 * 1 indicates that either or both of cmd and func were invalid GED commands
60 * 2 indicates that both were valid commands, but they did not match.
61 */
62GED_EXPORT int ged_cmd_valid(const char *cmd, const char *func);
63
64/* Given a candidate cmd name, find the closest match to it among defined
65 * GED commands. Returns the bu_editdist distance between cmd and *ncmd
66 * (0 if they match exactly - i.e. cmd does define a command.)
67 *
68 * Useful for suggesting corrections to commands which are not found.
69 */
70GED_EXPORT extern int
71ged_cmd_lookup(const char **ncmd, const char *cmd);
72
73/** @addtogroup ged_objects */
74/** @{ */
75/**
76 * Adjust object's attribute(s)
77 */
78GED_EXPORT extern int ged_adjust(struct ged *gedp, int argc, const char *argv[]);
79
80/**
81 * @brief Set, get, show, remove or append to attribute values for the specified object.
82 *
83 * The arguments for "set" and "append" subcommands are attribute name/value pairs.
84 * The arguments for "get", "rm", and "show" subcommands are attribute names.
85 * The "set" subcommand sets the specified attributes for the object.
86 * The "append" subcommand appends the provided value to an existing attribute,
87 * or creates a new attribute if it does not already exist.
88 * The "get" subcommand retrieves and displays the specified attributes.
89 * The "rm" subcommand deletes the specified attributes.
90 * The "show" subcommand does a "get" and displays the results in a user readable format.
91 */
92GED_EXPORT extern int ged_attr(struct ged *gedp, int argc, const char *argv[]);
93
94/**
95 * List attributes (brief).
96 */
97GED_EXPORT extern int ged_cat(struct ged *gedp, int argc, const char *argv[]);
98
99/**
100 * Set combination color.
101 */
102GED_EXPORT extern int ged_comb_color(struct ged *gedp, int argc, const char *argv[]);
103
104/**
105 * Create or extend combination w/booleans.
106 */
107GED_EXPORT extern int ged_comb(struct ged *gedp, int argc, const char *argv[]);
108
109/**
110 * Create or extend a combination using standard notation.
111 */
112GED_EXPORT extern int ged_comb_std(struct ged *gedp, int argc, const char *argv[]);
113
114/**
115 * Set/get comb's members.
116 */
117GED_EXPORT extern int ged_combmem(struct ged *gedp, int argc, const char *argv[]);
118
119/**
120 * Copy a database object
121 */
122GED_EXPORT extern int ged_copy(struct ged *gedp, int argc, const char *argv[]);
123
124/**
125 * Copy an 'evaluated' path solid
126 */
127GED_EXPORT extern int ged_copyeval(struct ged *gedp, int argc, const char *argv[]);
128
129/**
130 * Copy the matrix from one combination's arc to another.
131 */
132GED_EXPORT extern int ged_copymat(struct ged *gedp, int argc, const char *argv[]);
133
134
135/**
136 * Edit region ident codes.
137 */
138GED_EXPORT extern int ged_edcodes(struct ged *gedp, int argc, const char *argv[]);
139
140/**
141 * Edit combination.
142 */
143GED_EXPORT extern int ged_edcomb(struct ged *gedp, int argc, const char *argv[]);
144
145/**
146 * Edit objects, by using subcommands.
147 */
148GED_EXPORT extern int ged_edit(struct ged *gedp, int argc, const char *argv[]);
149
150/**
151 * Checks to see if the specified database object exists.
152 */
153GED_EXPORT extern int ged_exists(struct ged *gedp, int argc, const char *argv[]);
154
155/**
156 * returns form for objects of type "type"
157 */
158GED_EXPORT extern int ged_form(struct ged *gedp, int argc, const char *argv[]);
159
160/**
161 * Get object attributes
162 */
163GED_EXPORT extern int ged_get(struct ged *gedp, int argc, const char *argv[]);
164
165/**
166 * Get combination information
167 */
168GED_EXPORT extern int ged_get_comb(struct ged *gedp, int argc, const char *argv[]);
169
170/**
171 * Create or append objects to a group
172 */
173GED_EXPORT extern int ged_group(struct ged *gedp, int argc, const char *argv[]);
174
175/**
176 * Heal command to heal the defects in bots
177 */
178GED_EXPORT extern int ged_heal(struct ged *gedp, int argc, const char *argv[]);
179
180/**
181 * Set the "hidden" flag for the specified objects so they do not
182 * appear in an "ls" command output
183 */
184GED_EXPORT extern int ged_hide(struct ged *gedp, int argc, const char *argv[]);
185
186/**
187 * Add instance of obj to comb
188 */
189GED_EXPORT extern int ged_instance(struct ged *gedp, int argc, const char *argv[]);
190
191/**
192 * Save/keep the specified objects in the specified file
193 */
194GED_EXPORT extern int ged_keep(struct ged *gedp, int argc, const char *argv[]);
195
196/**
197 * List attributes of regions within a group/combination.
198 */
199GED_EXPORT extern int ged_lc(struct ged *gedp, int argc, const char *argv[]);
200
201/**
202 * List object information, verbose.
203 */
204GED_EXPORT extern int ged_list(struct ged *gedp, int argc, const char *argv[]);
205
206/**
207 * Make a unique object name.
208 */
209GED_EXPORT extern int ged_make_name(struct ged *gedp, int argc, const char *argv[]);
210
211/**
212 * Multiply a point by a 4x4 matrix yielding the transformed point
213 */
214GED_EXPORT extern int ged_mat4x3pnt(struct ged *gedp, int argc, const char *argv[]);
215
216/**
217 * Create a matrix given an azimuth and elevation
218 */
219GED_EXPORT extern int ged_mat_ae(struct ged *gedp, int argc, const char *argv[]);
220
221/**
222 * Create a matrix that is the result of multiplying the two specified matrices
223 */
224GED_EXPORT extern int ged_mat_mul(struct ged *gedp, int argc, const char *argv[]);
225
226/**
227 * Create a matrix that will scale about a given point
228 */
229GED_EXPORT extern int ged_mat_scale_about_pnt(struct ged *gedp, int argc, const char *argv[]);
230
231/**
232 * Modify material information.
233 */
234GED_EXPORT extern int ged_mater(struct ged *gedp, int argc, const char *argv[]);
235
236/**
237 * Globs expression against database objects, does not return tokens that match nothing
238 */
239GED_EXPORT extern int ged_match(struct ged *gedp, int argc, const char *argv[]);
240
241/**
242 * Set combination attributes
243 */
244GED_EXPORT extern int ged_put_comb(struct ged *gedp, int argc, const char *argv[]);
245
246/**
247 * Create a database object
248 */
249GED_EXPORT extern int ged_put(struct ged *gedp, int argc, const char *argv[]);
250
251/**
252 * Edit region/comb
253 */
254GED_EXPORT extern int ged_red(struct ged *gedp, int argc, const char *argv[]);
255
256/**
257 * Remove members from a combination
258 */
259GED_EXPORT extern int ged_remove(struct ged *gedp, int argc, const char *argv[]);
260
261/**
262 * Unset the "hidden" flag for the specified objects so they will appear in a "t" or "ls" command output
263 */
264GED_EXPORT extern int ged_unhide(struct ged *gedp, int argc, const char *argv[]);
265
266/**
267 * Read material properties from a file.
268 */
269GED_EXPORT extern int ged_rmater(struct ged *gedp, int argc, const char *argv[]);
270
271/**
272 * Write material properties to a file for specified combination(s).
273 */
274GED_EXPORT extern int ged_wmater(struct ged *gedp, int argc, const char *argv[]);
275
276
277
278/* defined in inside.c */
279GED_EXPORT extern int ged_inside_internal(struct ged *gedp,
280 struct rt_db_internal *ip,
281 int argc,
282 const char *argv[],
283 int arg,
284 char *o_name);
285
286
287/**
288 * Finds the inside primitive per the specified thickness.
289 */
290GED_EXPORT extern int ged_inside(struct ged *gedp, int argc, const char *argv[]);
291
292
293/**
294 * Creates an arb8 given the following:
295 * 1) 3 points of one face
296 * 2) coord x, y or z and 2 coordinates of the 4th point in that face
297 * 3) thickness
298 */
299GED_EXPORT extern int ged_3ptarb(struct ged *gedp, int argc, const char *argv[]);
300
301/**
302 * Creates an arb8 given rotation and fallback angles
303 */
304GED_EXPORT extern int ged_arb(struct ged *gedp, int argc, const char *argv[]);
305
306/**
307 * Creates an annotation.
308 */
309GED_EXPORT extern int ged_annotate(struct ged *gedp, int argc, const char *argv[]);
310
311/**
312 * Append a pipe point.
313 */
314GED_EXPORT extern int ged_pipe_append_pnt(struct ged *gedp, int argc, const char *argv[]);
315
316/**
317 * Allow editing of the matrix, etc., along an arc.
318 */
319GED_EXPORT extern int ged_arced(struct ged *gedp, int argc, const char *argv[]);
320
321/**
322 * Tessellates each operand object, then performs the
323 * boolean evaluation, storing result in 'new_obj'
324 */
325GED_EXPORT extern int ged_bev(struct ged *gedp, int argc, const char *argv[]);
326
327
328/**
329 * @brief Manipulate opaque binary objects.
330 *
331 * Must specify one of -i (for creating or adjusting objects (input))
332 * or -o for extracting objects (output).
333 * If the major type is "u" the minor type must be one of:
334 * "f" -> float
335 * "d" -> double
336 * "c" -> char (8 bit)
337 * "s" -> short (16 bit)
338 * "i" -> int (32 bit)
339 * "l" -> long (64 bit)
340 * "C" -> unsigned char (8 bit)
341 * "S" -> unsigned short (16 bit)
342 * "I" -> unsigned int (32 bit)
343 * "L" -> unsigned long (64 bit)
344 * For input, source is a file name and dest is an object name.
345 * For output source is an object name and dest is a file name.
346 * Only uniform array binary objects (major_type=u) are currently supported}}
347 */
348GED_EXPORT extern int ged_bo(struct ged *gedp, int argc, const char *argv[]);
349
350/**
351 * Query or manipulate properties of bot
352 */
353GED_EXPORT extern int ged_bot(struct ged *gedp, int argc, const char *argv[]);
354
355/**
356 * Create new_bot by condensing old_bot
357 */
358GED_EXPORT extern int ged_bot_condense(struct ged *gedp, int argc, const char *argv[]);
359
360/**
361 * Uses edge decimation to reduce the number of triangles in the
362 * specified BOT while keeping within the specified constraints.
363 */
364GED_EXPORT extern int ged_bot_decimate(struct ged *gedp, int argc, const char *argv[]);
365
366/**
367 * Dump bots to the specified format.
368 */
369GED_EXPORT extern int ged_bot_dump(struct ged *gedp, int argc, const char *argv[]);
370
371/**
372 * Dump displayed bots to the specified format.
373 */
374GED_EXPORT extern int ged_dbot_dump(struct ged *gedp, int argc, const char *argv[]);
375
376/**
377 * Split the specified bot edge. This splits the triangles that share the edge.
378 */
379GED_EXPORT extern int ged_bot_edge_split(struct ged *gedp, int argc, const char *argv[]);
380
381/**
382 * Create new_bot by fusing faces in old_bot
383 */
384GED_EXPORT extern int ged_bot_face_fuse(struct ged *gedp, int argc, const char *argv[]);
385
386/**
387 * Sort the facelist of BOT solids to optimize ray trace performance
388 * for a particular number of triangles per raytrace piece.
389 */
390GED_EXPORT extern int ged_bot_face_sort(struct ged *gedp, int argc, const char *argv[]);
391
392/**
393 * Split the specified bot face into three parts (i.e. by adding a point to the center)
394 */
395GED_EXPORT extern int ged_bot_face_split(struct ged *gedp, int argc, const char *argv[]);
396
397/**
398 * Flip/reverse the specified bot's orientation.
399 */
400GED_EXPORT extern int ged_bot_flip(struct ged *gedp, int argc, const char *argv[]);
401
402/**
403 * Fuse bot
404 */
405GED_EXPORT extern int ged_bot_fuse(struct ged *gedp, int argc, const char *argv[]);
406
407/**
408 * Create bot_dest by merging the bot sources.
409 */
410GED_EXPORT extern int ged_bot_merge(struct ged *gedp, int argc, const char *argv[]);
411
412/**
413 * Calculate vertex normals for the BOT primitive
414 */
415GED_EXPORT extern int ged_bot_smooth(struct ged *gedp, int argc, const char *argv[]);
416
417/**
418 * Split the specified bot
419 */
420GED_EXPORT extern int ged_bot_split(struct ged *gedp, int argc, const char *argv[]);
421
422/**
423 * Sync the specified bot's orientation (i.e. make sure all neighboring triangles have same orientation).
424 */
425GED_EXPORT extern int ged_bot_sync(struct ged *gedp, int argc, const char *argv[]);
426
427/**
428 * Fuse bot vertices
429 */
430GED_EXPORT extern int ged_bot_vertex_fuse(struct ged *gedp, int argc, const char *argv[]);
431
432/**
433 * Remesh an existing bot.
434 *
435 * This routine will take an existing BoT and perform a global
436 * remeshing. This operation will heal and repair some polygonal mesh
437 * errors such as elimination of dangling faces, elimination of
438 * overlapping faces, and closure of small gaps (solidity errors).
439 *
440 * This routine currently only works on solid mesh geometry.
441 */
442GED_EXPORT int ged_bot_remesh(struct ged *gedp, int argc, const char *argv[]);
443
444/**
445 * BREP utility command
446 */
447GED_EXPORT extern int ged_brep(struct ged *gedp, int argc, const char *argv[]);
448GED_EXPORT extern int ged_brep2(struct ged *gedp, int argc, const char *argv[]);
449
450/**
451 * Create constraint object
452 */
453GED_EXPORT extern int ged_cc(struct ged *gedp, int argc, const char *argv[]);
454
455/**
456 * Performs a deep copy of object.
457 */
458GED_EXPORT extern int ged_clone(struct ged *gedp, int argc, const char *argv[]);
459
460/**
461 * Make coil shapes.
462 */
463GED_EXPORT extern int ged_coil(struct ged *gedp, int argc, const char *argv[]);
464
465/**
466 * create, update, remove, and list geometric and dimensional constraints.
467 */
468GED_EXPORT extern int ged_constraint(struct ged *gedp, int argc, const char *argv[]);
469
470/**
471 * Copy cylinder and position at end of original cylinder
472 */
473GED_EXPORT extern int ged_cpi(struct ged *gedp, int argc, const char *argv[]);
474
475/**
476 * Delete the specified pipe point.
477 */
478GED_EXPORT extern int ged_pipe_delete_pnt(struct ged *gedp, int argc, const char *argv[]);
479
480/**
481 * DSP utility command
482 */
483GED_EXPORT extern int ged_dsp(struct ged *gedp, int argc, const char *argv[]);
484
485/**
486 * Arb specific edits.
487 */
488GED_EXPORT extern int ged_edarb(struct ged *gedp, int argc, const char *argv[]);
489
490/**
491 * Edit combination materials.
492 *
493 * Command relies on rmater, editit, and wmater commands.
494 */
495GED_EXPORT extern int ged_edmater(struct ged *gedp, int argc, const char *argv[]);
496
497/**
498 * Evaluate objects via NMG tessellation
499 */
500GED_EXPORT extern int ged_ev(struct ged *gedp, int argc, const char *argv[]);
501
502/**
503 * Facetize the specified objects
504 */
505GED_EXPORT extern int ged_facetize(struct ged *gedp, int argc, const char *argv[]);
506
507/**
508 * Find the arb edge nearest the specified point in view coordinates.
509 */
510GED_EXPORT extern int ged_find_arb_edge_nearest_pnt(struct ged *gedp, int argc, const char *argv[]);
511
512/**
513 * Find the bot edge nearest the specified point in view coordinates.
514 */
515GED_EXPORT extern int ged_find_bot_edge_nearest_pnt(struct ged *gedp, int argc, const char *argv[]);
516
517/**
518 * Find the bot point nearest the specified point in view coordinates.
519 */
520GED_EXPORT extern int ged_find_bot_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[]);
521
522/**
523 * Add a metaball point.
524 */
525GED_EXPORT extern int ged_metaball_add_pnt(struct ged *gedp, int argc, const char *argv[]);
526
527/**
528 * Delete a metaball point.
529 */
530GED_EXPORT extern int ged_metaball_delete_pnt(struct ged *gedp, int argc, const char *argv[]);
531
532/**
533 * Find the metaball point nearest the specified point in model coordinates.
534 */
535GED_EXPORT extern int ged_find_metaball_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[]);
536
537/**
538 * Move a metaball point.
539 */
540GED_EXPORT extern int ged_metaball_move_pnt(struct ged *gedp, int argc, const char *argv[]);
541
542/**
543 * Find the pipe point nearest the specified point in model coordinates.
544 */
545GED_EXPORT extern int ged_find_pipe_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[]);
546
547/**
548 * Given an NMG solid, break it up into several NMG solids, each
549 * containing a single shell with a single sub-element.
550 */
551GED_EXPORT extern int ged_fracture(struct ged *gedp, int argc, const char *argv[]);
552/**
553 * Get a bot's edges
554 */
555GED_EXPORT extern int ged_get_bot_edges(struct ged *gedp, int argc, const char *argv[]);
556
557/**
558 * Get the object's type
559 */
560GED_EXPORT extern int ged_get_type(struct ged *gedp, int argc, const char *argv[]);
561
562/**
563 * Create a primitive via keyboard.
564 */
565GED_EXPORT extern int ged_in(struct ged *gedp, int argc, const char *argv[]);
566
567/**
568 * Makes a bot object out of the specified section.
569 */
570GED_EXPORT extern int ged_importFg4Section(struct ged *gedp, int argc, const char *argv[]);
571
572/**
573 * Joint command ported to the libged library.
574 */
575GED_EXPORT extern int ged_joint(struct ged *gedp, int argc, const char *argv[]);
576
577/**
578 * New joint command.
579 */
580GED_EXPORT extern int ged_joint2(struct ged *gedp, int argc, const char *argv[]);
581
582/**
583 * Kill/delete the specified objects from the database
584 */
585GED_EXPORT extern int ged_kill(struct ged *gedp, int argc, const char *argv[]);
586
587/**
588 * Kill/delete the specified objects from the database, removing all references
589 */
590GED_EXPORT extern int ged_killall(struct ged *gedp, int argc, const char *argv[]);
591
592/**
593 * Kill all references to the specified object(s).
594 */
595GED_EXPORT extern int ged_killrefs(struct ged *gedp, int argc, const char *argv[]);
596
597/**
598 * Kill all paths belonging to objects
599 */
600GED_EXPORT extern int ged_killtree(struct ged *gedp, int argc, const char *argv[]);
601
602/**
603 * List object's tree as a tcl list of {operator object} pairs
604 */
605GED_EXPORT extern int ged_lt(struct ged *gedp, int argc, const char *argv[]);
606
607/**
608 * Make a new primitive.
609 */
610GED_EXPORT extern int ged_make(struct ged *gedp, int argc, const char *argv[]);
611
612/**
613 * Creates a point-cloud (pnts) given the following:
614 * 1) object name
615 * 2) path and filename to point data file
616 * 3) point data file format (xyzrgbsijk?)
617 * 4) point data file units or conversion factor to mm
618 * 5) default diameter of each point
619 */
620GED_EXPORT extern int ged_make_pnts(struct ged *gedp, int argc, const char *argv[]);
621
622/**
623 * Mirror the primitive or combination along the specified axis.
624 */
625GED_EXPORT extern int ged_mirror(struct ged *gedp, int argc, const char *argv[]);
626
627/**
628 * Move an arb's edge through point
629 */
630GED_EXPORT extern int ged_move_arb_edge(struct ged *gedp, int argc, const char *argv[]);
631
632/**
633 * Move/rename a database object
634 */
635GED_EXPORT extern int ged_move(struct ged *gedp, int argc, const char *argv[]);
636
637/**
638 * Move/rename all occurrences object
639 */
640GED_EXPORT extern int ged_move_all(struct ged *gedp, int argc, const char *argv[]);
641
642/**
643 * Move an arb's face through point
644 */
645GED_EXPORT extern int ged_move_arb_face(struct ged *gedp, int argc, const char *argv[]);
646
647/**
648 * Move the specified bot point. This can be relative or absolute.
649 */
650GED_EXPORT extern int ged_bot_move_pnt(struct ged *gedp, int argc, const char *argv[]);
651
652/**
653 * Move the specified bot points. This movement is always relative.
654 */
655GED_EXPORT extern int ged_bot_move_pnts(struct ged *gedp, int argc, const char *argv[]);
656
657/**
658 * Move the specified pipe point.
659 */
660GED_EXPORT extern int ged_pipe_move_pnt(struct ged *gedp, int argc, const char *argv[]);
661
662/**
663 * NMG command with subcommands for altering NMG datastructure.
664 */
665GED_EXPORT extern int ged_nmg(struct ged *gedp, int argc, const char *argv[]);
666
667/**
668 * Decimate NMG primitive via edge collapse
669 */
670GED_EXPORT extern int ged_nmg_collapse(struct ged *gedp, int argc, const char *argv[]);
671
672/**
673 * Attempt to fix an NMG primitive's normals.
674 */
675GED_EXPORT extern int ged_nmg_fix_normals(struct ged *gedp, int argc, const char *argv[]);
676
677/**
678 * Simplify the NMG primitive, if possible
679 */
680GED_EXPORT extern int ged_nmg_simplify(struct ged *gedp, int argc, const char *argv[]);
681
682/**
683 * Set/get object center.
684 */
685GED_EXPORT extern int ged_ocenter(struct ged *gedp, int argc, const char *argv[]);
686
687/**
688 * Rotate obj about the keypoint by
689 */
690GED_EXPORT extern int ged_orotate(struct ged *gedp, int argc, const char *argv[]);
691
692/**
693 * Scale obj about the keypoint by sf.
694 */
695GED_EXPORT extern int ged_oscale(struct ged *gedp, int argc, const char *argv[]);
696
697/**
698 * Translate obj by dx dy dz.
699 */
700GED_EXPORT extern int ged_otranslate(struct ged *gedp, int argc, const char *argv[]);
701
702/**
703 * Prefix the specified objects with the specified prefix
704 */
705GED_EXPORT extern int ged_prefix(struct ged *gedp, int argc, const char *argv[]);
706
707/**
708 * Prepend a pipe point.
709 */
710GED_EXPORT extern int ged_pipe_prepend_pnt(struct ged *gedp, int argc, const char *argv[]);
711
712/**
713 * Rotate obj's attributes by rvec.
714 */
715GED_EXPORT extern int ged_protate(struct ged *gedp, int argc, const char *argv[]);
716
717/**
718 * Scale obj's attributes by sf.
719 */
720GED_EXPORT extern int ged_pscale(struct ged *gedp, int argc, const char *argv[]);
721
722/**
723 * Set an obj's attribute to the specified value.
724 */
725GED_EXPORT extern int ged_pset(struct ged *gedp, int argc, const char *argv[]);
726
727/**
728 * Translate obj's attributes by tvec.
729 */
730GED_EXPORT extern int ged_ptranslate(struct ged *gedp, int argc, const char *argv[]);
731
732/**
733 *Pull objects' path transformations from primitives
734 */
735GED_EXPORT extern int ged_pull(struct ged *gedp, int argc, const char *argv[]);
736
737/**
738 * Push objects' path transformations to primitives
739 */
740GED_EXPORT extern int ged_push(struct ged *gedp, int argc, const char *argv[]);
741
742/**
743 * Replace the matrix on an arc
744 */
745GED_EXPORT extern int ged_putmat(struct ged *gedp, int argc, const char *argv[]);
746
747/**
748 * Create or append objects to a region
749 */
750GED_EXPORT extern int ged_region(struct ged *gedp, int argc, const char *argv[]);
751
752/**
753 * Makes and arb given a point, 2 coord of 3 pnts, rot, fb and thickness.
754 */
755GED_EXPORT extern int ged_rfarb(struct ged *gedp, int argc, const char *argv[]);
756
757/**
758 * Rotate an arb's face through point
759 */
760GED_EXPORT extern int ged_rotate_arb_face(struct ged *gedp, int argc, const char *argv[]);
761
762/**
763 * Rotate the point.
764 */
765GED_EXPORT extern int ged_rot_point(struct ged *gedp, int argc, const char *argv[]);
766
767/**
768 * Set the transparency of the specified object
769 *
770 * @todo - belongs in view?
771 */
772GED_EXPORT extern int ged_set_transparency(struct ged *gedp, int argc, const char *argv[]);
773
774/**
775 * Breaks the NMG model into separate shells
776 */
777GED_EXPORT extern int ged_shells(struct ged *gedp, int argc, const char *argv[]);
778
779/**
780 * Create or append objects to a group using a sphere
781 */
782GED_EXPORT extern int ged_sphgroup(struct ged *gedp, int argc, const char *argv[]);
783
784/**
785 * Return the specified region's id.
786 */
787GED_EXPORT extern int ged_whatid(struct ged *gedp, int argc, const char *argv[]);
788
789/**
790 * Push object path transformations to solids, creating primitives if necessary
791 */
792GED_EXPORT extern int ged_xpush(struct ged *gedp, int argc, const char *argv[]);
793GED_EXPORT extern int ged_npush(struct ged *gedp, int argc, const char *argv[]);
794
795/**
796 * Voxelize the specified objects
797 */
798GED_EXPORT extern int ged_voxelize(struct ged *gedp, int argc, const char *argv[]);
799
800
801/** defined in get_obj_bounds.c
802 *
803 * @todo - belongs in view?
804 *
805 */
806GED_EXPORT extern int ged_get_obj_bounds(struct ged *gedp,
807 int argc,
808 const char *argv[],
809 int use_air,
810 point_t rpp_min,
811 point_t rpp_max);
812
813
814/**
815 * Decompose nmg_solid into maximally connected shells
816 */
817GED_EXPORT extern int ged_decompose(struct ged *gedp, int argc, const char *argv[]);
818
819
820/**
821 * returns form for objects of type "type"
822 */
823GED_EXPORT extern int ged_form(struct ged *gedp, int argc, const char *argv[]);
824
825/**
826 * Create a human
827 */
828GED_EXPORT extern int ged_human(struct ged *gedp, int argc, const char *argv[]);
829
830/**
831 * Simpler, command-line version of 'mater' command.
832 */
833GED_EXPORT extern int ged_shader(struct ged *gedp, int argc, const char *argv[]);
834
835/**
836 * Create a tire
837 */
838GED_EXPORT extern int ged_tire(struct ged *gedp, int argc, const char *argv[]);
839
840/**
841 * Create a track
842 */
843GED_EXPORT extern int ged_track(struct ged *gedp, int argc, const char *argv[]);
844
845/**
846 *
847 *
848 * Usage:
849 * tracker [-fh] [# links] [increment] [spline.iges] [link...]
850 */
851GED_EXPORT extern int ged_tracker(struct ged *gedp, int argc, const char *argv[]);
852
853/* defined in track.c */
854GED_EXPORT extern int ged_track2(struct bu_vls *log_str, struct rt_wdb *wdbp, const char *argv[]);
855
856/* defined in wdb_importFg4Section.c */
857GED_EXPORT int wdb_importFg4Section_cmd(void *data, int argc, const char *argv[]);
858
859/**
860 * manipulate point set geometry
861 */
862GED_EXPORT int ged_pnts(struct ged *gedp, int argc, const char *argv[]);
863
864/**
865 * Report object information.
866 */
867GED_EXPORT extern int ged_stat(struct ged *gedp, int argc, const char *argv[]);
868
869
870
871/* Debugging command for brep plotting */
872GED_EXPORT extern int ged_dplot(struct ged *gedp, int argc, const char *argv[]);
873
874/** @} */
875
876
877__END_DECLS
878
879
880#endif /* GED_COMMANDS_H */
881
882/*
883 * Local Variables:
884 * tab-width: 8
885 * mode: C
886 * indent-tabs-mode: t
887 * c-file-style: "stroustrup"
888 * End:
889 * ex: shiftwidth=4 tabstop=8
890 */
int ged_cmd_lookup(const char **ncmd, const char *cmd)
size_t ged_cmd_list(const char *const **cmd_list)
int ged_cmd_valid(const char *cmd, const char *func)
Header file for the BRL-CAD common definitions.
int ged_wmater(struct ged *gedp, int argc, const char *argv[])
int ged_brep(struct ged *gedp, int argc, const char *argv[])
int ged_bot(struct ged *gedp, int argc, const char *argv[])
int ged_put(struct ged *gedp, int argc, const char *argv[])
int ged_track2(struct bu_vls *log_str, struct rt_wdb *wdbp, const char *argv[])
int ged_voxelize(struct ged *gedp, int argc, const char *argv[])
int ged_decompose(struct ged *gedp, int argc, const char *argv[])
int ged_red(struct ged *gedp, int argc, const char *argv[])
int ged_find_bot_edge_nearest_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_copy(struct ged *gedp, int argc, const char *argv[])
int ged_combmem(struct ged *gedp, int argc, const char *argv[])
int ged_move_all(struct ged *gedp, int argc, const char *argv[])
int ged_ptranslate(struct ged *gedp, int argc, const char *argv[])
int ged_coil(struct ged *gedp, int argc, const char *argv[])
int ged_move_arb_face(struct ged *gedp, int argc, const char *argv[])
int ged_constraint(struct ged *gedp, int argc, const char *argv[])
int ged_find_metaball_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_bot_condense(struct ged *gedp, int argc, const char *argv[])
int ged_kill(struct ged *gedp, int argc, const char *argv[])
int ged_comb(struct ged *gedp, int argc, const char *argv[])
int ged_pipe_append_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_hide(struct ged *gedp, int argc, const char *argv[])
int ged_lt(struct ged *gedp, int argc, const char *argv[])
int ged_region(struct ged *gedp, int argc, const char *argv[])
int ged_killtree(struct ged *gedp, int argc, const char *argv[])
int ged_bo(struct ged *gedp, int argc, const char *argv[])
Manipulate opaque binary objects.
int ged_pull(struct ged *gedp, int argc, const char *argv[])
int ged_rmater(struct ged *gedp, int argc, const char *argv[])
int ged_pset(struct ged *gedp, int argc, const char *argv[])
int ged_cpi(struct ged *gedp, int argc, const char *argv[])
int ged_mat_scale_about_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_edcodes(struct ged *gedp, int argc, const char *argv[])
int ged_mat4x3pnt(struct ged *gedp, int argc, const char *argv[])
int ged_nmg_collapse(struct ged *gedp, int argc, const char *argv[])
int ged_bot_move_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_bot_vertex_fuse(struct ged *gedp, int argc, const char *argv[])
int ged_track(struct ged *gedp, int argc, const char *argv[])
int ged_dsp(struct ged *gedp, int argc, const char *argv[])
int ged_metaball_move_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_oscale(struct ged *gedp, int argc, const char *argv[])
int ged_joint(struct ged *gedp, int argc, const char *argv[])
int ged_orotate(struct ged *gedp, int argc, const char *argv[])
int ged_put_comb(struct ged *gedp, int argc, const char *argv[])
int ged_exists(struct ged *gedp, int argc, const char *argv[])
int ged_sphgroup(struct ged *gedp, int argc, const char *argv[])
int ged_push(struct ged *gedp, int argc, const char *argv[])
int ged_mirror(struct ged *gedp, int argc, const char *argv[])
int ged_bot_smooth(struct ged *gedp, int argc, const char *argv[])
int ged_edit(struct ged *gedp, int argc, const char *argv[])
int ged_annotate(struct ged *gedp, int argc, const char *argv[])
int ged_find_bot_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_find_pipe_pnt_nearest_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_make_name(struct ged *gedp, int argc, const char *argv[])
int ged_rfarb(struct ged *gedp, int argc, const char *argv[])
int ged_nmg_fix_normals(struct ged *gedp, int argc, const char *argv[])
int ged_get_type(struct ged *gedp, int argc, const char *argv[])
int ged_comb_color(struct ged *gedp, int argc, const char *argv[])
int ged_bot_decimate(struct ged *gedp, int argc, const char *argv[])
int ged_unhide(struct ged *gedp, int argc, const char *argv[])
int ged_rot_point(struct ged *gedp, int argc, const char *argv[])
int ged_whatid(struct ged *gedp, int argc, const char *argv[])
int ged_cat(struct ged *gedp, int argc, const char *argv[])
int ged_mat_mul(struct ged *gedp, int argc, const char *argv[])
int ged_pipe_move_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_keep(struct ged *gedp, int argc, const char *argv[])
int ged_instance(struct ged *gedp, int argc, const char *argv[])
int ged_adjust(struct ged *gedp, int argc, const char *argv[])
int ged_pscale(struct ged *gedp, int argc, const char *argv[])
int ged_inside_internal(struct ged *gedp, struct rt_db_internal *ip, int argc, const char *argv[], int arg, char *o_name)
int ged_inside(struct ged *gedp, int argc, const char *argv[])
int ged_pnts(struct ged *gedp, int argc, const char *argv[])
int ged_make_pnts(struct ged *gedp, int argc, const char *argv[])
int ged_group(struct ged *gedp, int argc, const char *argv[])
int ged_pipe_delete_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_bev(struct ged *gedp, int argc, const char *argv[])
int ged_attr(struct ged *gedp, int argc, const char *argv[])
Set, get, show, remove or append to attribute values for the specified object.
int ged_bot_merge(struct ged *gedp, int argc, const char *argv[])
int ged_move(struct ged *gedp, int argc, const char *argv[])
int ged_metaball_add_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_bot_sync(struct ged *gedp, int argc, const char *argv[])
int ged_bot_face_sort(struct ged *gedp, int argc, const char *argv[])
int ged_killall(struct ged *gedp, int argc, const char *argv[])
int ged_npush(struct ged *gedp, int argc, const char *argv[])
int ged_edcomb(struct ged *gedp, int argc, const char *argv[])
int ged_comb_std(struct ged *gedp, int argc, const char *argv[])
int ged_protate(struct ged *gedp, int argc, const char *argv[])
int ged_bot_face_fuse(struct ged *gedp, int argc, const char *argv[])
int ged_get_obj_bounds(struct ged *gedp, int argc, const char *argv[], int use_air, point_t rpp_min, point_t rpp_max)
int ged_arced(struct ged *gedp, int argc, const char *argv[])
int ged_human(struct ged *gedp, int argc, const char *argv[])
int ged_pipe_prepend_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_importFg4Section(struct ged *gedp, int argc, const char *argv[])
int ged_tire(struct ged *gedp, int argc, const char *argv[])
int ged_facetize(struct ged *gedp, int argc, const char *argv[])
int ged_copyeval(struct ged *gedp, int argc, const char *argv[])
int ged_dplot(struct ged *gedp, int argc, const char *argv[])
int ged_joint2(struct ged *gedp, int argc, const char *argv[])
int ged_shader(struct ged *gedp, int argc, const char *argv[])
int ged_ocenter(struct ged *gedp, int argc, const char *argv[])
int ged_fracture(struct ged *gedp, int argc, const char *argv[])
int ged_stat(struct ged *gedp, int argc, const char *argv[])
int ged_putmat(struct ged *gedp, int argc, const char *argv[])
int ged_rotate_arb_face(struct ged *gedp, int argc, const char *argv[])
int ged_heal(struct ged *gedp, int argc, const char *argv[])
int ged_mat_ae(struct ged *gedp, int argc, const char *argv[])
int ged_xpush(struct ged *gedp, int argc, const char *argv[])
int ged_make(struct ged *gedp, int argc, const char *argv[])
int ged_get(struct ged *gedp, int argc, const char *argv[])
int ged_list(struct ged *gedp, int argc, const char *argv[])
int ged_nmg_simplify(struct ged *gedp, int argc, const char *argv[])
int ged_bot_split(struct ged *gedp, int argc, const char *argv[])
int ged_killrefs(struct ged *gedp, int argc, const char *argv[])
int ged_cc(struct ged *gedp, int argc, const char *argv[])
int ged_mater(struct ged *gedp, int argc, const char *argv[])
int ged_copymat(struct ged *gedp, int argc, const char *argv[])
int ged_get_bot_edges(struct ged *gedp, int argc, const char *argv[])
int ged_prefix(struct ged *gedp, int argc, const char *argv[])
int ged_nmg(struct ged *gedp, int argc, const char *argv[])
int ged_bot_move_pnts(struct ged *gedp, int argc, const char *argv[])
int ged_edmater(struct ged *gedp, int argc, const char *argv[])
int ged_bot_edge_split(struct ged *gedp, int argc, const char *argv[])
int ged_bot_remesh(struct ged *gedp, int argc, const char *argv[])
int ged_tracker(struct ged *gedp, int argc, const char *argv[])
int ged_metaball_delete_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_remove(struct ged *gedp, int argc, const char *argv[])
int ged_arb(struct ged *gedp, int argc, const char *argv[])
int ged_otranslate(struct ged *gedp, int argc, const char *argv[])
int ged_shells(struct ged *gedp, int argc, const char *argv[])
int ged_dbot_dump(struct ged *gedp, int argc, const char *argv[])
int ged_brep2(struct ged *gedp, int argc, const char *argv[])
int ged_bot_face_split(struct ged *gedp, int argc, const char *argv[])
int ged_find_arb_edge_nearest_pnt(struct ged *gedp, int argc, const char *argv[])
int ged_clone(struct ged *gedp, int argc, const char *argv[])
int ged_set_transparency(struct ged *gedp, int argc, const char *argv[])
int ged_bot_flip(struct ged *gedp, int argc, const char *argv[])
int ged_match(struct ged *gedp, int argc, const char *argv[])
int wdb_importFg4Section_cmd(void *data, int argc, const char *argv[])
int ged_edarb(struct ged *gedp, int argc, const char *argv[])
int ged_in(struct ged *gedp, int argc, const char *argv[])
int ged_move_arb_edge(struct ged *gedp, int argc, const char *argv[])
int ged_bot_fuse(struct ged *gedp, int argc, const char *argv[])
int ged_get_comb(struct ged *gedp, int argc, const char *argv[])
int ged_ev(struct ged *gedp, int argc, const char *argv[])
int ged_lc(struct ged *gedp, int argc, const char *argv[])
int ged_bot_dump(struct ged *gedp, int argc, const char *argv[])
int ged_3ptarb(struct ged *gedp, int argc, const char *argv[])
int ged_form(struct ged *gedp, int argc, const char *argv[])
int ged_exec(struct ged *gedp, int argc, const char *argv[])
fastf_t point_t[ELEMENTS_PER_POINT]
3-tuple point
Definition: vmath.h:351
Definition: vls.h:53
Definition: defines.h:184
Definition: wdb.h:56