private void InitializeMode(HexagonModeGUI modegui) { modegui.vertexMesh = vertex_mesh; modegui.vertexMaterial = vertex_material; modegui.meshMaterial = mesh_material; modegui.axiMaterial = axi_material; modegui.axiMesh = axi_mesh; modegui.originMesh = vertex_mesh; modegui.voxelMesh = voxel_mesh; }
public void Intialize() { _mode = 0; _cornergui = new CornerModeGUI(); InitializeMode(_cornergui); _latgui = new LateralModeGUI(); InitializeMode(_latgui); _longgui = new LongitudeModeGUI(); InitializeMode(_longgui); _rectgui = new RectModeGUI(); InitializeMode(_rectgui); _hexgui = new HexagonModeGUI(); InitializeMode(_hexgui); _mappinggui = new MappingModeGUI(); InitializeMode(_mappinggui); UpdateLayoutRects(); EnableMode(_mode); }