mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 13:08:49 -05:00
Adjust tab width for asset and task files
This commit is contained in:
@@ -6,22 +6,22 @@ for i=1,length do
|
||||
local step = string.format("%02d", i-1)
|
||||
local fn =
|
||||
"return function (x, y, z) " .. "\n" ..
|
||||
" local v = math.sqrt(x^2 + y^2 + z^2) - " .. radius .. "\n" ..
|
||||
" v = (-v - 0.1) / 0.2 " .. "\n" ..
|
||||
" v = math.min(math.max(v, 0), 1) " .. "\n" ..
|
||||
" v = 3*v^2 - 2*v^3 " .. "\n" ..
|
||||
" return v" .. "\n" ..
|
||||
" local v = math.sqrt(x^2 + y^2 + z^2) - " .. radius .. "\n" ..
|
||||
" v = (-v - 0.1) / 0.2 " .. "\n" ..
|
||||
" v = math.min(math.max(v, 0), 1) " .. "\n" ..
|
||||
" v = 3*v^2 - 2*v^3 " .. "\n" ..
|
||||
" return v" .. "\n" ..
|
||||
"end"
|
||||
tasks[#tasks+1] = {
|
||||
Type = "GenerateRawVolumeTask",
|
||||
Dimensions = {32, 32, 32},
|
||||
LowerDomainBound = {-0.5, -0.5, -0.5},
|
||||
UpperDomainBound = {0.5, 0.5, 0.5},
|
||||
ValueFunction = fn,
|
||||
Time = "2018-05-04T00:00:" .. step,
|
||||
RawVolumeOutput = "${DATA}/assets/examples/volume/generated/cartesiansequence/" .. step .. ".rawvolume",
|
||||
DictionaryOutput = "${DATA}/assets/examples/volume/generated/cartesiansequence/" .. step .. ".dictionary"
|
||||
}
|
||||
Type = "GenerateRawVolumeTask",
|
||||
Dimensions = {32, 32, 32},
|
||||
LowerDomainBound = {-0.5, -0.5, -0.5},
|
||||
UpperDomainBound = {0.5, 0.5, 0.5},
|
||||
ValueFunction = fn,
|
||||
Time = "2018-05-04T00:00:" .. step,
|
||||
RawVolumeOutput = "${DATA}/assets/examples/volume/generated/cartesiansequence/" .. step .. ".rawvolume",
|
||||
DictionaryOutput = "${DATA}/assets/examples/volume/generated/cartesiansequence/" .. step .. ".dictionary"
|
||||
}
|
||||
end
|
||||
|
||||
return tasks
|
||||
Reference in New Issue
Block a user