
# Set the initial values of the parameters.
#
# Copyright (c) 1993, 1994 Pacific Marketing and Consulting
# Author:  Wayne A. Christopher, wayne@pmac.com
#          Pacific Marketing and Consulting, Berkeley, California

# Every object has the following fields:
#     current_genus -- usually default but might be free or recirc
#     section_list -- the list of sections that are defined
#     current_section -- which of the sections is being currently edited
#     current_stype -- the type of the shape of the current section
# For each section:
#     <sectname>_shape -- the handle of the actual shape

set object_category(grid) [concat {person hood} $object_category(grid)]
set object_category(grid_priority) [concat {{person hood}} \
					$object_category(grid_priority)]
lappend object_type_list person hood

foreach xx {
    { person      yellow 1 view 1 fixed }
    { hood        cyan   1 view 1 fixed }
} {
    set type [lindex $xx 0]
    set graph_color($type) [lindex $xx 1]
    set graph_width($type) [lindex $xx 2]
    set graph_shadepolicy($type) [lindex $xx 3]
    set graph_fancy($type) [lindex $xx 4]
    set graph_font($type) [lindex $xx 5]
    
    lappend app_graph_types $type
}

# --------------------------------------------------------------------
  
set object_type_title(person) "Person"
set object_type_title_short(person) "Person"

set object_params(person) {
    { "Fix shapes"   fix_shapes   int    1 }
    { "Posture"      posture      string standing }
    { "bot_x"        bot_x        float  0        length }
    { "bot_y"        bot_y        float  0        length }
    { "bot_z"        bot_z        float  0        length }
    { "up_axis"      up_axis      int    1 }
    { "facing_dir"   facing_dir   int    2 }
    { "height"       height       float  1.73     length }
    { "head_frac"    head_frac    float  0.18 }
    { "body_frac"    body_frac    float  0.4 }
    { "lap_frac"     lap_frac     float  0.15 }
    { "width"        width        float  0.3      length }
    { "depth"        depth        float  0.2      length }
    { "facing_front" facing_front int    1 }
    { "happy"        happy        int    1 }
}

set object_params_affect_mesh(person,all) 1

set object_edit_info(person) {
    { default default
	{ head Head { hexa Default } }
	{ face Face { quad Default } }
	{ body Body { hexa Default } }
	{ larm "L.arm" { hexa Default } }
	{ rarm "R.arm" { hexa Default } }
	{ lleg "L.leg" { hexa Default } }
	{ rleg "R.leg" { hexa Default } }
	{ lthigh "L.thigh" { hexa Default } { none None } }
	{ rthigh "R.thigh" { hexa Default } { none None } }
    }
}

set object_edit_separate_shapedata(person) 1

set object_labels_only_for_section(person) head

# --------------------------------------------------------------------

set object_type_title(hood) "Hoods"
set object_type_title_short(hood) "Hoods"

set object_params(hood) {
    { "Fix shapes"      fix_shapes   int    1 }
    
    { "up_axis"         up_axis      int    1 }
    
    { "Flange type" flange_type string vertical "" {vertical horizontal none}}
    
    { "neck_x1"         neck_x1     float -0.2 length }
    { "neck_y1"         neck_y1     float 0.0  length }
    { "neck_z1"         neck_z1     float -0.2 length }
    { "neck_x2"         neck_x2     float 0.2  length }
    { "neck_y2"         neck_y2     float -0.3 length }
    { "neck_z2"         neck_z2     float 0.2  length }
    
    { "canopy_x1"       canopy_x1   float -0.5 length }
    { "canopy_z1"       canopy_z1   float -0.4 length }
    { "canopy_x2"       canopy_x2   float 0.5  length }
    { "canopy_y2"       canopy_y2   float -0.6 length }
    { "canopy_z2"       canopy_z2   float 0.4  length }
    
    { "flange_height"   flange_height   float 0.05 length }
    
    { "open1_on"        open1_on   int 1 }
    { "open2_on"        open2_on   int 1 }
    
    { "open1_x1"        open1_x1   float -0.4  length }
    { "open1_z1"        open1_z1   float -0.35 length }
    { "open1_x2"        open1_x2   float 0.4   length }
    { "open1_z2"        open1_z2   float -0.05 length }
    { "open2_x1"        open2_x1   float -0.4  length }
    { "open2_z1"        open2_z1   float 0.05  length }
    { "open2_x2"        open2_x2   float 0.4   length }
    { "open2_z2"        open2_z2   float 0.35  length }
}

set object_params_affect_mesh(hood,all) 1

set object_edit_info(hood) {
    { default default
	{ neck Neck { hexa Default } }
	{ canopy Canopy { polygon Default } }
	{ flange1 Flange1 { quad Default } }
	{ flange2 Flange2 { quad Default } }
	{ flange3 Flange3 { quad Default } }
	{ flange4 Flange4 { quad Default } }
	{ open1 Opening1 { quad Default } { none None } }
	{ open2 Opening2 { quad Default } { none None } }
    }
}

set object_edit_separate_shapedata(hood) 1

set object_labels_only_for_section(hood) canopy
