Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Sep 5, 2023
1 parent 3f28ba5 commit d87240d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions l2cu
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ fi
# functions ////////////////////////////////////////////////////////////////////

l2cu_prepare () {

if [[ "${option}" = "export" ]]
then
optimize=$(mktemp /tmp/optimize.XXXXXX)
Expand Down Expand Up @@ -633,6 +634,7 @@ l2cu_prepare () {
}

l2cu_optimize () {

# optimize model mesh

frobulator.inf "Exporting" "[ ${export_name} // ${model_file} ]"
Expand All @@ -650,6 +652,7 @@ l2cu_optimize () {
}

l2cu_export () {

frobulator.inf "Exporting" "[ ${export_name} // ${model_file} ]"
echo

Expand All @@ -664,6 +667,7 @@ l2cu_export () {
}

l2cu_size () {

# validate export file size

block_size=1024
Expand Down Expand Up @@ -698,6 +702,7 @@ l2cu_size () {
}

l2cu_render () {

# render model

frobulator.inf "Rendering" "[ Instance ${view[coordinates]} // ${model_name} ]"
Expand Down Expand Up @@ -737,6 +742,7 @@ l2cu_render () {
}

l2cu_pieces () {

# generate total piece count

frobulator.inf "Generating pieces count file" "[ ${model_name} ]"
Expand Down Expand Up @@ -813,6 +819,7 @@ l2cu_pieces () {
}

l2cu_instructions () {

# generate model instructions

frobulator.inf "Generating instructions" "[ ${model_name} ]"
Expand All @@ -839,6 +846,7 @@ l2cu_instructions () {
}

parse_input () {

# read and parse user input

while true
Expand All @@ -857,6 +865,7 @@ parse_input () {
}

parse_colors () {

parse_input

# set to lowercase for input match
Expand Down Expand Up @@ -924,6 +933,7 @@ parse_colors () {
}

parse_parts () {

# read and parse part selection

parse_input
Expand All @@ -934,6 +944,7 @@ parse_parts () {
}

parse_modification () {

# read and parse modification input request

if [ "${modify_option}" = "color" ]
Expand Down Expand Up @@ -1003,6 +1014,7 @@ parse_modification () {
}

l2cu_write () {

# manage model file overwrite

if [ "${overwrite_option}" = "overwrite" ]
Expand Down Expand Up @@ -1046,6 +1058,7 @@ l2cu_write () {
}

l2cu_download () {

# manage library dowload

if [ -z "${directory}" ]
Expand Down

0 comments on commit d87240d

Please sign in to comment.