mirror of https://github.com/CGAL/cgal
testsuite
This commit is contained in:
parent
461697ecdc
commit
9b3148b2b3
|
|
@ -2133,10 +2133,10 @@ Surface_mesh_simplification/test/Surface_mesh_simplification/create_audit_edge_c
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/create_audit_edge_collapse_visitor.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/create_audit_edge_collapse_visitor.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/edge_collapse_test.kdevelop -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/edge_collapse_test.kdevelop -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_cost_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_cost_cache.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_cost_placemet_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_cost_placement_cache.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_no_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_LT_no_cache.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_cost_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_cost_cache.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_cost_placemet_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_cost_placement_cache.cpp -text
|
||||||
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_no_cache.cpp -text
|
Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Polyhedron_3_MP_no_cache.cpp -text
|
||||||
Surface_mesher/demo/Surface_mesher/windows/Mesh.suo -text
|
Surface_mesher/demo/Surface_mesher/windows/Mesh.suo -text
|
||||||
Surface_mesher/demo/Surface_mesher/windows/res/Mesh.ico -text svneol=unset#image/x-icon
|
Surface_mesher/demo/Surface_mesher/windows/res/Mesh.ico -text svneol=unset#image/x-icon
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ int edge_collapse ( ECM& aSurface
|
||||||
|
|
||||||
LindstromTurk_params lPolicyParams ;
|
LindstromTurk_params lPolicyParams ;
|
||||||
|
|
||||||
boost::graph_visitor_t vis ;
|
boost::graph_visitor_t vis = boost::graph_visitor_t() ;
|
||||||
|
|
||||||
return edge_collapse(aSurface
|
return edge_collapse(aSurface
|
||||||
,aShould_stop
|
,aShould_stop
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
typedef SMS::Edge_lenght_cost<Surface> ActualCost ;
|
typedef SMS::Edge_length_cost<Surface> ActualCost ;
|
||||||
|
|
||||||
ActualCost actual_cost ;
|
ActualCost actual_cost ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
typedef SMS::Edge_lenght_cost <Surface> ActualCost ;
|
typedef SMS::Edge_length_cost <Surface> ActualCost ;
|
||||||
typedef SMS::Midpoint_placemet<Surface> ActualPlacement ;
|
typedef SMS::Midpoint_placement<Surface> ActualPlacement ;
|
||||||
|
|
||||||
ActualCost actual_cost ;
|
ActualCost actual_cost ;
|
||||||
ActualPlacement actual_placement ;
|
ActualPlacement actual_placement ;
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,8 @@ bool Test ( string aName )
|
||||||
{
|
{
|
||||||
if ( lSurface.is_pure_triangle() )
|
if ( lSurface.is_pure_triangle() )
|
||||||
{
|
{
|
||||||
|
cerr << "Processing " << aName << " (" << ( lSurface.size_of_halfedges() / 2 ) << " edges)" << endl ;
|
||||||
|
|
||||||
Visitor lVisitor(audit_name) ;
|
Visitor lVisitor(audit_name) ;
|
||||||
|
|
||||||
set_halfedgeds_items_id(lSurface);
|
set_halfedgeds_items_id(lSurface);
|
||||||
|
|
@ -138,8 +140,10 @@ bool Test ( string aName )
|
||||||
.visitor(&lVisitor)
|
.visitor(&lVisitor)
|
||||||
);
|
);
|
||||||
t.stop();
|
t.stop();
|
||||||
|
|
||||||
|
rSucceeded = lSurface.is_valid() && lSurface.is_pure_triangle() ;
|
||||||
|
|
||||||
rSucceeded = true ;
|
cerr << "\r" << aName << ( rSucceeded ? " succeeded" : "FAILED" ) << ". Elapsed time=" << t.time() << " seconds." << endl ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -175,7 +179,8 @@ int main( int argc, char** argv )
|
||||||
for ( int i = 1 ; i < argc ; ++i )
|
for ( int i = 1 ; i < argc ; ++i )
|
||||||
{
|
{
|
||||||
string c(argv[i]);
|
string c(argv[i]);
|
||||||
if ( c.find(".off") != string::npos )
|
string ext = c.substr(c.find_last_of("."));
|
||||||
|
if ( ext == ".off" )
|
||||||
lCases.push_back(c);
|
lCases.push_back(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
||||||
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
||||||
#define STRATEGY_ACRN "LT"
|
#define STRATEGY_ACRN "LT"
|
||||||
#define STRATEGY_POLICIES "LT_no_cache_strategy.cpp"
|
#define STRATEGY_POLICIES "LT_cost_placement_cache_strategy.cpp"
|
||||||
|
|
||||||
#include "aux_edge_collapse_test_Polyhedron_3.cpp"
|
#include "aux_edge_collapse_test_Polyhedron_3.cpp"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
||||||
#define STRATEGY_ACRN "MP"
|
#define STRATEGY_ACRN "MP"
|
||||||
#define STRATEGY_POLICIES "MP_no_cache_strategy.cpp"
|
#define STRATEGY_POLICIES "MP_cost_placement_cache_strategy.cpp"
|
||||||
|
|
||||||
#include "aux_edge_collapse_test_Polyhedron_3.cpp"
|
#include "aux_edge_collapse_test_Polyhedron_3.cpp"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ struct Visitor
|
||||||
:
|
:
|
||||||
mOut( new ofstream(audit_name.c_str(), ios::trunc ) )
|
mOut( new ofstream(audit_name.c_str(), ios::trunc ) )
|
||||||
{
|
{
|
||||||
CHECK_MSG(!out(), "Unable to open audit file: " << audit_name);
|
CHECK_MSG(out(), "Unable to open audit file: " << audit_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnStarted( Surface& ) {}
|
void OnStarted( Surface& ) {}
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@
|
||||||
<ignoreparts/>
|
<ignoreparts/>
|
||||||
<projectdirectory>.</projectdirectory>
|
<projectdirectory>.</projectdirectory>
|
||||||
<absoluteprojectpath>false</absoluteprojectpath>
|
<absoluteprojectpath>false</absoluteprojectpath>
|
||||||
<description/>
|
<description></description>
|
||||||
</general>
|
</general>
|
||||||
<kdevcustomproject>
|
<kdevcustomproject>
|
||||||
<run>
|
<run>
|
||||||
<mainprogram>create_audit_edge_collapse_Polyhedron_3_LT</mainprogram>
|
<mainprogram>create_audit_edge_collapse_Polyhedron_3_LT</mainprogram>
|
||||||
<directoryradio>build</directoryradio>
|
<directoryradio>build</directoryradio>
|
||||||
<customdirectory>/</customdirectory>
|
<customdirectory>/</customdirectory>
|
||||||
<programargs/>
|
<programargs></programargs>
|
||||||
<terminal>false</terminal>
|
<terminal>false</terminal>
|
||||||
<autocompile>true</autocompile>
|
<autocompile>true</autocompile>
|
||||||
<envvars/>
|
<envvars/>
|
||||||
|
|
@ -26,29 +26,29 @@
|
||||||
<numberofjobs>1</numberofjobs>
|
<numberofjobs>1</numberofjobs>
|
||||||
<prio>0</prio>
|
<prio>0</prio>
|
||||||
<dontact>false</dontact>
|
<dontact>false</dontact>
|
||||||
<makebin/>
|
<makebin></makebin>
|
||||||
<defaulttarget/>
|
<defaulttarget></defaulttarget>
|
||||||
<makeoptions>CGAL_MAKEFILE=/home/fcacciola/Programming/CGAL/make/makefile_i686_Linux-2.6_g++-4.0.2</makeoptions>
|
<makeoptions>CGAL_MAKEFILE=/home/fcacciola/Programming/CGAL/make/makefile_i686_Linux-2.6_g++-4.0.2</makeoptions>
|
||||||
<selectedenvironment>default</selectedenvironment>
|
<selectedenvironment>default</selectedenvironment>
|
||||||
<environments>
|
<environments>
|
||||||
<default>
|
<default>
|
||||||
<envvar value="-g" name="EXTRA_FLAGS" />
|
<envvar value="-O2" name="EXTRA_FLAGS" />
|
||||||
</default>
|
</default>
|
||||||
</environments>
|
</environments>
|
||||||
</make>
|
</make>
|
||||||
<build>
|
<build>
|
||||||
<buildtool>make</buildtool>
|
<buildtool>make</buildtool>
|
||||||
<builddir/>
|
<builddir></builddir>
|
||||||
</build>
|
</build>
|
||||||
</kdevcustomproject>
|
</kdevcustomproject>
|
||||||
<kdevdebugger>
|
<kdevdebugger>
|
||||||
<general>
|
<general>
|
||||||
<dbgshell/>
|
<dbgshell></dbgshell>
|
||||||
<programargs>data/tetra.off</programargs>
|
<programargs>data/tetra.off</programargs>
|
||||||
<gdbpath/>
|
<gdbpath></gdbpath>
|
||||||
<configGdbScript/>
|
<configGdbScript></configGdbScript>
|
||||||
<runShellScript/>
|
<runShellScript></runShellScript>
|
||||||
<runGdbScript/>
|
<runGdbScript></runGdbScript>
|
||||||
<breakonloadinglibs>true</breakonloadinglibs>
|
<breakonloadinglibs>true</breakonloadinglibs>
|
||||||
<separatetty>false</separatetty>
|
<separatetty>false</separatetty>
|
||||||
<floatingtoolbar>false</floatingtoolbar>
|
<floatingtoolbar>false</floatingtoolbar>
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
<headerCompletionDelay>250</headerCompletionDelay>
|
<headerCompletionDelay>250</headerCompletionDelay>
|
||||||
</codecompletion>
|
</codecompletion>
|
||||||
<creategettersetter>
|
<creategettersetter>
|
||||||
<prefixGet/>
|
<prefixGet></prefixGet>
|
||||||
<prefixSet>set</prefixSet>
|
<prefixSet>set</prefixSet>
|
||||||
<prefixVariable>m_,_</prefixVariable>
|
<prefixVariable>m_,_</prefixVariable>
|
||||||
<parameterName>theValue</parameterName>
|
<parameterName>theValue</parameterName>
|
||||||
|
|
@ -154,8 +154,8 @@
|
||||||
</cppsupportpart>
|
</cppsupportpart>
|
||||||
<kdevvisualadvance>
|
<kdevvisualadvance>
|
||||||
<emulator>VisualBoyAdvance</emulator>
|
<emulator>VisualBoyAdvance</emulator>
|
||||||
<binary/>
|
<binary></binary>
|
||||||
<addOptions/>
|
<addOptions></addOptions>
|
||||||
<terminal>false</terminal>
|
<terminal>false</terminal>
|
||||||
<fullscreen>false</fullscreen>
|
<fullscreen>false</fullscreen>
|
||||||
<graphicFilter>-f0</graphicFilter>
|
<graphicFilter>-f0</graphicFilter>
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ test_edge_collapse_Polyhedron_3_LT_no_cache$(EXE_EXT): test_edge_collapse_Polyhe
|
||||||
test_edge_collapse_Polyhedron_3_LT_cost_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_LT_cost_cache$(OBJ_EXT)
|
test_edge_collapse_Polyhedron_3_LT_cost_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_LT_cost_cache$(OBJ_EXT)
|
||||||
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_LT_cost_cache test_edge_collapse_Polyhedron_3_LT_cost_cache$(OBJ_EXT) $(LDFLAGS)
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_LT_cost_cache test_edge_collapse_Polyhedron_3_LT_cost_cache$(OBJ_EXT) $(LDFLAGS)
|
||||||
|
|
||||||
test_edge_collapse_Polyhedron_3_LT_cost_placement_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_LT_placement_cache$(OBJ_EXT)
|
test_edge_collapse_Polyhedron_3_LT_cost_placement_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_LT_cost_placement_cache$(OBJ_EXT)
|
||||||
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_LT_cost_placement_cache \
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_LT_cost_placement_cache \
|
||||||
test_edge_collapse_Polyhedron_3_LT_cost_placement_cache$(OBJ_EXT) $(LDFLAGS)
|
test_edge_collapse_Polyhedron_3_LT_cost_placement_cache$(OBJ_EXT) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
@ -66,7 +66,7 @@ test_edge_collapse_Polyhedron_3_MP_no_cache$(EXE_EXT): test_edge_collapse_Polyhe
|
||||||
test_edge_collapse_Polyhedron_3_MP_cost_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_MP_cost_cache$(OBJ_EXT)
|
test_edge_collapse_Polyhedron_3_MP_cost_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_MP_cost_cache$(OBJ_EXT)
|
||||||
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_MP_cost_cache test_edge_collapse_Polyhedron_3_MP_cost_cache$(OBJ_EXT) $(LDFLAGS)
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_MP_cost_cache test_edge_collapse_Polyhedron_3_MP_cost_cache$(OBJ_EXT) $(LDFLAGS)
|
||||||
|
|
||||||
test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_MP_placement_cache$(OBJ_EXT)
|
test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(EXE_EXT): test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(OBJ_EXT)
|
||||||
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_MP_cost_placement_cache \
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_edge_collapse_Polyhedron_3_MP_cost_placement_cache \
|
||||||
test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(OBJ_EXT) $(LDFLAGS)
|
test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(OBJ_EXT) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue