Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Zellige-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IdA Public
Zellige-core
Commits
cc528ff4
Commit
cc528ff4
authored
4 years ago
by
Céline TREBEAU
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
23ca0161
No related branches found
No related tags found
1 merge request
!10
Surface reconstruction Refactoring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/construction/SurfacesReconstruction.java
+5
-5
5 additions, 5 deletions
...faceConstruction/construction/SurfacesReconstruction.java
with
5 additions
and
5 deletions
src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/construction/SurfacesReconstruction.java
+
5
−
5
View file @
cc528ff4
...
...
@@ -17,7 +17,7 @@ import java.util.ArrayList;
public
class
SurfacesReconstruction
{
private
static
int
smallSurfaceCount
;
/**
* Returns a list of TempSurface constructed from the specified OSList array.
*
...
...
@@ -29,7 +29,7 @@ public class SurfacesReconstruction
{
// Construction of the list of output TempSurface.
ArrayList
<
Surface
>
surfaces
=
new
ArrayList
<>();
int
smallSurfaceCount
=
0
;
smallSurfaceCount
=
0
;
int
finalIndex
=
findIndexValue
(
osLists
,
0
,
dimension
);
do
{
...
...
@@ -43,7 +43,7 @@ public class SurfacesReconstruction
Surface
surface
=
createSurface
(
firstOS
,
dimension
);
buildSurface
(
osLists
,
surface
,
finalIndex
);
//it is really a reference surface ?
if
(
surface
.
getSize
()
>=
SurfacesExtraction
.
getX
()
*
SurfacesExtraction
.
getY
()
*
0.1
)
if
(
surface
.
getSize
()
>=
SurfacesExtraction
.
getX
()
*
SurfacesExtraction
.
getY
()
*
0.
0
1
)
{
surfaces
.
add
(
surface
);
}
...
...
@@ -59,6 +59,7 @@ public class SurfacesReconstruction
&&
(
osLists
[
finalIndex
]
!=
null
&&
!
osLists
[
finalIndex
].
isEmpty
()
&&
osLists
[
finalIndex
].
containsAStart
()
)
);
System
.
out
.
println
(
"Starting size = "
+
OS
.
getStartingSize
());
System
.
out
.
println
(
"smallSurfaceCount = "
+
smallSurfaceCount
);
return
surfaces
;
}
...
...
@@ -187,7 +188,6 @@ public class SurfacesReconstruction
return
index
;
}
/**
* Returns the first OS with a start status in the OSList array.
*
...
...
@@ -222,7 +222,7 @@ public class SurfacesReconstruction
int
k
;
if
(
currentLine
instanceof
SurfaceLineX
)
{
percent
=
0.
7
;
//TODO user parameter ?
percent
=
0.
6
;
//TODO user parameter ?
k
=
5
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment