Skip to content

Commit

Permalink
CityJSON 2.0, CGAL 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kenohori committed Sep 28, 2023
1 parent 51a2732 commit 82a64c8
Show file tree
Hide file tree
Showing 26 changed files with 59 additions and 46 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ![Icon](https://3d.bk.tudelft.nl/ken/img/azul-small.png) azul

azul is a 3D city model viewer It is intended for viewing 3D city models in CityGML 1.0 and 2.0, CityJSON 1.0 and 1.1, IndoorGML, OBJ, OFF and POLY. It supports loading multiple files, selecting objects by clicking them or selecting them in the sidebar, toggling the visibility of individual items, and browsing their attributes. It is research software, but it is pretty stable and most datasets already work without problems. It is available under the GPLv3 licence.
azul is a 3D city model viewer It is intended for viewing 3D city models in CityGML 1.0 and 2.0, CityJSON 1.0, 1.1 and 2.0, IndoorGML, OBJ, OFF and POLY. It supports loading multiple files, selecting objects by clicking them or selecting them in the sidebar, toggling the visibility of individual items, and browsing their attributes. It is research software, but it is pretty stable and most datasets already work without problems. It is available under the GPLv3 licence.

The current version of azul is for macOS 12 and higher and supports both Apple Silicon and Intel Macs.
The current version of azul is for macOS 13 and higher and supports both Apple Silicon and Intel Macs.

## Controls

Expand Down Expand Up @@ -69,7 +69,7 @@ azul is written in a mix of C++17, Swift 5, Objective-C 2 and Objective-C++. The

## Compilation

We have included an Xcode 13 project to easily compile azul. It should be possible to compile azul on older macOS versions (from 10.14 onwards), but old versions of Xcode (older than 10) cannot compile Swift 5.
We have included an Xcode 15 project to easily compile azul. It should be possible to compile azul on older macOS versions (from 10.14 onwards), but old versions of Xcode (older than 10) cannot compile Swift 5.

azul depends on the following libraries: [Boost](http://www.boost.org), [CGAL](http://www.cgal.org), [GMP](https://gmplib.org), [MPFR](http://www.mpfr.org), [pugixml](http://pugixml.org) and [simdjson](https://github.com/simdjson/simdjson). Most of these can be easily obtained using [Homebrew](http://brew.sh), but we provide fat libraries (arm64 + x86_64) of them all for convenience.

Expand Down
42 changes: 27 additions & 15 deletions azul.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -224,8 +224,9 @@
BEF69F351F6AA0520079531B /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 0900;
LastUpgradeCheck = 1410;
LastUpgradeCheck = 1500;
ORGANIZATIONNAME = "Ken Arroyo Ohori";
TargetAttributes = {
BEF69F3C1F6AA0520079531B = {
Expand Down Expand Up @@ -310,6 +311,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
Expand Down Expand Up @@ -344,6 +346,7 @@
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = c11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -373,6 +376,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
Expand Down Expand Up @@ -407,6 +411,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = c11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -418,8 +423,9 @@
MACOSX_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OBJC_BRIDGING_HEADER = "/Users/ken/Versioned/azul/src/Azul-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 5.0;
};
name = Release;
Expand All @@ -433,9 +439,10 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
CODE_SIGN_ENTITLEMENTS = azul.entitlements;
CODE_SIGN_IDENTITY = "-";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1100;
CURRENT_PROJECT_VERSION = 1110;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = NO;
DEVELOPMENT_TEAM = UD3V83TPY7;
Expand All @@ -444,19 +451,21 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/libs\\ src/boost_1_77_0",
"$(SRCROOT)/include",
"$(SRCROOT)/src/DataManager",
/usr/local/Cellar/cgal/5.5/include,
"$(SRCROOT)/libs\\ src/pugixml-1.11/src",
);
INFOPLIST_FILE = src/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(PROJECT_DIR)",
"$(PROJECT_DIR)/libs",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.1.1;
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = tudelft3d.azul;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -475,29 +484,32 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
CODE_SIGN_ENTITLEMENTS = azul.entitlements;
CODE_SIGN_IDENTITY = "-";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1100;
CURRENT_PROJECT_VERSION = 1110;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = NO;
DEVELOPMENT_TEAM = UD3V83TPY7;
ENABLE_HARDENED_RUNTIME = YES;
GCC_C_LANGUAGE_STANDARD = c11;
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/libs\\ src/boost_1_77_0",
"$(SRCROOT)/include",
"$(SRCROOT)/src/DataManager",
/usr/local/Cellar/cgal/5.5/include,
"$(SRCROOT)/libs\\ src/pugixml-1.11/src",
);
INFOPLIST_FILE = src/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(PROJECT_DIR)",
"$(PROJECT_DIR)/libs",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.1.1;
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = tudelft3d.azul;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
LastUpgradeVersion = "1500"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
6 changes: 3 additions & 3 deletions src/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
2 changes: 1 addition & 1 deletion src/Azul-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Controller.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/DataManager.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/DataManager.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/DataManagerWrapperWrapper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/DataManagerWrapperWrapper.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/DataModel.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions src/DataManager/Enhanced_constrained_triangulation_2.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -86,7 +86,7 @@ class Enhanced_constrained_triangulation_2 : public T {
}

void odd_even_insert_constraint(Vertex_handle va, Vertex_handle vb) {
CGAL_triangulation_precondition(va != vb);
CGAL_precondition(va != vb);

// std::cout << "Triangulation:" << std::endl;
// for (typename T::All_faces_iterator current_face = T::all_faces_begin(); current_face != T::all_faces_end(); ++current_face) {
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/GMLParsingHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
5 changes: 3 additions & 2 deletions src/DataManager/JSONParsingHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -413,7 +413,8 @@ class JSONParsingHelper {
if (docType == "CityJSON") {
std::cout << docType << " " << docVersion << " detected" << std::endl;
if (docVersion == "1.0" ||
docVersion == "1.1") {
docVersion == "1.1" ||
docVersion == "2.0") {

simdjson::ondemand::object object;

Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/OBJParsingHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/OFFParsingHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/POLYParsingHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/PerformanceHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/PerformanceHelperWrapperWrapper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/PerformanceHelperWrapperWrapper.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/TableCellView.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/DataManager/TableCellView.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016-2019 Ken Arroyo Ohori. All rights reserved.</string>
<string>Copyright © 2016-2023 Ken Arroyo Ohori. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Math.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/MetalView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Shaders.metal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// azul
// Copyright © 2016-2022 Ken Arroyo Ohori
// Copyright © 2016-2023 Ken Arroyo Ohori
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 82a64c8

Please sign in to comment.