Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Lundin
iso_spline_2
Commits
cf5e3e0b
Commit
cf5e3e0b
authored
Oct 15, 2017
by
a001188
Browse files
A small adjustment of boarder value
parent
367855a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
isospline/IsoSplineFactory.java
View file @
cf5e3e0b
...
...
@@ -30,13 +30,14 @@ public class IsoSplineFactory {
public
Polygons
createIsoPolygons
(
IsoApi
matrix
,
String
polygonsName
,
IsoLevel
isoLevel
,
boolean
closeAroundTheBorder
){
if
(
closeAroundTheBorder
){
double
borderValue
=
max
;
for
(
int
r
=
0
;
r
<
matrix
.
getRows
();
r
++){
matrix
.
setValue
(
r
,
0
,
min
);
matrix
.
setValue
(
r
,
matrix
.
getCols
()-
1
,
min
);
matrix
.
setValue
(
r
,
0
,
borderValue
);
matrix
.
setValue
(
r
,
matrix
.
getCols
()-
1
,
borderValue
);
}
for
(
int
c
=
0
;
c
<
matrix
.
getCols
();
c
++){
matrix
.
setValue
(
0
,
c
,
min
);
matrix
.
setValue
(
matrix
.
getRows
()-
1
,
c
,
min
);
matrix
.
setValue
(
0
,
c
,
borderValue
);
matrix
.
setValue
(
matrix
.
getRows
()-
1
,
c
,
borderValue
);
}
}
System
.
out
.
println
(
matrix
.
toString
());
...
...
isospline/Main.java
View file @
cf5e3e0b
...
...
@@ -18,9 +18,9 @@ import org.json.JSONException;
*/
public
class
Main
{
public
static
final
boolean
CLOSE_AROUND_THE_BORDER
=
true
;
public
static
final
int
ISO_LEVELS
=
1
;
public
static
final
int
ISO_LEVELS
=
3
;
public
static
final
boolean
TEST
=
false
;
public
static
final
int
MIN_POLYGON_SIZE
=
10
00
;
public
static
final
int
MIN_POLYGON_SIZE
=
5
00
;
public
static
final
boolean
FILTERED_VALUES
=
false
;
public
static
final
boolean
ORIGINAL_VALUES
=
true
;
public
static
final
int
FILTER_WIDTH
=
2
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment