BRL-CAD
tire.c File Reference
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bu/getopt.h"
#include "bu/units.h"
#include "vmath.h"
#include "bn.h"
#include "raytrace.h"
#include "wdb.h"
#include "ged.h"
Include dependency graph for tire.c:

Go to the source code of this file.

Macros

#define D2R(x)   (x * DEG2RAD)
 
#define R2D(x)   (x / DEG2RAD)
 
#define ROWS   5
 
#define COLS   5
 
#define SKETCHNUM2   4
 
#define SKETCHNUM1   9
 

Typedefs

typedef void(* MakeTreadProfile) (struct rt_wdb(*file), char *suffix, fastf_t *ell2coefficients, fastf_t ztire, fastf_t dztred, fastf_t d1, fastf_t dytred, fastf_t dyhub, fastf_t zhub, fastf_t dyside1, int number_of_tread_patterns, int patterntype)
 

Functions

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

Detailed Description

Tire Generator

Program to create basic tire shapes.

Definition in file tire.c.

Macro Definition Documentation

#define D2R (   x)    (x * DEG2RAD)

Definition at line 42 of file tire.c.

#define R2D (   x)    (x / DEG2RAD)

Definition at line 43 of file tire.c.

#define ROWS   5

Definition at line 45 of file tire.c.

#define COLS   5

Definition at line 46 of file tire.c.

#define SKETCHNUM2   4

Definition at line 890 of file tire.c.

#define SKETCHNUM1   9

Definition at line 988 of file tire.c.

Typedef Documentation

typedef void(* MakeTreadProfile) (struct rt_wdb(*file), char *suffix, fastf_t *ell2coefficients, fastf_t ztire, fastf_t dztred, fastf_t d1, fastf_t dytred, fastf_t dyhub, fastf_t zhub, fastf_t dyside1, int number_of_tread_patterns, int patterntype)

Definition at line 1576 of file tire.c.

Function Documentation

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

Create a tire

Definition at line 1952 of file tire.c.

References BU_LIST_INIT, bu_units_conversion(), bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_sprintf(), bu_vls_strlen(), bu_vls_trunc(), GED_CHECK_DATABASE_OPEN, GED_CHECK_EXISTS, GED_CHECK_READ_ONLY, GED_ERROR, GED_OK, ged::ged_result_str, ged::ged_wdbp, wmember::l, LOOKUP_QUIET, mk_addmember(), mk_id(), mk_lcomb, ReadArgs(), OSL::Strings::width, WMOP_UNION, and ZERO.

Here is the call graph for this function: