Skip to content
Snippets Groups Projects
Commit cc528ff4 authored by Céline  TREBEAU's avatar Céline TREBEAU
Browse files

minor changes

parent 23ca0161
No related branches found
No related tags found
1 merge request!10Surface reconstruction Refactoring
......@@ -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.01 )
{
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment