BRL-CAD
Collaboration diagram for Definitions:

Files

file  defines.h
 

Macros

#define ID_NULL   0
 Unused. More...
 
#define ID_TOR   1
 Toroid. More...
 
#define ID_TGC   2
 Generalized Truncated General Cone. More...
 
#define ID_ELL   3
 Ellipsoid. More...
 
#define ID_ARB8   4
 Generalized ARB. V + 7 vectors. More...
 
#define ID_ARS   5
 ARS. More...
 
#define ID_HALF   6
 Half-space. More...
 
#define ID_REC   7
 Right Elliptical Cylinder [TGC special]. More...
 
#define ID_POLY   8
 Polygonal faceted object. More...
 
#define ID_BSPLINE   9
 B-spline object. More...
 
#define ID_SPH   10
 Sphere. More...
 
#define ID_NMG   11
 n-Manifold Geometry solid More...
 
#define ID_EBM   12
 Extruded bitmap solid. More...
 
#define ID_VOL   13
 3-D Volume More...
 
#define ID_ARBN   14
 ARB with N faces. More...
 
#define ID_PIPE   15
 Pipe (wire) solid. More...
 
#define ID_PARTICLE   16
 Particle system solid. More...
 
#define ID_RPC   17
 Right Parabolic Cylinder
More...
 
#define ID_RHC   18
 Right Hyperbolic Cylinder
More...
 
#define ID_EPA   19
 Elliptical Paraboloid
More...
 
#define ID_EHY   20
 Elliptical Hyperboloid
More...
 
#define ID_ETO   21
 Elliptical Torus
More...
 
#define ID_GRIP   22
 Pseudo Solid Grip. More...
 
#define ID_JOINT   23
 Pseudo Solid/Region Joint. More...
 
#define ID_HF   24
 Height Field. More...
 
#define ID_DSP   25
 Displacement map. More...
 
#define ID_SKETCH   26
 2D sketch More...
 
#define ID_EXTRUDE   27
 Solid of extrusion. More...
 
#define ID_SUBMODEL   28
 Instanced submodel. More...
 
#define ID_CLINE   29
 FASTGEN4 CLINE solid. More...
 
#define ID_BOT   30
 Bag o' triangles. More...
 
#define ID_MAX_SOLID   47
 Maximum defined ID_xxx for solids. More...
 
#define ID_COMBINATION   31
 Combination Record. More...
 
#define ID_UNUSED1   32
 UNUSED (placeholder)
More...
 
#define ID_BINUNIF   33
 Uniform-array binary. More...
 
#define ID_UNUSED2   34
 UNUSED (placeholder) More...
 
#define ID_CONSTRAINT   39
 Constraint object. More...
 
#define ID_MATERIAL   46
 Material object. More...
 
#define ID_SUPERELL   35
 Superquadratic ellipsoid. More...
 
#define ID_METABALL   36
 Metaball. More...
 
#define ID_BREP   37
 B-rep object. More...
 
#define ID_HYP   38
 Hyperboloid of one sheet. More...
 
#define ID_REVOLVE   40
 Solid of Revolution. More...
 
#define ID_PNTS   41
 Collection of Points. More...
 
#define ID_ANNOT   42
 Annotation. More...
 
#define ID_HRT   43
 Heart. More...
 
#define ID_DATUM   44
 Datum references. More...
 
#define ID_SCRIPT   45
 Script. More...
 
#define ID_MAXIMUM   47
 Maximum defined ID_xxx value. More...
 
#define RT_DBNHASH   8192
 hash table is an array of linked lists with this many array pointer elements (Memory use for 32-bit: 32KB, 64-bit: 64KB) More...
 
#define RT_DBHASH(sum)   ((size_t)(sum) & ((RT_DBNHASH)-1))
 
#define RT_DEFAULT_MINPIECES   32
 
#define RT_DEFAULT_TRIS_PER_PIECE   4
 
#define RT_DEFAULT_MINTIE   0 /* TODO: find the best value */
 
#define BACKING_DIST   (-2.0)
 mm to look behind start point More...
 
#define OFFSET_DIST   0.01
 mm to advance point into box More...
 
#define RT_BADNUM(n)   (!((n) >= -INFINITY && (n) <= INFINITY))
 
