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/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_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_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_mesher/demo/Surface_mesher/windows/Mesh.suo -text
|
||||
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 ;
|
||||
|
||||
boost::graph_visitor_t vis ;
|
||||
boost::graph_visitor_t vis = boost::graph_visitor_t() ;
|
||||
|
||||
return edge_collapse(aSurface
|
||||
,aShould_stop
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
typedef SMS::Edge_lenght_cost<Surface> ActualCost ;
|
||||
typedef SMS::Edge_length_cost<Surface> ActualCost ;
|
||||
|
||||
ActualCost actual_cost ;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
typedef SMS::Edge_lenght_cost <Surface> ActualCost ;
|
||||
typedef SMS::Midpoint_placemet<Surface> ActualPlacement ;
|
||||
typedef SMS::Edge_length_cost <Surface> ActualCost ;
|
||||
typedef SMS::Midpoint_placement<Surface> ActualPlacement ;
|
||||
|
||||
ActualCost actual_cost ;
|
||||
ActualPlacement actual_placement ;
|
||||
|
|
|
|||
|
|
@ -121,6 +121,8 @@ bool Test ( string aName )
|
|||
{
|
||||
if ( lSurface.is_pure_triangle() )
|
||||
{
|
||||
cerr << "Processing " << aName << " (" << ( lSurface.size_of_halfedges() / 2 ) << " edges)" << endl ;
|
||||
|
||||
Visitor lVisitor(audit_name) ;
|
||||
|
||||
set_halfedgeds_items_id(lSurface);
|
||||
|
|
@ -139,7 +141,9 @@ bool Test ( string aName )
|
|||
);
|
||||
t.stop();
|
||||
|
||||
rSucceeded = true ;
|
||||
rSucceeded = lSurface.is_valid() && lSurface.is_pure_triangle() ;
|
||||
|
||||
cerr << "\r" << aName << ( rSucceeded ? " succeeded" : "FAILED" ) << ". Elapsed time=" << t.time() << " seconds." << endl ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -175,7 +179,8 @@ int main( int argc, char** argv )
|
|||
for ( int i = 1 ; i < argc ; ++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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
|||
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
||||
#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"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define VISITOR "create_audit_edge_collapse_visitor.cpp"
|
||||
#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"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ struct Visitor
|
|||
:
|
||||
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& ) {}
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@
|
|||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<description></description>
|
||||
</general>
|
||||
<kdevcustomproject>
|
||||
<run>
|
||||
<mainprogram>create_audit_edge_collapse_Polyhedron_3_LT</mainprogram>
|
||||
<directoryradio>build</directoryradio>
|
||||
<customdirectory>/</customdirectory>
|
||||
<programargs/>
|
||||
<programargs></programargs>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>true</autocompile>
|
||||
<envvars/>
|
||||
|
|
@ -26,29 +26,29 @@
|
|||
<numberofjobs>1</numberofjobs>
|
||||
<prio>0</prio>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<defaulttarget/>
|
||||
<makebin></makebin>
|
||||
<defaulttarget></defaulttarget>
|
||||
<makeoptions>CGAL_MAKEFILE=/home/fcacciola/Programming/CGAL/make/makefile_i686_Linux-2.6_g++-4.0.2</makeoptions>
|
||||
<selectedenvironment>default</selectedenvironment>
|
||||
<environments>
|
||||
<default>
|
||||
<envvar value="-g" name="EXTRA_FLAGS" />
|
||||
<envvar value="-O2" name="EXTRA_FLAGS" />
|
||||
</default>
|
||||
</environments>
|
||||
</make>
|
||||
<build>
|
||||
<buildtool>make</buildtool>
|
||||
<builddir/>
|
||||
<builddir></builddir>
|
||||
</build>
|
||||
</kdevcustomproject>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<dbgshell></dbgshell>
|
||||
<programargs>data/tetra.off</programargs>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<gdbpath></gdbpath>
|
||||
<configGdbScript></configGdbScript>
|
||||
<runShellScript></runShellScript>
|
||||
<runGdbScript></runGdbScript>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixGet></prefixGet>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
|
|
@ -154,8 +154,8 @@
|
|||
</cppsupportpart>
|
||||
<kdevvisualadvance>
|
||||
<emulator>VisualBoyAdvance</emulator>
|
||||
<binary/>
|
||||
<addOptions/>
|
||||
<binary></binary>
|
||||
<addOptions></addOptions>
|
||||
<terminal>false</terminal>
|
||||
<fullscreen>false</fullscreen>
|
||||
<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)
|
||||
$(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 \
|
||||
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)
|
||||
$(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 \
|
||||
test_edge_collapse_Polyhedron_3_MP_cost_placement_cache$(OBJ_EXT) $(LDFLAGS)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue