BRL-CAD
Collaboration diagram for Database Objects:

Files

file  objects.h
 

Macros

#define GED_CHECK_COMB(_gedp, _dp, _flags)
 
#define GED_CHECK_EXISTS(_gedp, _name, _noisy, _flags)
 
#define GED_CHECK_READ_ONLY(_gedp, _flags)
 
#define GED_CHECK_REGION(_gedp, _dp, _flags)
 
#define GED_DB_DIRADD(_gedp, _dp, _name, _laddr, _len, _dirflags, _ptr, _flags)
 
#define GED_DB_LOOKUP(_gedp, _dp, _name, _noisy, _flags)
 
#define GED_DB_GET_INTERNAL(_gedp, _intern, _dp, _mat, _resource, _flags)
 
#define GED_DB_PUT_INTERNAL(_gedp, _dp, _intern, _resource, _flags)
 

Functions

int ged_adjust (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. More...
 
int ged_cat (struct ged *gedp, int argc, const char *argv[])
 
int ged_comb_color (struct ged *gedp, int argc, const char *argv[])
 
int ged_comb (struct ged *gedp, int argc, const char *argv[])
 
int ged_comb_std (struct ged *gedp, int argc, const char *argv[])
 
int ged_combmem (struct ged *gedp, int argc, const char *argv[])
 
int ged_copy (struct ged *gedp, int argc, const char *argv[])
 
int ged_copyeval (struct ged *gedp, int argc, const char *argv[])
 
int ged_copymat (struct ged *gedp, int argc, const char *argv[])
 
int ged_edcodes (struct ged *gedp, int argc, const char *argv[])
 
int ged_edcomb (struct ged *gedp, int argc, const char *argv[])
 
int ged_edit (struct ged *gedp, int argc, const char *argv[])
 
int ged_exists (struct ged *gedp, int argc, const char *argv[])
 
int ged_form (struct ged *gedp, int argc, const char *argv[])
 
int ged_get (struct ged *gedp, int argc, const char *argv[])
 
int ged_get_comb (struct ged *gedp, int argc, const char *argv[])
 
int ged_group (struct ged *gedp, int argc, const char *argv[])
 
int ged_heal (struct ged *gedp, int argc, const char *argv[])
 
int ged_hide (struct ged *gedp, int argc, const char *argv[])
 
int ged_instance (struct ged *gedp, int argc, const char *argv[])
 
int ged_keep (struct ged *gedp, int argc, const char *argv[])
 
int ged_lc (struct ged *gedp, int argc, const char *argv[])
 
int ged_list (struct ged *gedp, int argc, const char *argv[])
 
int ged_make_name (struct ged *gedp, int argc, const char *argv[])
 
int ged_mat4x3pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_mat_ae (struct ged *gedp, int argc, const char *argv[])
 
int ged_mat_mul (struct ged *gedp, int argc, const char *argv[])
 
int ged_mat_scale_about_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_mater (struct ged *gedp, int argc, const char *argv[])
 
int ged_material (struct ged *gedp, int argc, const char *argv[])
 
int ged_match (struct ged *gedp, int argc, const char *argv[])
 
int ged_put_comb (struct ged *gedp, int argc, const char *argv[])
 
int ged_put (struct ged *gedp, int argc, const char *argv[])
 
int ged_red (struct ged *gedp, int argc, const char *argv[])
 
int ged_remove (struct ged *gedp, int argc, const char *argv[])
 
int ged_unhide (struct ged *gedp, int argc, const char *argv[])
 
int ged_rmater (struct ged *gedp, int argc, const char *argv[])
 
int ged_wmater (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_3ptarb (struct ged *gedp, int argc, const char *argv[])
 
int ged_arb (struct ged *gedp, int argc, const char *argv[])
 
int ged_annotate (struct ged *gedp, int argc, const char *argv[])
 
int ged_pipe_append_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_arced (struct ged *gedp, int argc, const char *argv[])
 
int ged_bev (struct ged *gedp, int argc, const char *argv[])
 
int ged_bo (struct ged *gedp, int argc, const char *argv[])
 Manipulate opaque binary objects. More...
 
int ged_bot (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_condense (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_decimate (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_dump (struct ged *gedp, int argc, const char *argv[])
 
int ged_dbot_dump (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_edge_split (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_face_fuse (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_face_sort (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_face_split (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_flip (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_fuse (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_merge (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_smooth (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_split (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_sync (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_vertex_fuse (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_remesh (struct ged *gedp, int argc, const char *argv[])
 
int ged_brep (struct ged *gedp, int argc, const char *argv[])
 
int ged_brep2 (struct ged *gedp, int argc, const char *argv[])
 
int ged_cc (struct ged *gedp, int argc, const char *argv[])
 
int ged_clone (struct ged *gedp, int argc, const char *argv[])
 
int ged_coil (struct ged *gedp, int argc, const char *argv[])
 
int ged_constraint (struct ged *gedp, int argc, const char *argv[])
 
int ged_cpi (struct ged *gedp, int argc, const char *argv[])
 
int ged_pipe_delete_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_dsp (struct ged *gedp, int argc, const char *argv[])
 
int ged_edarb (struct ged *gedp, int argc, const char *argv[])
 
int ged_edmater (struct ged *gedp, int argc, const char *argv[])
 
int ged_ev (struct ged *gedp, int argc, const char *argv[])
 
int ged_facetize (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_find_bot_edge_nearest_pnt (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_metaball_add_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_metaball_delete_pnt (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_metaball_move_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_fracture (struct ged *gedp, int argc, const char *argv[])
 
int ged_get_bot_edges (struct ged *gedp, int argc, const char *argv[])
 
int ged_get_type (struct ged *gedp, int argc, const char *argv[])
 
int ged_in (struct ged *gedp, int argc, const char *argv[])
 
int ged_importFg4Section (struct ged *gedp, int argc, const char *argv[])
 
int ged_joint (struct ged *gedp, int argc, const char *argv[])
 
int ged_joint2 (struct ged *gedp, int argc, const char *argv[])
 
int ged_kill (struct ged *gedp, int argc, const char *argv[])
 
int ged_killall (struct ged *gedp, int argc, const char *argv[])
 
int ged_killrefs (struct ged *gedp, int argc, const char *argv[])
 
int ged_killtree (struct ged *gedp, int argc, const char *argv[])
 
int ged_lt (struct ged *gedp, int argc, const char *argv[])
 
int ged_make (struct ged *gedp, int argc, const char *argv[])
 
int ged_make_pnts (struct ged *gedp, int argc, const char *argv[])
 
int ged_mirror (struct ged *gedp, int argc, const char *argv[])
 
int ged_move_arb_edge (struct ged *gedp, int argc, const char *argv[])
 
int ged_move (struct ged *gedp, int argc, const char *argv[])
 
int ged_move_all (struct ged *gedp, int argc, const char *argv[])
 
int ged_move_arb_face (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_move_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_bot_move_pnts (struct ged *gedp, int argc, const char *argv[])
 
int ged_pipe_move_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_nmg (struct ged *gedp, int argc, const char *argv[])
 
int ged_nmg_collapse (struct ged *gedp, int argc, const char *argv[])
 
int ged_nmg_fix_normals (struct ged *gedp, int argc, const char *argv[])
 
int ged_nmg_simplify (struct ged *gedp, int argc, const char *argv[])
 
int ged_ocenter (struct ged *gedp, int argc, const char *argv[])
 
int ged_orotate (struct ged *gedp, int argc, const char *argv[])
 
int ged_oscale (struct ged *gedp, int argc, const char *argv[])
 
int ged_otranslate (struct ged *gedp, int argc, const char *argv[])
 
int ged_prefix (struct ged *gedp, int argc, const char *argv[])
 
int ged_pipe_prepend_pnt (struct ged *gedp, int argc, const char *argv[])
 
int ged_protate (struct ged *gedp, int argc, const char *argv[])
 
int ged_pscale (struct ged *gedp, int argc, const char *argv[])
 
int ged_pset (struct ged *gedp, int argc, const char *argv[])
 
int ged_ptranslate (struct ged *gedp, int argc, const char *argv[])
 
int ged_pull (struct ged *gedp, int argc, const char *argv[])
 
int ged_push (struct ged *gedp, int argc, const char *argv[])
 
int ged_putmat (struct ged *gedp, int argc, const char *argv[])
 
int ged_region (struct ged *gedp, int argc, const char *argv[])
 
int ged_rfarb (struct ged *gedp, int argc, const char *argv[])
 
int ged_rotate_arb_face (struct ged *gedp, int argc, const char *argv[])
 
int ged_rot_point (struct ged *gedp, int argc, const char *argv[])
 
int ged_set_transparency (struct ged *gedp, int argc, const char *argv[])
 
int ged_shells (struct ged *gedp, int argc, const char *argv[])
 
int ged_sphgroup (struct ged *gedp, int argc, const char *argv[])
 
int ged_whatid (struct ged *gedp, int argc, const char *argv[])
 
int ged_xpush (struct ged *gedp, int argc, const char *argv[])
 
int ged_npush (struct ged *gedp, int argc, 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_human (struct ged *gedp, int argc, const char *argv[])
 
int ged_shader (struct ged *gedp, int argc, const char *argv[])
 
int ged_tire (struct ged *gedp, int argc, const char *argv[])
 
int ged_track (struct ged *gedp, int argc, const char *argv[])
 
int ged_tracker (struct ged *gedp, int argc, const char *argv[])
 
int ged_track2 (struct bu_vls *log_str, struct rt_wdb *wdbp, const char *argv[])
 
int wdb_importFg4Section_cmd (void *data, int argc, const char *argv[])
 
int ged_pnts (struct ged *gedp, int argc, const char *argv[])
 
int ged_stat (struct ged *gedp, int argc, const char *argv[])
 
int ged_dplot (struct ged *gedp, int argc, const char *argv[])
 
DEPRECATED int ged_get_obj_bounds (struct ged *gedp, int argc, const char *argv[], int use_air, point_t rpp_min, point_t rpp_max)
 

Detailed Description

Geometry EDiting Library Database Generic Object Functions.

These are functions that operate on database objects.

Macro Definition Documentation

◆ GED_CHECK_COMB

#define GED_CHECK_COMB (   _gedp,
  _dp,
  _flags 
)
Value:
if (((_dp)->d_flags & RT_DIR_COMB) == 0) { \
int ged_check_comb_quiet = (_flags) & GED_QUIET; \
if (!ged_check_comb_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "%s is not a combination", (_dp)->d_namep); \
} \
return (_flags); \
}
#define RT_DIR_COMB
combination
Definition: directory.h:86
#define GED_QUIET
Definition: defines.h:73

Check if the object is a combination

Definition at line 38 of file objects.h.

◆ GED_CHECK_EXISTS

#define GED_CHECK_EXISTS (   _gedp,
  _name,
  _noisy,
  _flags 
)
Value:
if (db_lookup((_gedp)->dbip, (_name), (_noisy)) != RT_DIR_NULL) { \
int ged_check_exists_quiet = (_flags) & GED_QUIET; \
if (!ged_check_exists_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "%s already exists.", (_name)); \
} \
return (_flags); \
}
struct directory * db_lookup(const struct db_i *, const char *name, int noisy)
#define RT_DIR_NULL
Definition: directory.h:78

Lookup database object

Definition at line 48 of file objects.h.

◆ GED_CHECK_READ_ONLY

#define GED_CHECK_READ_ONLY (   _gedp,
  _flags 
)
Value:
if ((_gedp)->dbip->dbi_read_only) { \
int ged_check_read_only_quiet = (_flags) & GED_QUIET; \
if (!ged_check_read_only_quiet) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "Sorry, this database is READ-ONLY."); \
} \
return (_flags); \
}

Check if the database is read only

Definition at line 58 of file objects.h.

◆ GED_CHECK_REGION

#define GED_CHECK_REGION (   _gedp,
  _dp,
  _flags 
)
Value:
if (((_dp)->d_flags & RT_DIR_REGION) == 0) { \
int ged_check_region_quiet = (_flags) & GED_QUIET; \
if (!ged_check_region_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "%s is not a region.", (_dp)->d_namep); \
} \
return (_flags); \
}
#define RT_DIR_REGION
region
Definition: directory.h:87

Check if the object is a region

Definition at line 69 of file objects.h.

◆ GED_DB_DIRADD

#define GED_DB_DIRADD (   _gedp,
  _dp,
  _name,
  _laddr,
  _len,
  _dirflags,
  _ptr,
  _flags 
)
Value:
if (((_dp) = db_diradd((_gedp)->dbip, (_name), (_laddr), (_len), (_dirflags), (_ptr))) == RT_DIR_NULL) { \
int ged_db_diradd_quiet = (_flags) & GED_QUIET; \
if (!ged_db_diradd_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "Unable to add %s to the database.", (_name)); \
} \
return (_flags); \
}
struct directory * db_diradd(struct db_i *, const char *name, b_off_t laddr, size_t len, int flags, void *ptr)

add a new directory entry to the currently open database

Definition at line 79 of file objects.h.

◆ GED_DB_LOOKUP

#define GED_DB_LOOKUP (   _gedp,
  _dp,
  _name,
  _noisy,
  _flags 
)
Value:
if (((_dp) = db_lookup((_gedp)->dbip, (_name), (_noisy))) == RT_DIR_NULL) { \
int ged_db_lookup_quiet = (_flags) & GED_QUIET; \
if (!ged_db_lookup_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "Unable to find %s in the database.", (_name)); \
} \
return (_flags); \
}

Lookup database object

Definition at line 89 of file objects.h.

◆ GED_DB_GET_INTERNAL

#define GED_DB_GET_INTERNAL (   _gedp,
  _intern,
  _dp,
  _mat,
  _resource,
  _flags 
)
Value:
if (rt_db_get_internal((_intern), (_dp), (_gedp)->dbip, (_mat), (_resource)) < 0) { \
int ged_db_get_internal_quiet = (_flags) & GED_QUIET; \
if (!ged_db_get_internal_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "Database read failure."); \
} \
return (_flags); \
}
int rt_db_get_internal(struct rt_db_internal *ip, const struct directory *dp, const struct db_i *dbip, const mat_t mat, struct resource *resp)

Get internal representation

Definition at line 99 of file objects.h.

◆ GED_DB_PUT_INTERNAL

#define GED_DB_PUT_INTERNAL (   _gedp,
  _dp,
  _intern,
  _resource,
  _flags 
)
Value:
if (rt_db_put_internal((_dp), (_gedp)->dbip, (_intern), (_resource)) < 0) { \
int ged_db_put_internal_quiet = (_flags) & GED_QUIET; \
if (!ged_db_put_internal_quiet) { \
bu_vls_printf((_gedp)->ged_result_str, "Database write failure."); \
} \
return (_flags); \
}
int rt_db_put_internal(struct directory *dp, struct db_i *dbip, struct rt_db_internal *ip, struct resource *resp)

Put internal representation

Definition at line 109 of file objects.h.

Function Documentation

◆ ged_adjust()

int ged_adjust ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Adjust object's attribute(s)

◆ ged_attr()

int ged_attr ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set, get, show, remove or append to attribute values for the specified object.

The arguments for "set" and "append" subcommands are attribute name/value pairs. The arguments for "get", "rm", and "show" subcommands are attribute names. The "set" subcommand sets the specified attributes for the object. The "append" subcommand appends the provided value to an existing attribute, or creates a new attribute if it does not already exist. The "get" subcommand retrieves and displays the specified attributes. The "rm" subcommand deletes the specified attributes. The "show" subcommand does a "get" and displays the results in a user readable format.

◆ ged_cat()

int ged_cat ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List attributes (brief).

◆ ged_comb_color()

int ged_comb_color ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set combination color.

◆ ged_comb()

int ged_comb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create or extend combination w/booleans.

◆ ged_comb_std()

int ged_comb_std ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create or extend a combination using standard notation.

◆ ged_combmem()

int ged_combmem ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set/get comb's members.

◆ ged_copy()

int ged_copy ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Copy a database object

◆ ged_copyeval()

int ged_copyeval ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Copy an 'evaluated' path solid

◆ ged_copymat()

int ged_copymat ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Copy the matrix from one combination's arc to another.

◆ ged_edcodes()

int ged_edcodes ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit region ident codes.

◆ ged_edcomb()

int ged_edcomb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit combination.

◆ ged_edit()

int ged_edit ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit objects, by using subcommands.

◆ ged_exists()

int ged_exists ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Checks to see if the specified database object exists.

◆ ged_form()

int ged_form ( struct ged gedp,
int  argc,
const char *  argv[] 
)

returns form for objects of type "type"

◆ ged_get()

int ged_get ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get object attributes

◆ ged_get_comb()

int ged_get_comb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get combination information

◆ ged_group()

int ged_group ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create or append objects to a group

◆ ged_heal()

int ged_heal ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Heal command to heal the defects in bots

◆ ged_hide()

int ged_hide ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set the "hidden" flag for the specified objects so they do not appear in an "ls" command output

◆ ged_instance()

int ged_instance ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Add instance of obj to comb

◆ ged_keep()

int ged_keep ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Save/keep the specified objects in the specified file

◆ ged_lc()

int ged_lc ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List attributes of regions within a group/combination.

◆ ged_list()

int ged_list ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List object information, verbose.

◆ ged_make_name()

int ged_make_name ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Make a unique object name.

◆ ged_mat4x3pnt()

int ged_mat4x3pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Multiply a point by a 4x4 matrix yielding the transformed point

◆ ged_mat_ae()

int ged_mat_ae ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a matrix given an azimuth and elevation

◆ ged_mat_mul()

int ged_mat_mul ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a matrix that is the result of multiplying the two specified matrices

◆ ged_mat_scale_about_pnt()

int ged_mat_scale_about_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a matrix that will scale about a given point

◆ ged_mater()

int ged_mater ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Modify material information.

◆ ged_material()

int ged_material ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Apply and modify material properties to a specific object.

◆ ged_match()

int ged_match ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Globs expression against database objects, does not return tokens that match nothing

◆ ged_put_comb()

int ged_put_comb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set combination attributes

◆ ged_put()

int ged_put ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a database object

◆ ged_red()

int ged_red ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit region/comb

◆ ged_remove()

int ged_remove ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Remove members from a combination

◆ ged_unhide()

int ged_unhide ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Unset the "hidden" flag for the specified objects so they will appear in a "t" or "ls" command output

◆ ged_rmater()

int ged_rmater ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Read material properties from a file.

◆ ged_wmater()

int ged_wmater ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Write material properties to a file for specified combination(s).

◆ ged_inside_internal()

int ged_inside_internal ( struct ged gedp,
struct rt_db_internal ip,
int  argc,
const char *  argv[],
int  arg,
char *  o_name 
)

◆ ged_inside()

int ged_inside ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Finds the inside primitive per the specified thickness.

◆ ged_3ptarb()

int ged_3ptarb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Creates an arb8 given the following: 1) 3 points of one face 2) coord x, y or z and 2 coordinates of the 4th point in that face 3) thickness

◆ ged_arb()

int ged_arb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Creates an arb8 given rotation and fallback angles

◆ ged_annotate()

int ged_annotate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Creates an annotation.

◆ ged_pipe_append_pnt()

int ged_pipe_append_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Append a pipe point.

◆ ged_arced()

int ged_arced ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Allow editing of the matrix, etc., along an arc.

◆ ged_bev()

int ged_bev ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Tessellates each operand object, then performs the boolean evaluation, storing result in 'new_obj'

◆ ged_bo()

int ged_bo ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Manipulate opaque binary objects.

Must specify one of -i (for creating or adjusting objects (input)) or -o for extracting objects (output). If the major type is "u" the minor type must be one of: "f" -> float "d" -> double "c" -> char (8 bit) "s" -> short (16 bit) "i" -> int (32 bit) "l" -> long (64 bit) "C" -> unsigned char (8 bit) "S" -> unsigned short (16 bit) "I" -> unsigned int (32 bit) "L" -> unsigned long (64 bit) For input, source is a file name and dest is an object name. For output source is an object name and dest is a file name. Only uniform array binary objects (major_type=u) are currently supported}}

◆ ged_bot()

int ged_bot ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Query or manipulate properties of bot

◆ ged_bot_condense()

int ged_bot_condense ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create new_bot by condensing old_bot

◆ ged_bot_decimate()

int ged_bot_decimate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Uses edge decimation to reduce the number of triangles in the specified BOT while keeping within the specified constraints.

◆ ged_bot_dump()

int ged_bot_dump ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Dump bots to the specified format.

◆ ged_dbot_dump()

int ged_dbot_dump ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Dump displayed bots to the specified format.

◆ ged_bot_edge_split()

int ged_bot_edge_split ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Split the specified bot edge. This splits the triangles that share the edge.

◆ ged_bot_face_fuse()

int ged_bot_face_fuse ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create new_bot by fusing faces in old_bot

◆ ged_bot_face_sort()

int ged_bot_face_sort ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Sort the facelist of BOT solids to optimize ray trace performance for a particular number of triangles per raytrace piece.

◆ ged_bot_face_split()

int ged_bot_face_split ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Split the specified bot face into three parts (i.e. by adding a point to the center)

◆ ged_bot_flip()

int ged_bot_flip ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Flip/reverse the specified bot's orientation.

◆ ged_bot_fuse()

int ged_bot_fuse ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Fuse bot

◆ ged_bot_merge()

int ged_bot_merge ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create bot_dest by merging the bot sources.

◆ ged_bot_smooth()

int ged_bot_smooth ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Calculate vertex normals for the BOT primitive

◆ ged_bot_split()

int ged_bot_split ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Split the specified bot

◆ ged_bot_sync()

int ged_bot_sync ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Sync the specified bot's orientation (i.e. make sure all neighboring triangles have same orientation).

◆ ged_bot_vertex_fuse()

int ged_bot_vertex_fuse ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Fuse bot vertices

◆ ged_bot_remesh()

int ged_bot_remesh ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Remesh an existing bot.

This routine will take an existing BoT and perform a global remeshing. This operation will heal and repair some polygonal mesh errors such as elimination of dangling faces, elimination of overlapping faces, and closure of small gaps (solidity errors).

This routine currently only works on solid mesh geometry.

◆ ged_brep()

int ged_brep ( struct ged gedp,
int  argc,
const char *  argv[] 
)

BREP utility command

◆ ged_brep2()

int ged_brep2 ( struct ged gedp,
int  argc,
const char *  argv[] 
)

◆ ged_cc()

int ged_cc ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create constraint object

◆ ged_clone()

int ged_clone ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Performs a deep copy of object.

◆ ged_coil()

int ged_coil ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Make coil shapes.

◆ ged_constraint()

int ged_constraint ( struct ged gedp,
int  argc,
const char *  argv[] 
)

create, update, remove, and list geometric and dimensional constraints.

◆ ged_cpi()

int ged_cpi ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Copy cylinder and position at end of original cylinder

◆ ged_pipe_delete_pnt()

int ged_pipe_delete_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Delete the specified pipe point.

◆ ged_dsp()

int ged_dsp ( struct ged gedp,
int  argc,
const char *  argv[] 
)

DSP utility command

◆ ged_edarb()

int ged_edarb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Arb specific edits.

◆ ged_edmater()

int ged_edmater ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit combination materials.

Command relies on rmater, editit, and wmater commands.

◆ ged_ev()

int ged_ev ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Evaluate objects via NMG tessellation

◆ ged_facetize()

int ged_facetize ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Facetize the specified objects

◆ ged_find_arb_edge_nearest_pnt()

int ged_find_arb_edge_nearest_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find the arb edge nearest the specified point in view coordinates.

◆ ged_find_bot_edge_nearest_pnt()

int ged_find_bot_edge_nearest_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find the bot edge nearest the specified point in view coordinates.

◆ ged_find_bot_pnt_nearest_pnt()

int ged_find_bot_pnt_nearest_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find the bot point nearest the specified point in view coordinates.

◆ ged_metaball_add_pnt()

int ged_metaball_add_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Add a metaball point.

◆ ged_metaball_delete_pnt()

int ged_metaball_delete_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Delete a metaball point.

◆ ged_find_metaball_pnt_nearest_pnt()

int ged_find_metaball_pnt_nearest_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find the metaball point nearest the specified point in model coordinates.

◆ ged_metaball_move_pnt()

int ged_metaball_move_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move a metaball point.

◆ ged_find_pipe_pnt_nearest_pnt()

int ged_find_pipe_pnt_nearest_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find the pipe point nearest the specified point in model coordinates.

◆ ged_fracture()

int ged_fracture ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Given an NMG solid, break it up into several NMG solids, each containing a single shell with a single sub-element.

◆ ged_get_bot_edges()

int ged_get_bot_edges ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get a bot's edges

◆ ged_get_type()

int ged_get_type ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get the object's type

◆ ged_in()

int ged_in ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a primitive via keyboard.

◆ ged_importFg4Section()

int ged_importFg4Section ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Makes a bot object out of the specified section.

◆ ged_joint()

int ged_joint ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Joint command ported to the libged library.

◆ ged_joint2()

int ged_joint2 ( struct ged gedp,
int  argc,
const char *  argv[] 
)

New joint command.

◆ ged_kill()

int ged_kill ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Kill/delete the specified objects from the database

◆ ged_killall()

int ged_killall ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Kill/delete the specified objects from the database, removing all references

◆ ged_killrefs()

int ged_killrefs ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Kill all references to the specified object(s).

◆ ged_killtree()

int ged_killtree ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Kill all paths belonging to objects

◆ ged_lt()

int ged_lt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List object's tree as a tcl list of {operator object} pairs

◆ ged_make()

int ged_make ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Make a new primitive.

◆ ged_make_pnts()

int ged_make_pnts ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Creates a point-cloud (pnts) given the following: 1) object name 2) path and filename to point data file 3) point data file format (xyzrgbsijk?) 4) point data file units or conversion factor to mm 5) default diameter of each point