#define RT_BADVEC(v)   (RT_BADNUM((v)[X]) || RT_BADNUM((v)[Y]) || RT_BADNUM((v)[Z]))
 
#define RT_MAXLINE   10240
 
#define RT_PART_NUBSPT   0
 

Detailed Description

Common definitions for LIBRT

Macro Definition Documentation

◆ ID_NULL

#define ID_NULL   0

Unused.

Definition at line 76 of file defines.h.

◆ ID_TOR

#define ID_TOR   1

Toroid.

Definition at line 77 of file defines.h.

◆ ID_TGC

#define ID_TGC   2

Generalized Truncated General Cone.

Definition at line 78 of file defines.h.

◆ ID_ELL

#define ID_ELL   3

Ellipsoid.

Definition at line 79 of file defines.h.

◆ ID_ARB8

#define ID_ARB8   4

Generalized ARB. V + 7 vectors.

Definition at line 80 of file defines.h.

◆ ID_ARS

#define ID_ARS   5

ARS.

Definition at line 81 of file defines.h.

◆ ID_HALF

#define ID_HALF   6

Half-space.

Definition at line 82 of file defines.h.

◆ ID_REC

#define ID_REC   7

Right Elliptical Cylinder [TGC special].

Definition at line 83 of file defines.h.

◆ ID_POLY

#define ID_POLY   8

Polygonal faceted object.

Definition at line 84 of file defines.h.

◆ ID_BSPLINE

#define ID_BSPLINE   9

B-spline object.

Definition at line 85 of file defines.h.

◆ ID_SPH

#define ID_SPH   10

Sphere.

Definition at line 86 of file defines.h.

◆ ID_NMG

#define ID_NMG   11

n-Manifold Geometry solid

Definition at line 87 of file defines.h.

◆ ID_EBM

#define ID_EBM   12

Extruded bitmap solid.

Definition at line 88 of file defines.h.

◆ ID_VOL

#define ID_VOL   13

3-D Volume

Definition at line 89 of file defines.h.

◆ ID_ARBN

#define ID_ARBN   14

ARB with N faces.

Definition at line 90 of file defines.h.

◆ ID_PIPE

#define ID_PIPE   15

Pipe (wire) solid.

Definition at line 91 of file defines.h.

◆ ID_PARTICLE

#define ID_PARTICLE   16

Particle system solid.

Definition at line 92 of file defines.h.

◆ ID_RPC

#define ID_RPC   17

Right Parabolic Cylinder

Definition at line 93 of file defines.h.

◆ ID_RHC

#define ID_RHC   18

Right Hyperbolic Cylinder

Definition at line 94 of file defines.h.

◆ ID_EPA

#define ID_EPA   19

Elliptical Paraboloid

Definition at line 95 of file defines.h.

◆ ID_EHY

#define ID_EHY   20

Elliptical Hyperboloid

Definition at line 96 of file defines.h.

◆ ID_ETO

#define ID_ETO   21

Elliptical Torus

Definition at line 97 of file defines.h.

◆ ID_GRIP

#define ID_GRIP   22

Pseudo Solid Grip.

Definition at line 98 of file defines.h.

◆ ID_JOINT

#define ID_JOINT   23

Pseudo Solid/Region Joint.

Definition at line 99 of file defines.h.

◆ ID_HF

#define ID_HF   24

Height Field.

Definition at line 100 of file defines.h.

◆ ID_DSP

#define ID_DSP   25

Displacement map.

Definition at line 101 of file defines.h.

◆ ID_SKETCH

#define ID_SKETCH   26

2D sketch

Definition at line 102 of file defines.h.

◆ ID_EXTRUDE

#define ID_EXTRUDE   27

Solid of extrusion.

Definition at line 103 of file defines.h.

◆ ID_SUBMODEL

#define ID_SUBMODEL   28

Instanced submodel.

Definition at line 104 of file defines.h.

◆ ID_CLINE

#define ID_CLINE   29

FASTGEN4 CLINE solid.

Definition at line 105 of file defines.h.

◆ ID_BOT

#define ID_BOT   30

Bag o' triangles.

Definition at line 106 of file defines.h.

◆ ID_MAX_SOLID

#define ID_MAX_SOLID   47

Maximum defined ID_xxx for solids.

Definition at line 112 of file defines.h.

◆ ID_COMBINATION

#define ID_COMBINATION   31

Combination Record.

Definition at line 117 of file defines.h.

◆ ID_UNUSED1

#define ID_UNUSED1   32

UNUSED (placeholder)

Definition at line 118 of file defines.h.

◆ ID_BINUNIF

#define ID_BINUNIF   33

Uniform-array binary.

Definition at line 119 of file defines.h.

◆ ID_UNUSED2

#define ID_UNUSED2   34

UNUSED (placeholder)

Definition at line 120 of file defines.h.

◆ ID_CONSTRAINT

#define ID_CONSTRAINT   39

Constraint object.

Definition at line 121 of file defines.h.

◆ ID_MATERIAL

#define ID_MATERIAL   46

Material object.

Definition at line 122 of file defines.h.

◆ ID_SUPERELL

#define ID_SUPERELL   35

Superquadratic ellipsoid.

Definition at line 126 of file defines.h.

◆ ID_METABALL

#define ID_METABALL   36

Metaball.

Definition at line 127 of file defines.h.

◆ ID_BREP

#define ID_BREP   37

B-rep object.

Definition at line 128 of file defines.h.

◆ ID_HYP

#define ID_HYP   38

Hyperboloid of one sheet.

Definition at line 129 of file defines.h.

◆ ID_REVOLVE

#define ID_REVOLVE   40

Solid of Revolution.

Definition at line 130 of file defines.h.

◆ ID_PNTS

#define ID_PNTS   41

Collection of Points.

Definition at line 131 of file defines.h.

◆ ID_ANNOT

#define ID_ANNOT   42

Annotation.

Definition at line 132 of file defines.h.

◆ ID_HRT

#define ID_HRT   43

Heart.

Definition at line 133 of file defines.h.

◆ ID_DATUM

#define ID_DATUM   44

Datum references.

Definition at line 134 of file defines.h.

◆ ID_SCRIPT

#define ID_SCRIPT   45

Script.

Definition at line 135 of file defines.h.

◆ ID_MAXIMUM

#define ID_MAXIMUM   47

Maximum defined ID_xxx value.

Definition at line 136 of file defines.h.

◆ RT_DBNHASH

#define RT_DBNHASH   8192

hash table is an array of linked lists with this many array pointer elements (Memory use for 32-bit: 32KB, 64-bit: 64KB)

DEPRECATED: external applications should use other LIBRT API to access database objects.

The directory is organized as forward linked lists hanging off of one of RT_DBNHASH headers in the db_i structure.

FIXME: this should not be public API, push container and iteration down into LIBRT. External applications should not use this.

Definition at line 153 of file defines.h.

◆ RT_DBHASH

#define RT_DBHASH (   sum)    ((size_t)(sum) & ((RT_DBNHASH)-1))

DEPRECATED: external applications should use other LIBRT API to access database objects.

Definition at line 166 of file defines.h.

◆ RT_DEFAULT_MINPIECES

#define RT_DEFAULT_MINPIECES   32

Definition at line 170 of file defines.h.

◆ RT_DEFAULT_TRIS_PER_PIECE

#define RT_DEFAULT_TRIS_PER_PIECE   4

Definition at line 171 of file defines.h.

◆ RT_DEFAULT_MINTIE

#define RT_DEFAULT_MINTIE   0 /* TODO: find the best value */

Definition at line 172 of file defines.h.

◆ BACKING_DIST

#define BACKING_DIST   (-2.0)

mm to look behind start point

Definition at line 175 of file defines.h.

◆ OFFSET_DIST

#define OFFSET_DIST   0.01

mm to advance point into box

Definition at line 176 of file defines.h.

◆ RT_BADNUM

#define RT_BADNUM (   n)    (!((n) >= -INFINITY && (n) <= INFINITY))

FIXME: These should probably be vmath macros

Definition at line 181 of file defines.h.

◆ RT_BADVEC

#define RT_BADVEC (   v)    (RT_BADNUM((v)[X]) || RT_BADNUM((v)[Y]) || RT_BADNUM((v)[Z]))

Definition at line 182 of file defines.h.

◆ RT_MAXLINE

#define RT_MAXLINE   10240

Definition at line 185 of file defines.h.

◆ RT_PART_NUBSPT

#define RT_PART_NUBSPT   0

Definition at line 187 of file defines.h.