mirror of https://github.com/CGAL/cgal
Revert "plugins should not depend on `Polyhedron_3`"
This reverts commit 1f26c03e3b.
This commit is contained in:
parent
1f26c03e3b
commit
2ccb65f6ea
|
|
@ -138,7 +138,7 @@ Polyhedron_demo_c3t3_binary_io_plugin::load(
|
|||
item->set_valid(false);
|
||||
|
||||
if(CGAL::SMDS_3::build_triangulation_from_file(in, item->c3t3().triangulation(),
|
||||
/*verbose = */true, /*replace_subdomain_0 = */false, /*allow_non_manifold = */true))
|
||||
/*verbose = */false, /*replace_subdomain_0 = */false, /*allow_non_manifold = */true))
|
||||
{
|
||||
update_c3t3(item->c3t3());
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
|||
endif()
|
||||
# Link with CGAL
|
||||
target_link_libraries( ${plugin_name} PUBLIC CGAL::CGAL )
|
||||
if(TARGET Polyhedron_3)
|
||||
add_dependencies( ${plugin_name} Polyhedron_3 )
|
||||
endif()
|
||||
if(NOT TARGET CGALlab_all_plugins)
|
||||
add_custom_target(CGALlab_all_plugins)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ int main(int argc, char* argv[])
|
|||
Triangulation tr;
|
||||
|
||||
std::ifstream is(filename, std::ios_base::in);
|
||||
if(!CGAL::IO::read_MEDIT(is, tr, CGAL::parameters::verbose(true)))
|
||||
if(!CGAL::IO::read_MEDIT(is, tr))
|
||||
{
|
||||
std::cerr << "Failed to read" << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue