BRL-CAD
obj_polygonal_attributes_t Struct Reference

#include <obj_parser.h>

Data Fields

size_t groupset_index
 
size_t object_index
 
size_t material_index
 
size_t materiallibset_index
 
size_t texmap_index
 
size_t texmaplibset_index
 
size_t shadow_obj_index
 
size_t trace_obj_index
 
unsigned int smooth_group
 
unsigned char bevel
 
unsigned char c_interp
 
unsigned char d_interp
 
unsigned char lod
 

Detailed Description

A structure with the attributes describing a polygonal element

groupset_index An index into a set of group sets this element belongs to. See obj_groups and obj_groupsets

object_index An index into a set of object labels that this element belongs to See obj_objects

material_index An index into a set of materials that describes this element See obj_materials

materiallibset_index An index into a set of material library sets this element uses See obj_materiallibs and obj_materiallibsets

texmap_index An index into a set of texture maps that describes this element See obj_texmaps

texmaplibset_index An index into a set of texture map library sets this element uses See obj_texmaplibs and obj_texmaplibsets

shadow_obj_index An index into a set of shadow objects that this element uses See obj_shadow_objs

trace_obj_index An index into a set of trace objects that this element uses See obj_trace_objs

smooth_group A smoothing group id for this element N.B. unspecified in signess or default in wavefront obj spec, here unsigned and 0

bevel Whether this element bevel flag is off (zero) or on (non-zero), as per wavefront spec, default is off

c_interp Whether color interpolation is off (zero) or on (non-zero), as per wavefront spec, default is off

d_interp Whether dissolve interpolation is off (zero) or on (non-zero), as per wavefront spec, default is off

lod The level of detail this element should be displayed as. This is a value between 0 (all elements) and 100. As per wavefront spec, default is 0.

Definition at line 106 of file obj_parser.h.

Field Documentation

size_t groupset_index

Definition at line 107 of file obj_parser.h.

size_t object_index

Definition at line 108 of file obj_parser.h.

size_t material_index

Definition at line 109 of file obj_parser.h.

size_t materiallibset_index

Definition at line 110 of file obj_parser.h.

size_t texmap_index

Definition at line 111 of file obj_parser.h.

size_t texmaplibset_index

Definition at line 112 of file obj_parser.h.

size_t shadow_obj_index

Definition at line 113 of file obj_parser.h.

size_t trace_obj_index

Definition at line 114 of file obj_parser.h.

unsigned int smooth_group
unsigned char bevel
unsigned char c_interp
unsigned char d_interp
unsigned char lod

The documentation for this struct was generated from the following file: