# $Revision$ on $Date$
# The above revision line needs to be the first line for ttkrf files
# Copyright (c) 2006 Ansys Inc

# AI*Environment Prototype GUI Layout 2
# Menu definitions
#
# E. Miller 5/21/02
# A. Salehzadeh start 6/13-

popupMenu modelContextMenu
  menuItem "Create All Nodes" "::AIEnv::GUIManagement::Tree::doInsertAll"
  menuItem "Geometry Units" "unitsGeometryDEZ show"
popupMenu END

popupMenu pointContextMenu
#  menuItem "Show Points" ::AIEnv::GUIManagement::Tree::ShowPoint
#  menuItem "Hide Points" ::AIEnv::GUIManagement::Tree::HidePoint
#  separator
  menuCheck "Show Large" "::AIEnv::GUIManagement::Tree::ShowWide point" aie_ShowWide(point)
  menuCheck "Show Dormant " "::AIEnv::GUIManagement::Tree::ShowDormant point" aie_ShowDormant(point)
  menuCheck "Show Protected " "::AIEnv::GUIManagement::Tree::ShowProtectPoints" aie_ShowProtect
  separator
  menuCheck "Show Point Names" "::AIEnv::GUIManagement::Tree::ShowNames point" aie_ShowNames(point)
  menuItem "Show Point Info" "::AIEnv::GUIManagement::Tree::ShowInfo point"
  menuItem "Blank Points" "aie_blank_geometry point"
  menuItem "Unblank All Points" "aie_unblank_geometry point"
  menuItem "Show Only Points" "aie_restrict_geometry point"
  menuItem "Show Attached Curves" "aie_show_attached_geometry point curve"
  menuItem "Show Attached Surfaces " "aie_show_attached_geometry point surface"
  menuItem "Rename Point" "aie_rename_geometry point"
popupMenu END

popupMenu curveContextMenu
#  menuItem "Show Curves" ::AIEnv::GUIManagement::Tree::ShowCurve
#  menuItem "Hide Curves" ::AIEnv::GUIManagement::Tree::HideCurve
#  separator
  menuCheck "Show Unattached" "::AIEnv::GUIManagement::Tree::ShowCurveAttachment show0" aie_ShowCurveAttachment(show0)
  menuCheck "Show Single" "::AIEnv::GUIManagement::Tree::ShowCurveAttachment show1" aie_ShowCurveAttachment(show1)
  menuCheck "Show Double" "::AIEnv::GUIManagement::Tree::ShowCurveAttachment show2" aie_ShowCurveAttachment(show2)
  menuCheck "Show Multiple" "::AIEnv::GUIManagement::Tree::ShowCurveAttachment show3" aie_ShowCurveAttachment(show3)
  menuCheck "Show Wide" "::AIEnv::GUIManagement::Tree::ShowWide curve" aie_ShowWide(curve)
  menuCheck "Show Dormant" "::AIEnv::GUIManagement::Tree::ShowDormant curve" aie_ShowDormant(curve)
  menuCheck "Color by Count" "::AIEnv::GUIManagement::Tree::CurveColorByCount" aie_CurveColorByCount
  separator
  menuCheck "Show Composite" "::AIEnv::GUIManagement::Tree::CurveComposite" aie_CurveComposite 
#  menuItem  "Edit Composite"  aie_edit_composite_curve
  menuCheck "Curve Node Spacing" ::AIEnv::GUIManagement::Tree::ShowCurveQuadSizes aie_ShowCurveQuads
  menuCheck "Curve Element Count" ::AIEnv::GUIManagement::Tree::ShowCurveQuadCount aie_ShowCurveQuadsCount
  separator
ifndef AI_ENV_LSTC
  menuCheck "Curve Tetra Sizes" "aie_show_params curve tetra" aie_curveParams(tetra)
endif
  menuCheck "Curve Hexa Sizes" "aie_show_params curve hexa" aie_curveParams(hexa)
  separator
  menuCheck "Show Curve Names" "::AIEnv::GUIManagement::Tree::ShowNames curve" aie_ShowNames(curve)
  menuItem "Show Curve Info" "::AIEnv::GUIManagement::Tree::ShowInfo curve"
  menuItem "Blank Curves" "aie_blank_geometry curve"
  menuItem "Unblank All Curves" "aie_unblank_geometry curve"
  menuItem "Show Only Curves by Selection" "aie_restrict_geometry curve"
  menuItem "Show Only Curves by Sharp Angle" "aie_restrict_geometry_by_angle"
  menuItem "Show Attached Points" "aie_show_attached_geometry curve boundary"
  menuItem "Show Attached Surfaces" "aie_show_attached_geometry curve incident"
  menuItem "Rename Curve" "aie_rename_geometry curve"
popupMenu END

popupMenu surfContextMenu
#  menuItem "Show Surfaces" ::AIEnv::GUIManagement::Tree::ShowSurf
#  menuItem "Hide Surfaces" ::AIEnv::GUIManagement::Tree::HideSurf
  menuRadio "Show Full " "aie_changeSurfStyle simpval" aie_SurfStyle(simpval) detailed
  menuRadio "Show Simple " "aie_changeSurfStyle simpval" aie_SurfStyle(simpval) simple
  menuRadio "Show Simpler " "aie_changeSurfStyle simpval" aie_SurfStyle(simpval) simpler
  menuRadio "Show Simplest " "aie_changeSurfStyle simpval" aie_SurfStyle(simpval) simplest
  separator
  menuCheck "Wire Frame " "aie_changeSurfStyle wire" aie_SurfStyle(wire)
  menuCheck "Solid " "aie_changeSurfStyle solid" aie_SurfStyle(solid)
  menuCheck "Solid & Wire " "aie_changeSurfStyle flat_wire" aie_SurfStyle(flat_wire)
  menuCheck "Grey Scale" "aie_changeSurfStyle grey_scale" aie_SurfStyle(grey_scale)
  menuCheck "Transparent" "aie_changeSurfStyle transparent" aie_SurfStyle(transparent)
  menuCheck "Normals Using Arrow " ::AIEnv::GUIManagement::Tree::ShowSurfaceNormals aie_ShowSurfaceNormals
  menuCheck "Normals Using Color " ::AIEnv::GUIManagement::Tree::ShowSurfaceNormalsColor aie_ColorByNormal
ifndef AI_ENV_LSTC
  menuCheck "Show Surface Thickness" ::AIEnv::GUIManagement::Tree::ShowThickness aie_ShowThickness
  separator
  menuCheck "Tetra Sizes" "aie_show_params surface tetra" aie_surfaceParams(tetra)
endif
  menuCheck "Hexa Sizes" "aie_show_params surface hexa" aie_surfaceParams(hexa)
  separator
  menuCheck "Show Surface Names" "::AIEnv::GUIManagement::Tree::ShowNames surface" aie_ShowNames(surface)
  menuItem "Show Surface Info" "::AIEnv::GUIManagement::Tree::ShowInfo surface"
  menuItem "Blank Surfaces" "aie_blank_geometry surface"
  menuItem "Unblank All Surfaces" "aie_unblank_geometry surface"
  menuItem "Show Only Surfaces" "aie_restrict_geometry surface"
  menuItem "Show Attached Points " "aie_show_attached_geometry surface point"
  menuItem "Show Attached Curves " "aie_show_attached_geometry surface curve"
  menuItem "Rename Surface" "aie_rename_geometry surface"
popupMenu END

popupMenu bodyContextMenu
#  menuItem "Show Bodies" ::AIEnv::GUIManagement::Tree::ShowBody
#  menuItem "Hide Bodies" ::AIEnv::GUIManagement::Tree::HideBody
#  separator
  menuCheck "Show Bounding Surfaces" "aie_change_body_style" aie_bodyStyle(detailed)
  menuCheck "Show Body Names" "::AIEnv::GUIManagement::Tree::ShowNames body" aie_ShowNames(body)
  menuItem "Show Body Info" "::AIEnv::GUIManagement::Tree::ShowInfo body"
  separator
  menuItem "Screen Move" "geo_modify_body_screen"
popupMenu END

popupMenu densityContextMenu
  menuItem "Create Density" "createDensityDEZ show"
  menuItem "Modify Density" "modifyDensityDEZ show"
  menuItem "Delete Density" "deleteDensityDEZ show"
  separator
  menuCheck "Wide Density Lines" "::AIEnv::GUIManagement::Tree::ShowWide density" aie_ShowWide(density)
  menuCheck "Density Tetra Sizes" ::AIEnv::GUIManagement::Tree::ShowDensityTetraSizes aie_ShowDensityTetras
  menuItem  "Density Color" "aie_density_color"
  separator
  menuCheck "Show Density Names" "::AIEnv::GUIManagement::Tree::ShowNames density" aie_ShowNames(density)
  menuItem "Show Density Info" "::AIEnv::GUIManagement::Tree::ShowInfo density"
  menuItem "Blank Densities" "aie_blank_geometry density"
  menuItem "Unblank All Densities" "aie_unblank_geometry density"
  menuItem "Rename Density" "aie_rename_geometry density"
popupMenu END

popupMenu geomContextMenu
    menuItem "Show All" "::AIEnv::GUIManagement::Tree::ShowGeometry 2"
    menuItem "Hide All" "::AIEnv::GUIManagement::Tree::ShowGeometry 0"
    menuItem "Blank Entities" "aie_blank_geometry entity"
    menuItem "Unblank All Entities" "aie_unblank_geometry entity"
    menuItem "Rename Entity" "aie_rename_geometry entity"
popupMenu END

popupMenu meshContextMenu
    menuItem "Show All " "::AIEnv::GUIManagement::Tree::ShowMesh 2"
    menuItem "Hide All " "::AIEnv::GUIManagement::Tree::ShowMesh 0"
popupMenu END

popupMenu meshUnsContextMenu
    menu "Cut Plane..."
        menuItem "Manage Cut Plane" "cutPlaneDEZ show"
        menuCheck "Show Cut Plane" "::AIEnv::GUIManagement::Tree::ShowCutPlanes" cut_info(active)
    menu END
    separator
    menuCheck "Element Numbers" aie_changeMeshDisplay aie_meshDisplay(enums)
    separator
    menuCheck "Color by Quality" "aie_changeMeshDisplay style color_by_quality" aie_meshStyle(color_by_quality)
    separator 
    menuCheck "Shrink 10%" ::AIEnv::GUIManagement::Tree::ShowShrink aie_meshShrink(90)
    menuCheck "Shrink 50%" ::AIEnv::GUIManagement::Tree::ShowShrink aie_meshShrink(50)
    menuCheck "Shrink Node Pos" aie_changeMeshDisplay aie_meshDisplay(shrink_npos)
    separator
    menuCheck "Dot Nodes" ::AIEnv::GUIManagement::Tree::ShowNodes aie_meshNodes(Dots)
    menuCheck "Node Numbers" ::AIEnv::GUIManagement::Tree::ShowNodes aie_meshNodes(Nums)
    menuCheck "Node Coords" ::AIEnv::GUIManagement::Tree::ShowNodes aie_meshNodes(Coords)
    menuCheck "Elem Verts" ::AIEnv::GUIManagement::Tree::ShowNodes aie_meshNodes(Indices)
    menuCheck "Elem Triads" ::AIEnv::GUIManagement::Tree::ShowNodes aie_meshNodes(Indices_Triad)
    separator
ifdef AI_ENV_BETA    
    menuCheck "No Inner Elems" aie_changeMeshDisplay aie_meshDisplay(no_inner)
    separator
#endif
#ifdef AI_ENV_CFD
    menuCheck "Periodicity" aie_changeMeshDisplay aie_meshDisplay(periodicity)
