tbd 3.4.4 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/pull_request.yml +16 -48
- data/LICENSE.md +1 -1
- data/README.md +29 -35
- data/lib/measures/tbd/LICENSE.md +1 -1
- data/lib/measures/tbd/measure.rb +1 -1
- data/lib/measures/tbd/measure.xml +11 -11
- data/lib/measures/tbd/resources/geo.rb +11 -10
- data/lib/measures/tbd/resources/geometry.rb +351 -351
- data/lib/measures/tbd/resources/model.rb +1425 -1425
- data/lib/measures/tbd/resources/oslog.rb +43 -25
- data/lib/measures/tbd/resources/psi.rb +109 -85
- data/lib/measures/tbd/resources/tbd.rb +1 -1
- data/lib/measures/tbd/resources/transformation.rb +120 -120
- data/lib/measures/tbd/resources/ua.rb +66 -66
- data/lib/measures/tbd/resources/utils.rb +989 -613
- data/lib/measures/tbd/resources/version.rb +3 -3
- data/lib/measures/tbd/tests/tbd_tests.rb +1 -1
- data/lib/tbd/geo.rb +11 -10
- data/lib/tbd/psi.rb +109 -85
- data/lib/tbd/ua.rb +66 -66
- data/lib/tbd/version.rb +2 -2
- data/lib/tbd.rb +18 -12
- data/tbd.gemspec +1 -1
- data/v291_MacOS.md +19 -28
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d6373dd2c7851862ab62c368f9a08ba66b515028792278249e83cbc4ea82387
|
4
|
+
data.tar.gz: a4d02730e467fd836af97a2f4ca68f90c0e7b6aa53aabbbe2e7d5c53cd932e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1725c5ea9338e03765a5a49fc13b9525802330eecbbd6effdf8bbd71383e695c2ec4f38c536cdbd8b32f12929f216a164e28ddcd656c16937a1a03d1f15b97dc
|
7
|
+
data.tar.gz: 34bf72736719a22e7f2d19a6f937d7098417931ec748386615ef7ccb14ebc488e3a905d352c0ef94d0bbf8c7299e62899d4134529288b353cf32c4bd9afa2f0c
|
@@ -6,22 +6,6 @@ on:
|
|
6
6
|
- develop
|
7
7
|
|
8
8
|
jobs:
|
9
|
-
test_300x:
|
10
|
-
runs-on: ubuntu-22.04
|
11
|
-
steps:
|
12
|
-
- name: Check out repository
|
13
|
-
uses: actions/checkout@v2
|
14
|
-
- name: Run Tests
|
15
|
-
run: |
|
16
|
-
echo $(pwd)
|
17
|
-
echo $(ls)
|
18
|
-
docker pull nrel/openstudio:3.0.0
|
19
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.0.0
|
20
|
-
docker exec -t test pwd
|
21
|
-
docker exec -t test ls
|
22
|
-
docker exec -t test bundle update
|
23
|
-
docker exec -t test bundle exec rake
|
24
|
-
docker kill test
|
25
9
|
test_321x:
|
26
10
|
runs-on: ubuntu-22.04
|
27
11
|
steps:
|
@@ -38,38 +22,6 @@ jobs:
|
|
38
22
|
docker exec -t test bundle update
|
39
23
|
docker exec -t test bundle exec rake
|
40
24
|
docker kill test
|
41
|
-
test_330x:
|
42
|
-
runs-on: ubuntu-22.04
|
43
|
-
steps:
|
44
|
-
- name: Check out repository
|
45
|
-
uses: actions/checkout@v2
|
46
|
-
- name: Run Tests
|
47
|
-
run: |
|
48
|
-
echo $(pwd)
|
49
|
-
echo $(ls)
|
50
|
-
docker pull nrel/openstudio:3.3.0
|
51
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.3.0
|
52
|
-
docker exec -t test pwd
|
53
|
-
docker exec -t test ls
|
54
|
-
docker exec -t test bundle update
|
55
|
-
docker exec -t test bundle exec rake
|
56
|
-
docker kill test
|
57
|
-
test_340x:
|
58
|
-
runs-on: ubuntu-22.04
|
59
|
-
steps:
|
60
|
-
- name: Check out repository
|
61
|
-
uses: actions/checkout@v2
|
62
|
-
- name: Run Tests
|
63
|
-
run: |
|
64
|
-
echo $(pwd)
|
65
|
-
echo $(ls)
|
66
|
-
docker pull nrel/openstudio:3.4.0
|
67
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.4.0
|
68
|
-
docker exec -t test pwd
|
69
|
-
docker exec -t test ls
|
70
|
-
docker exec -t test bundle update
|
71
|
-
docker exec -t test bundle exec rake
|
72
|
-
docker kill test
|
73
25
|
test_351x:
|
74
26
|
runs-on: ubuntu-22.04
|
75
27
|
steps:
|
@@ -150,3 +102,19 @@ jobs:
|
|
150
102
|
docker exec -t test bundle update
|
151
103
|
docker exec -t test bundle exec rake
|
152
104
|
docker kill test
|
105
|
+
test_3100x:
|
106
|
+
runs-on: ubuntu-22.04
|
107
|
+
steps:
|
108
|
+
- name: Check out repository
|
109
|
+
uses: actions/checkout@v2
|
110
|
+
- name: Run Tests
|
111
|
+
run: |
|
112
|
+
echo $(pwd)
|
113
|
+
echo $(ls)
|
114
|
+
docker pull nrel/openstudio:3.10.0
|
115
|
+
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.10.0
|
116
|
+
docker exec -t test pwd
|
117
|
+
docker exec -t test ls
|
118
|
+
docker exec -t test bundle update
|
119
|
+
docker exec -t test bundle exec rake
|
120
|
+
docker kill test
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2020-
|
3
|
+
Copyright (c) 2020-2025 Denis Bourgeois & Dan Macumber
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -5,13 +5,11 @@ An [OpenStudio Measure](https://nrel.github.io/OpenStudio-user-documentation/ref
|
|
5
5
|
## Guide & Downloads
|
6
6
|
|
7
7
|
Building professionals and energy modellers are encouraged to first consult the online [Guide](https://rd2.github.io/tbd/) - it provides an overview of the underlying theory, references, suggested OpenStudio workflows, etc. Users can download the latest _TBD_ version directly from the Guide itself, or under [releases](https://github.com/rd2/tbd/releases), or via NREL's [BCL](https://bcl.nrel.gov) (search for "bridging" or "rd2"). Questions can be posted on [UnmetHours](https://unmethours.com) - a very useful online resource for OpenStudio users. TBD is also available as a Ruby gem - add:
|
8
|
-
|
9
8
|
```
|
10
9
|
gem "tbd", git: "https://github.com/rd2/tbd", branch: "master"
|
11
10
|
```
|
12
11
|
|
13
|
-
... in a
|
14
|
-
|
12
|
+
... in a [bundled](https://bundler.io) _Measure_ development environment "Gemfile" (or preferably as a _gemspec_ dependency), and then run:
|
15
13
|
```
|
16
14
|
bundle install (or 'bundle update')
|
17
15
|
```
|
@@ -24,11 +22,11 @@ Bugs or new feature requests for _TBD_ should be submitted [here](https://github
|
|
24
22
|
|
25
23
|
The installation and testing instructions in this section are for developers interested in exploring/tweaking a cloned/forked version of the source code. In an effort to _lighten_ TBD as a Ruby gem, only the most basic tests are deployed in this repository. More detailed tests are housed in a dedicated TBD [testing](https://github.com/rd2/tbd_tests) repo.
|
26
24
|
|
27
|
-
TBD is systematically tested against updated OpenStudio versions (since v3.0.0). The following instructions refer to OpenStudio v3.
|
25
|
+
TBD is systematically tested against updated OpenStudio versions (since v3.0.0). The following instructions refer to OpenStudio v3.8.0, which requires Ruby v3.2.2. Earlier OpenStudio versions require Ruby v2.7.2. Adapt instructions for older (or newer) versions - see OpenStudio's [compatibility matrix](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix).
|
28
26
|
|
29
27
|
### Windows Installation
|
30
28
|
|
31
|
-
Either install Ruby using the [RubyInstaller](https://rubyinstaller.org/downloads/archives/) for [Ruby 2.
|
29
|
+
Either install Ruby using the [RubyInstaller](https://rubyinstaller.org/downloads/archives/) for [Ruby 3.2.2 (x64)](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.exe), or preferably under a [WSL2](https://gist.github.com/brgix/0d968d8f32c41f13300dc6769414df79) environment. Run the following steps if going down the _RubyInstaller_ route. From the command line, check that the ruby installation returns the correct Ruby version:
|
32
30
|
```
|
33
31
|
ruby -v
|
34
32
|
```
|
@@ -39,12 +37,11 @@ bundler -v
|
|
39
37
|
gem install bundler -v 2.1
|
40
38
|
```
|
41
39
|
|
42
|
-
Install
|
43
|
-
|
44
|
-
Create a new file ```C:\Ruby27-x64\lib\ruby\site_ruby\openstudio.rb``` (path may be different depending on the environment), and edit it so it _points_ to your new OpenStudio installation:
|
40
|
+
Install OpenStudio [3.10.0](https://github.com/NREL/OpenStudio/releases/tag/v3.10.0), or the OpenStudioApplication [1.10.0](https://github.com/openstudiocoalition/OpenStudioApplication/releases/tag/v1.10.0).
|
45
41
|
|
42
|
+
Create a new file ```C:\Ruby32-x64\lib\ruby\site_ruby\openstudio.rb``` (path may be different depending on the environment), and edit it so it _points_ to your new OpenStudio installation:
|
46
43
|
```
|
47
|
-
require 'C:\openstudio-3.
|
44
|
+
require 'C:\openstudio-3.10.0\Ruby\openstudio.rb'
|
48
45
|
```
|
49
46
|
|
50
47
|
Verify your OpenStudio and Ruby configuration:
|
@@ -54,65 +51,62 @@ ruby -e "require 'openstudio'" -e "puts OpenStudio::Model::Model.new"
|
|
54
51
|
|
55
52
|
### MacOS Installation
|
56
53
|
|
57
|
-
MacOS already comes with Ruby, but likely not the right Ruby version for the desired OpenStudio measure development [environment](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix). Instructions here show how to install Ruby
|
54
|
+
MacOS already comes with Ruby, but likely not the right Ruby version for the desired OpenStudio measure development [environment](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix). Instructions here show how to install Ruby v3.2.2 alongside MacOS's own Ruby version. Although no longer officially supported, instructions for an OpenStudio v2.9.1 setup is described [here](https://github.com/rd2/tbd/blob/master/v291_MacOS.md).
|
58
55
|
|
59
56
|
From a Terminal, install [Homebrew](https://brew.sh/index) - nice for package distribution and management. Using Homebrew, install _rbenv_ (which allows users to manage multiple Ruby versions) and finally Ruby:
|
60
|
-
|
61
57
|
```
|
62
58
|
brew install rbenv
|
63
59
|
rbenv init
|
64
|
-
rbenv install 2.
|
65
|
-
```
|
66
|
-
Install [bundler](https://bundler.io) (if not already installed), great for managing Ruby gems and dependencies:
|
67
|
-
|
68
|
-
```
|
69
|
-
bundler -v
|
70
|
-
gem install bundler -v 2.1
|
60
|
+
rbenv install 3.2.2
|
71
61
|
```
|
72
62
|
|
73
63
|
In the Terminal, check the Ruby version:
|
74
|
-
|
75
64
|
```
|
76
65
|
ruby -v
|
77
66
|
```
|
78
67
|
|
79
|
-
... should still report the current Ruby version used by MacOS. To ensure the right version is used for developing OpenStudio Measures, instruct _rbenv_ to switch Ruby version _locally_ within a user’s chosen directory (e.g. "
|
80
|
-
|
68
|
+
... should still report the current Ruby version used by MacOS. To ensure the right version is used for developing OpenStudio Measures, instruct _rbenv_ to switch Ruby version _locally_ within a user’s chosen directory (e.g. "sandbox380"):
|
81
69
|
```
|
82
|
-
mkdir ~/Documents/
|
83
|
-
cd ~/Documents/
|
84
|
-
rbenv local 2.
|
70
|
+
mkdir ~/Documents/sandbox380
|
71
|
+
cd ~/Documents/sandbox380
|
72
|
+
rbenv local 3.2.2
|
85
73
|
ruby -v
|
86
74
|
```
|
87
|
-
… should report the desired _local_ Ruby version, to be used by default for anything under the "sandbox361" directory tree. To ensure both Ruby versions are operational and safe, run the following checkup twice - once from a user’s home (or ~/), then from within e.g. "sandbox361":
|
88
75
|
|
76
|
+
… should now report the desired _local_ Ruby version, to be used by default for anything under the "sandbox380" directory tree. To ensure both Ruby versions are operational and safe, run the following checkup twice - once from a user’s home (or ~/), then from within e.g. "sandbox380":
|
89
77
|
```
|
90
78
|
cd ~/
|
91
79
|
ruby -ropen-uri -e 'eval URI.open("https://git.io/vQhWq").read'
|
92
|
-
cd ~/Documents/
|
80
|
+
cd ~/Documents/sandbox380
|
93
81
|
ruby -ropen-uri -e 'eval URI.open("https://git.io/vQhWq").read'
|
94
82
|
```
|
95
83
|
|
96
84
|
If successful, one should get a ```Hooray!``` from both Ruby versions confirming valid communication with [Rubygems](https://rubygems.org/).
|
97
85
|
|
98
|
-
|
86
|
+
[Bundler](https://bundler.io) is also required for managing Ruby gems and dependencies. With _rbenv_, the right _Bundler_ version should have been installed. If for whatever reason it wasn't installed:
|
87
|
+
```
|
88
|
+
bundler -v
|
89
|
+
gem install bundler -v 2.4.10
|
90
|
+
```
|
99
91
|
|
100
|
-
|
92
|
+
Install OpenStudio [3.10.0](https://github.com/NREL/OpenStudio/releases/tag/v3.10.0), or the OpenStudio Application [1.10.0](https://github.com/openstudiocoalition/OpenStudioApplication/releases/tag/v1.10.0).
|
101
93
|
|
94
|
+
Create a new file ```~/.rbenv/versions/3.2.2/lib/ruby/site_ruby/openstudio.rb``` (path may be different depending on the environment), and edit it so it _points_ to your new OpenStudio installation:
|
102
95
|
```
|
103
|
-
require '/Applications/OpenStudio-3.
|
96
|
+
require '/Applications/OpenStudio-3.10.0/Ruby/openstudio.rb'
|
104
97
|
```
|
105
98
|
|
106
99
|
Verify your local OpenStudio and Ruby configuration:
|
107
|
-
|
108
100
|
```
|
109
|
-
cd ~/Documents/
|
101
|
+
cd ~/Documents/sandbox310
|
110
102
|
ruby -e "require 'openstudio'" -e "puts OpenStudio::Model::Model.new"
|
111
103
|
```
|
112
104
|
|
105
|
+
Make sure you have latest version of _git_ (e.g. through Homebrew).
|
106
|
+
|
113
107
|
## Clone TBD
|
114
108
|
|
115
|
-
Once done with either the Windows or MacOS setup,
|
109
|
+
Once done with either the Windows or MacOS setup, ```git clone``` the TBD repo, e.g. under "sandbox380". Run the basic tests below to ensure the measure operates as expected.
|
116
110
|
|
117
111
|
## Complete list of test commands
|
118
112
|
|
@@ -127,14 +121,14 @@ bundle exec rake
|
|
127
121
|
|
128
122
|
Install [Docker](https://docs.docker.com/desktop/#download-and-install).
|
129
123
|
|
130
|
-
Pull the OpenStudio v3.
|
124
|
+
Pull the OpenStudio v3.10.0 Docker image:
|
131
125
|
```
|
132
|
-
docker pull nrel/openstudio:3.
|
126
|
+
docker pull nrel/openstudio:3.10.0
|
133
127
|
```
|
134
128
|
|
135
129
|
In the root repository:
|
136
130
|
```
|
137
|
-
docker run --name test --rm -d -t -v ${PWD}:/work -w /work nrel/openstudio:3.
|
131
|
+
docker run --name test --rm -d -t -v ${PWD}:/work -w /work nrel/openstudio:3.10.0
|
138
132
|
docker exec -t test bundle update
|
139
133
|
docker exec -t test bundle exec rake
|
140
134
|
docker kill test
|
data/lib/measures/tbd/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2020-
|
3
|
+
Copyright (c) 2020-2025 Denis Bourgeois & Dan Macumber
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/lib/measures/tbd/measure.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MIT License
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2025 Denis Bourgeois & Dan Macumber
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.1</schema_version>
|
4
4
|
<name>tbd_measure</name>
|
5
5
|
<uid>8890787b-8c25-4dc8-8641-b6be1b6c2357</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>0e1528a0-a176-4d46-82d9-d2da40c0abd7</version_id>
|
7
|
+
<version_modified>2025-09-11T11:27:14Z</version_modified>
|
8
8
|
<xml_checksum>99772807</xml_checksum>
|
9
9
|
<class_name>TBDMeasure</class_name>
|
10
10
|
<display_name>Thermal Bridging and Derating - TBD</display_name>
|
@@ -464,7 +464,7 @@
|
|
464
464
|
<filename>LICENSE.md</filename>
|
465
465
|
<filetype>md</filetype>
|
466
466
|
<usage_type>license</usage_type>
|
467
|
-
<checksum>
|
467
|
+
<checksum>3EBCA5DB</checksum>
|
468
468
|
</file>
|
469
469
|
<file>
|
470
470
|
<filename>README.md</filename>
|
@@ -493,13 +493,13 @@
|
|
493
493
|
<filename>measure.rb</filename>
|
494
494
|
<filetype>rb</filetype>
|
495
495
|
<usage_type>script</usage_type>
|
496
|
-
<checksum>
|
496
|
+
<checksum>3FBDA0C2</checksum>
|
497
497
|
</file>
|
498
498
|
<file>
|
499
499
|
<filename>geo.rb</filename>
|
500
500
|
<filetype>rb</filetype>
|
501
501
|
<usage_type>resource</usage_type>
|
502
|
-
<checksum>
|
502
|
+
<checksum>5AB24CFB</checksum>
|
503
503
|
</file>
|
504
504
|
<file>
|
505
505
|
<filename>geometry.rb</filename>
|
@@ -517,19 +517,19 @@
|
|
517
517
|
<filename>oslog.rb</filename>
|
518
518
|
<filetype>rb</filetype>
|
519
519
|
<usage_type>resource</usage_type>
|
520
|
-
<checksum>
|
520
|
+
<checksum>586805C4</checksum>
|
521
521
|
</file>
|
522
522
|
<file>
|
523
523
|
<filename>psi.rb</filename>
|
524
524
|
<filetype>rb</filetype>
|
525
525
|
<usage_type>resource</usage_type>
|
526
|
-
<checksum>
|
526
|
+
<checksum>29905280</checksum>
|
527
527
|
</file>
|
528
528
|
<file>
|
529
529
|
<filename>tbd.rb</filename>
|
530
530
|
<filetype>rb</filetype>
|
531
531
|
<usage_type>resource</usage_type>
|
532
|
-
<checksum>
|
532
|
+
<checksum>9E26251E</checksum>
|
533
533
|
</file>
|
534
534
|
<file>
|
535
535
|
<filename>transformation.rb</filename>
|
@@ -541,13 +541,13 @@
|
|
541
541
|
<filename>ua.rb</filename>
|
542
542
|
<filetype>rb</filetype>
|
543
543
|
<usage_type>resource</usage_type>
|
544
|
-
<checksum>
|
544
|
+
<checksum>0CC24D82</checksum>
|
545
545
|
</file>
|
546
546
|
<file>
|
547
547
|
<filename>utils.rb</filename>
|
548
548
|
<filetype>rb</filetype>
|
549
549
|
<usage_type>resource</usage_type>
|
550
|
-
<checksum>
|
550
|
+
<checksum>6940D006</checksum>
|
551
551
|
</file>
|
552
552
|
<file>
|
553
553
|
<filename>version.rb</filename>
|
@@ -565,7 +565,7 @@
|
|
565
565
|
<filename>tbd_tests.rb</filename>
|
566
566
|
<filetype>rb</filetype>
|
567
567
|
<usage_type>test</usage_type>
|
568
|
-
<checksum>
|
568
|
+
<checksum>9C76CD98</checksum>
|
569
569
|
</file>
|
570
570
|
</files>
|
571
571
|
</measure>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# MIT License
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2025 Denis Bourgeois & Dan Macumber
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -310,23 +310,24 @@ module TBD
|
|
310
310
|
end
|
311
311
|
|
312
312
|
unless surface.construction.empty?
|
313
|
-
|
313
|
+
lc = surface.construction.get.to_LayeredConstruction
|
314
314
|
|
315
|
-
unless
|
316
|
-
|
317
|
-
lyr
|
318
|
-
lyr[:index] = nil unless lyr[:index].is_a?(Numeric)
|
319
|
-
lyr[:index] = nil unless lyr[:index] >= 0
|
320
|
-
lyr[:index] = nil unless lyr[:index] < construction.layers.size
|
315
|
+
unless lc.empty?
|
316
|
+
lc = lc.get
|
317
|
+
lyr = insulatingLayer(lc)
|
321
318
|
|
322
|
-
if lyr[:index]
|
323
|
-
surf[:construction] =
|
319
|
+
if lyr[:index].is_a?(Integer) && lyr[:index].between?(0, lc.numLayers - 1)
|
320
|
+
surf[:construction] = lc
|
324
321
|
# index: ... of layer/material (to derate) within construction
|
325
322
|
# ltype: either :massless (RSi) or :standard (k + d)
|
326
323
|
# r : initial RSi value of the indexed layer to derate
|
327
324
|
surf[:index] = lyr[:index]
|
328
325
|
surf[:ltype] = lyr[:type ]
|
329
326
|
surf[:r ] = lyr[:r ]
|
327
|
+
else
|
328
|
+
surf[:index] = nil
|
329
|
+
surf[:ltype] = nil
|
330
|
+
surf[:r ] = 0.0
|
330
331
|
end
|
331
332
|
end
|
332
333
|
end
|