◆ ged_mirror()

int ged_mirror ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Mirror the primitive or combination along the specified axis.

◆ ged_move_arb_edge()

int ged_move_arb_edge ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move an arb's edge through point

◆ ged_move()

int ged_move ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move/rename a database object

◆ ged_move_all()

int ged_move_all ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move/rename all occurrences object

◆ ged_move_arb_face()

int ged_move_arb_face ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move an arb's face through point

◆ ged_bot_move_pnt()

int ged_bot_move_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move the specified bot point. This can be relative or absolute.

◆ ged_bot_move_pnts()

int ged_bot_move_pnts ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move the specified bot points. This movement is always relative.

◆ ged_pipe_move_pnt()

int ged_pipe_move_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Move the specified pipe point.

◆ ged_nmg()

int ged_nmg ( struct ged gedp,
int  argc,
const char *  argv[] 
)

NMG command with subcommands for altering NMG datastructure.

◆ ged_nmg_collapse()

int ged_nmg_collapse ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Decimate NMG primitive via edge collapse

◆ ged_nmg_fix_normals()

int ged_nmg_fix_normals ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Attempt to fix an NMG primitive's normals.

◆ ged_nmg_simplify()

int ged_nmg_simplify ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Simplify the NMG primitive, if possible

◆ ged_ocenter()

int ged_ocenter ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set/get object center.

◆ ged_orotate()

int ged_orotate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Rotate obj about the keypoint by

◆ ged_oscale()

int ged_oscale ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Scale obj about the keypoint by sf.

◆ ged_otranslate()

int ged_otranslate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Translate obj by dx dy dz.

◆ ged_prefix()

int ged_prefix ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Prefix the specified objects with the specified prefix

◆ ged_pipe_prepend_pnt()

int ged_pipe_prepend_pnt ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Prepend a pipe point.

◆ ged_protate()

int ged_protate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Rotate obj's attributes by rvec.

◆ ged_pscale()

int ged_pscale ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Scale obj's attributes by sf.

◆ ged_pset()

int ged_pset ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set an obj's attribute to the specified value.

◆ ged_ptranslate()

int ged_ptranslate ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Translate obj's attributes by tvec.

◆ ged_pull()

int ged_pull ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Pull objects' path transformations from primitives

◆ ged_push()

int ged_push ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Push objects' path transformations to primitives

◆ ged_putmat()

int ged_putmat ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Replace the matrix on an arc

◆ ged_region()

int ged_region ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create or append objects to a region

◆ ged_rfarb()

int ged_rfarb ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Makes and arb given a point, 2 coord of 3 pnts, rot, fb and thickness.

◆ ged_rotate_arb_face()

int ged_rotate_arb_face ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Rotate an arb's face through point

◆ ged_rot_point()

int ged_rot_point ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Rotate the point.

◆ ged_set_transparency()

int ged_set_transparency ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set the transparency of the specified object

Todo:
  • belongs in view?

◆ ged_shells()

int ged_shells ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Breaks the NMG model into separate shells

◆ ged_sphgroup()

int ged_sphgroup ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create or append objects to a group using a sphere

◆ ged_whatid()

int ged_whatid ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Return the specified region's id.

◆ ged_xpush()

int ged_xpush ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Push object path transformations to solids, creating primitives if necessary

◆ ged_npush()

int ged_npush ( struct ged gedp,
int  argc,
const char *  argv[] 
)

◆ ged_voxelize()

int ged_voxelize ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Voxelize the specified objects

◆ ged_decompose()

int ged_decompose ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Decompose nmg_solid into maximally connected shells

◆ ged_human()

int ged_human ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a human

◆ ged_shader()

int ged_shader ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Simpler, command-line version of 'mater' command.

◆ ged_tire()

int ged_tire ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a tire

◆ ged_track()

int ged_track ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Create a track

◆ ged_tracker()

int ged_tracker ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Usage: tracker [-fh] [# links] [increment] [spline.iges] [link...]

◆ ged_track2()

int ged_track2 ( struct bu_vls log_str,
struct rt_wdb wdbp,
const char *  argv[] 
)

◆ wdb_importFg4Section_cmd()

int wdb_importFg4Section_cmd ( void *  data,
int  argc,
const char *  argv[] 
)

◆ ged_pnts()

int ged_pnts ( struct ged gedp,
int  argc,
const char *  argv[] 
)

manipulate point set geometry

◆ ged_stat()

int ged_stat ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Report object information.

◆ ged_dplot()

int ged_dplot ( struct ged gedp,
int  argc,
const char *  argv[] 
)

◆ ged_get_obj_bounds()

DEPRECATED int ged_get_obj_bounds ( struct ged gedp,
int  argc,
const char *  argv[],
int  use_air,
point_t  rpp_min,
point_t  rpp_max 
)

DEPRECATED - use rt_obj_bounds instead