#endif
    menuCheck "Quadratic Shape" aie_changeMeshDisplay aie_meshDisplay(midside_nodes)
    menuCheck "Wide Lines" aie_changeMeshDisplay aie_meshDisplay(wide_lines)
    menuCheck "Couplings" aie_changeMeshDisplay aie_meshDisplay(couplings)
    menuCheck "Locked Elements" aie_changeMeshDisplay aie_meshDisplay(locked_elements)
    menuCheck "Distributed attribute" "aie_changeMeshDisplay bcfield" aie_meshDisplay(bcfield)
    separator
    menuItem "Diagnostics " "aie_shell_show_diagnostics"
popupMenu END

popupMenu lineContextMenu
    menuCheck "Direction" aie_changeMeshDisplay aie_meshDisplay(directions)
popupMenu END

popupMenu shellContextMenu

    menuRadio "Wire Frame  " "aie_changeMeshDisplay style Wire" aie_meshStyle(Wire) 1
    menuRadio "Solid  " "aie_changeMeshDisplay style Solid" aie_meshStyle(Solid) 1
    menuRadio "Solid & Wire  " "aie_changeMeshDisplay style Solid/wire" aie_meshStyle(Solid/wire) 1
    menuRadio "Hidden Line " "aie_changeMeshDisplay style {Hidden line}" "aie_meshStyle(Hidden line)" 1
    menuRadio "By dimension " "aie_changeMeshDisplay style {By dimension}" "aie_meshStyle(By dimension)" 1
    menuRadio "Color by Quality " "aie_changeMeshDisplay style color_by_quality" aie_meshStyle(color_by_quality) 1
    separator
    menuCheck "Dual Mesh" aie_changeMeshDisplay aie_meshDisplay(dualmesh)
    menuCheck "Shell Thickness" aie_changeMeshDisplay aie_meshDisplay(thickness)
    menuCheck "Normals Using Arrow" ::AIEnv::GUIManagement::Tree::ShowFaceNormals aie_meshDisplay(normals)
    menuCheck "Normals Using Color" ::AIEnv::GUIManagement::Tree::ShowNormalsColored aie_meshDisplay(normals_colored)
    menuCheck "Face Icons" aie_changeMeshDisplay aie_meshDisplay(icons)
    separator
    menuItem "Diagnostics" "aie_shell_show_diagnostics"
    separator
    menuCheck "Surface Bounds" aie_changeMeshDisplay aie_meshDisplay(surf_bounds)
popupMenu END

popupMenu volumeContextMenu
    menuRadio "Wire Frame" "aie_changeMeshDisplay style Wire" aie_meshStyle(Wire) 1
    menuRadio "Solid" "aie_changeMeshDisplay style Solid" aie_meshStyle(Solid) 1
    menuRadio "Solid & Wire"  "aie_changeMeshDisplay style Solid/wire" aie_meshStyle(Solid/wire) 1
    menuRadio "Hidden Line"  "aie_changeMeshDisplay style {Hidden line}" "aie_meshStyle(Hidden line)" 1
    menuRadio "By dimension"  "aie_changeMeshDisplay style {By dimension}" "aie_meshStyle(By dimension)" 1
    separator
    menuCheck "Volume Bounds" aie_changeMeshDisplay aie_meshDisplay(vol_bounds)
popupMenu END

popupMenu domainContextMenu
#    menuItem "All"      "disp_set_visible domain 1"
#    menuItem "None"     "disp_set_visible domain 0"
#    menuItem "Blank"    "disp_set_visible domain b"
#    menuItem "Restrict" "disp_set_visible domain r"
#    menuItem "Invert"   "disp_set_visible domain i"
#    menuItem "Adjacent" "disp_set_visible domain a"
#    separator
    menuCheck "No Mesh"     "aie_change_domain_shade none" aie_strShade(domain,none)
    menuCheck "Wireframe"   "aie_change_domain_shade wire" aie_strShade(domain,wire)
    menuCheck "Solid     "  "aie_change_domain_shade solid" aie_strShade(domain,solid)
    menuCheck "Solid/Wire"  "aie_change_domain_shade flat_wire" aie_strShade(domain,flat_wire)
    menuCheck "Hidden Line  " "aie_change_domain_shade hidden" aie_strShade(domain,hidden)
    separator
    menuCheck "Show Outlines" "disp_set_option domain" str_option(domain,outlines)
    menuCheck "Simplify"      "disp_set_option domain" str_option(domain,simplify)
    menuCheck "Show Nodes"    "disp_set_option domain" str_option(domain,nodes)
    menuCheck "Show Names"    "disp_set_option domain" str_option(domain,names)
    menuCheck "Show IJK"      "disp_set_option domain" str_option(domain,ijk)
    menuCheck "Show Changes"  "disp_set_option domain" str_option(domain,changes)
    separator
    menuCheck "Shrink IJK"    "aie_strdisp_shrink domain" str_option(domain,shrink)
    menuItem  "Show Info"     "pick_struct_entity domain"
    menuItem  "Number List"   "aie_setup_domain_form_list"
    menuItem  "Scan Planes "  "aie_setup_domain_form_scanplanes"
popupMenu END

popupMenu subfaceContextMenu
    menuCheck "Wireframe "   "aie_change_subface_shade wire" aie_strShade(subface,wire)
    menuCheck "Solid      "  "aie_change_subface_shade solid" aie_strShade(subface,solid)
    menuCheck "Solid/Wire "  "aie_change_subface_shade flat_wire" aie_strShade(subface,flat_wire)
    menuCheck "Hidden Line   " "aie_change_subface_shade hidden" aie_strShade(subface,hidden)
    separator
    menuCheck "Show Outlines " "disp_set_option subface" str_option(subface,outlines)
    menuCheck "Simplify "      "disp_set_option subface" str_option(subface,simplify)
    menuCheck "Show Nodes "    "disp_set_option subface" str_option(subface,nodes)
    menuCheck "Show Names "    "disp_set_option subface" str_option(subface,numbers)
    menuCheck "Show IJK "      "disp_set_option subface" str_option(subface,ijk)
    menuCheck "Show Changes "  "disp_set_option subface" str_option(subface,changes)
    menuCheck "Periodic Twin"  "disp_set_option subface" str_option(subface,draw_twin)
    menuCheck "Shared "        "aie_changeStrSharedDisplay shared" aie_sharedStrDisplay(shared)
    menuCheck "Unshared "      "aie_changeStrSharedDisplay unshared" aie_sharedStrDisplay(unshared)
    separator
    menuCheck "Shrink IJK "    "aie_strdisp_shrink subface" str_option(subface,shrink)
    menuItem "Show Info " "pick_struct_entity subface"
popupMenu END

popupMenu edgeContextMenu
    menuCheck "Simplify  "      "disp_set_option edge" str_option(edge,simplify)
    menuCheck "Show Nodes  "    "disp_set_option edge" str_option(edge,nodes)
    menuCheck "Show Names  "    "disp_set_option edge" str_option(edge,names)
    menuCheck "Show Numbers  "  "disp_set_option edge" str_option(edge,numbers)
    menuCheck "Show IJK   "     "disp_set_option edge" str_option(edge,ijk)
    menuCheck "Show Changes  "  "disp_set_option edge" str_option(edge,changes)
    menuCheck "Periodic Twin "  "disp_set_option edge" str_option(edge,draw_twin)
    separator
    menuCheck "Shrink IJK  "    "aie_strdisp_shrink edge" str_option(edge,shrink)
    menuItem "Show Info  " "pick_struct_entity edge"
popupMenu END

popupMenu vertexContextMenu
    menuCheck "Show Names   "    "disp_set_option vertex" str_option(vertex,names)
    menuCheck "Show Numbers   "  "disp_set_option vertex" str_option(vertex,numbers)
    menuCheck "Show Changes   "  "disp_set_option vertex" str_option(vertex,changes)
    menuCheck "Periodic Twin  "  "disp_set_option vertex" str_option(vertex,draw_twin)
    separator
    menuItem "Show Info   " "pick_struct_entity vertex"
popupMenu END

popupMenu blockingContextMenu
    menuItem "Index Control" "aie_hex_index_control"
    menuItem "Set Line Width" "aie_hex_line_width"
ifdef AI_ENV_CFD
    menuItem "Init Output Blocks" "aie_init_output_blocks"
endif
ifdef AI_ENV_CFD
    menuItem "Blocking Info" "hex_misc_blocking_info"
endif
#    menuItem "Update All Associations" "aie_update_association"
#    menuItem "Update Vertex Associations" "aie_update_association vertices"
#    menuItem "Update Edge Associations" "aie_update_association edges"
#    menuItem "Update Face Associations" "aie_update_association faces"
#    menuItem "Convert to Unstructured" "aie_convert_hexa_mesh uns"
#    menuItem "Write MultiBlock Mesh" "aie_convert_hexa_mesh multiblock"
popupMenu END

popupMenu blockCurveContextMenu
    menuCheck "Params" "hex_update_display curve" display_flag(curve_params)
    menuCheck "Names" "hex_update_display curve" display_flag(curve_names)
popupMenu END

popupMenu blockVertContextMenu
    menuCheck "On Surfaces" "hex_update_display vert" display_flag(vert_surf)
    menuCheck "Periodic" "hex_update_display vert" display_flag(vert_periodic)
    menuCheck "Names " "hex_update_display vert" display_flag(vert_pname)
    separator
    menuRadio "Proj Type" "aie_change_vertproj proj" aie_blockVertProj(proj) 1
    menuRadio "Indices" "aie_change_vertproj indices" aie_blockVertProj(indices) 1
    menuRadio "Numbers" "aie_change_vertproj number" aie_blockVertProj(number) 1
    separator
    menuCheck "Show Hidden" "hex_update_display vert" display_flag(vert_hidden)
    separator
    menuItem "Show Vertex Info" "hex_query vertex"
ifdef AI_ENV_IN_WB2
    menuCheck "Show Parametrized Vertices" "aie_wb2_show_parametrized vertex" aie_ShowParametrized(vertex)
endif
popupMenu END

popupMenu blockEdgeContextMenu
    menuCheck "Internal Edges" "hex_update_display edge vertex" display_flag(edge_vol)
    menuCheck "Show Association" "hex_update_display edge" display_flag(edge_proj)
    menuCheck "Bunching" "hex_update_display edge" display_flag(edge_bunch)
    menuCheck "Counts" "hex_update_display edge" display_flag(edge_counts)
    menuCheck "Projected Edge Shape" "hex_update_display edge vertex" display_flag(edge_shape)
    menuCheck "Projected Mesh Shape" "hex_update_display edge vertex" display_flag(edge_nodes)
    menuCheck "Meshing Set" "hex_update_display edge" display_flag(edge_mset)
    menuCheck "Shape Source" "hex_update_display edge" display_flag(edge_shape_source)
    menuCheck "Simple" "hex_update_display edge" display_flag(edge_simple)
    menuCheck "Color by Count " "hex_update_display edge" display_flag(color_by_count)
    separator
    menuItem "Show Edge Info" "hex_query edge"
ifdef AI_ENV_IN_WB2
    menuCheck "Show Parametrized Edges" "aie_wb2_show_parametrized edge" aie_ShowParametrized(edge)
endif
popupMenu END

popupMenu blockFaceContextMenu
    menuCheck "Periodic Faces" "hex_update_display face_periodic" display_flag(face_periodic)
    menuCheck "Face Projection" "hex_update_display face_norm" display_flag(face_norm)
    menuCheck "Boundary" "hex_update_display face" display_flag(face_boundary)
    separator
    menuItem "Shared Wall Info" "aie_hex_show_shared_wall_info"
    menuItem "Show Face Info" "hex_query face"
popupMenu END

popupMenu blockBlockContextMenu
    menuCheck "Solid   " "hex_update_display block" display_flag(block_solid)
    menuCheck "Whole blocks" "hex_update_display block" display_flag(block_super)
    menuCheck "No shrink" "hex_update_display block" display_flag(block_noshrink)
#    menuCheck "Worst" "hex_update_display block_worst" display_flag(block_worst)
    menuCheck "Find Worst" "hex_update_display block_worst" display_flag(block_worst)
    menuCheck "IJK" "hex_update_display block" display_flag(block_ijk)
    menuCheck "Refinement" "hex_update_display block" display_flag(block_refinement)
#    menuCheck "Selected Blocks" "hex_update_display block" display_flag(block_numbers)
    menuCheck "Classes" "hex_update_display block" display_flag(block_classes)
    separator
    menuCheck "Show Mapped" "hex_update_display block" display_flag(block_struct)
    menuCheck "Show Swept" "hex_update_display block" display_flag(block_swept)
    menuCheck "Show Free" "hex_update_display block" display_flag(block_unstruct)
    separator
    menuItem "Show Inverted" "aie_hex_show_inverted"
    separator
    menuCheck "Blanking" "aie_blank_blocks unblank" display_flag(use_blanking)
    menu "Blank Blocks"
        menuItem "Select" "aie_blank_blocks blank"
        menuItem "All Mapped" "aie_blank_blocks mapped"
        menuItem "All Swept" "aie_blank_blocks swept"
        menuItem "All Free" "aie_blank_blocks free"
    menu END
#    menuItem "Blank Blocks" "aie_blank_blocks blank"
#    menuItem "Delete Blanked Blocks" "aie_delete_blanked_blocks" 
#    menuItem "Change Part" "changeBlockPartDEZ show"
#    menuItem "Renumber" "aie_renumber_blocks"
#    menuItem "IJK->KIJ" "aie_rotate_blocks"
    separator
    menuItem "Block Types" "hex_number_of_blocks_info"
    menuItem "Show Block Info" "hex_query block"
popupMenu END

popupMenu blockMeshContextMenu
    menuCheck "Wire Frame   " "aie_change_meshstyle 1" aie_blockMeshStyle(1)
    menuCheck "Solid & Wire   " "aie_change_meshstyle 2" aie_blockMeshStyle(2)
    separator
    menuCheck "No Projection" "aie_change_meshproj -1" aie_blockMeshProj(-1)
    menuCheck "Project Vertices" "aie_change_meshproj 0" aie_blockMeshProj(0)
    menuCheck "Project Edges" "aie_change_meshproj 1" aie_blockMeshProj(1)
    menuCheck "Project Faces" "aie_change_meshproj 2" aie_blockMeshProj(2)
    menuItem "Active Parts" "aie_hex_proj_active_surfs" 
    separator
    menuItem "Recompute" "aie_hex_recompute_mesh"
    menuItem "Pre-mesh Info" "aie_hex_mesh_size 1 0"
    menuItem  "Find Worst elements" "findWorstElemsDEZ show"
ifndef AI_ENV_LSTC
    menuItem "Convert to Unstruct Mesh" "aie_convert_hexa_mesh uns"
ifdef AI_ENV_CFD
    menuItem "Convert to MultiBlock Mesh" "aie_convert_hexa_mesh multiblock"
endif
endif
ifdef AI_ENV_LSTC
    menuItem "Write Unstruct Mesh" "aie_convert_hexa_mesh uns"
    menuItem "Write LS-Pre Mesh" "aie_export_mesh_lspre"
endif

ifdef AI_ENV_CFD
    menuItem "Reference MultiBlock Mesh" "aie_convert_str_to_blocking"
endif

    menuItem "Scan planes" "aie_hex_scan_planes"
    menuItem  "Cut plane" "hexcutPlaneDEZ show"

ifdef AI_ENV_CFD
    separator
    menuCheck "Output Blocks" "hex_update_display block face edge vertex" use_output_blocks
endif
popupMenu END

