BRL-CAD
Database Input/Output/Updation
Collaboration diagram for Database Input/Output/Updation:

Files

file  constraint.c
 External C Routines of Parametrics and Constraints API.
 

Functions

int mk_constraint (struct rt_wdb *wdbp, const char *name, const char *expr)
 

Detailed Description

Function Documentation

int mk_constraint ( struct rt_wdb wdbp,
const char *  name,
const char *  expr 
)

Given the appropriate parameters, makes the non-geometric constraint object and writes it to the database using wdb_put_internal. Only supported on database version 5 or above

Definition at line 37 of file constraint.c.

References BU_ALLOC, BU_VLS_INIT, rt_constraint_internal::expression, rt_constraint_internal::id, ID_CONSTRAINT, rt_db_internal::idb_major_type, rt_db_internal::idb_meth, rt_db_internal::idb_ptr, rt_constraint_internal::magic, mk_conv2mm, OBJ, RT_CK_WDB, RT_CONSTRAINT_MAGIC, RT_DB_INTERNAL_INIT, rt_constraint_internal::type, and wdb_put_internal().

Here is the call graph for this function: