Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ cmake-build-release/
cmake-build-relwithdebinfo/
cmake-build-minsizerel/
html/
latex/
latex/
wasm_build/
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ endif()

### DEPENDENCIES ###
if(EMSCRIPTEN)
# If you modify anything in this Emscripten build setup, do not forget to also adjust cmake/CartoCrowConfig.cmake appropriately.
add_compile_definitions(
USE_BOOST_HEADERS=1
CGAL_ALWAYS_ROUND_TO_NEAREST
Expand All @@ -48,7 +49,7 @@ if(EMSCRIPTEN)
add_compile_options(-fwasm-exceptions)
add_link_options(-g -fwasm-exceptions -lembind --preload-file ${CMAKE_CURRENT_SOURCE_DIR}/data@/data)
if (NOT DEFINED EMSCRIPTEN_INCLUDE_DIR)
message(FATAL_ERROR "Please set EMSCRIPTEN_INCLUDE_DIR to the folder with all header files needed for emscripten compilation")
message(FATAL_ERROR "Please set EMSCRIPTEN_INCLUDE_DIR to the folder with all header files needed for Emscripten compilation")
endif()
include_directories(${EMSCRIPTEN_INCLUDE_DIR})
else()
Expand Down Expand Up @@ -79,9 +80,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

add_subdirectory(cartocrow)
if (EMSCRIPTEN)
add_subdirectory(wasm_frontend)
else()
if (NOT EMSCRIPTEN)
add_subdirectory(demos)
add_subdirectory(frontend)
add_subdirectory(test)
Expand Down
3 changes: 0 additions & 3 deletions cartocrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ endmacro(cartocrow_install_module)
add_subdirectory(core)
add_subdirectory(circle_segment_helpers)
add_subdirectory(renderer)
add_subdirectory(simplesets)
add_subdirectory(necklace_map)
add_subdirectory(flow_map)
if (NOT EMSCRIPTEN)
Expand All @@ -33,7 +32,6 @@ target_link_libraries(
necklace_map
flow_map
isoline_simplification
simplesets
chorematic_map
)
else()
Expand All @@ -44,7 +42,6 @@ target_link_libraries(
renderer
necklace_map
flow_map
simplesets
)
endif()

Expand Down
4 changes: 1 addition & 3 deletions cartocrow/core/cropped_voronoi.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#ifndef CARTOCROW_CROPPED_VORONOI_H
#define CARTOCROW_CROPPED_VORONOI_H

#include "cartocrow/core/core.h"
#include "cartocrow/simplesets/types.h"
#include "core.h"
#include <list>

using namespace cartocrow;
using namespace cartocrow::simplesets;

std::optional<Segment<Exact>> intersectionConvex(const Polygon<Exact>& polygon, const Ray<Exact>& ray) {
auto sourceInside = polygon.has_on_bounded_side(ray.source());
Expand Down
43 changes: 0 additions & 43 deletions cartocrow/simplesets/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions cartocrow/simplesets/cat_point.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions cartocrow/simplesets/cat_point.h

This file was deleted.

73 changes: 0 additions & 73 deletions cartocrow/simplesets/dilated/dilated_poly.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions cartocrow/simplesets/dilated/dilated_poly.h

This file was deleted.

Loading