Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 695 - Milestone 5: Autocalibration #699

Merged
merged 37 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2ec278f
Issue #695 Added writing of calibration entries as part of the dwg an…
FJThiel Aug 30, 2024
0f0682a
Issue #695 scaled values of the 2D points in the drawing with the pix…
FJThiel Sep 2, 2024
32f0189
Issue #695 added conversion of the 3d vectors from the z-up CS to Uni…
FJThiel Sep 2, 2024
f06e908
Issue #695 Experimental code for printing out extent and block inform…
FJThiel Sep 6, 2024
bf5b5af
ISSUE #695 tweaks to horizontal calibration, verified against revit 3…
sebjf Sep 11, 2024
308bade
ISSUE #695 added auto vertical calibration to dwgs
sebjf Sep 12, 2024
0d3c400
ISSUE #695 Add HLR flag
sebjf Sep 12, 2024
e6bde97
ISSUE #695 fixed client state machine
sebjf Sep 12, 2024
0857ee6
ISSUE #695 removed vertical calibration
sebjf Sep 17, 2024
6808b38
ISSUE #695 removed remnants of vertical calibration
sebjf Sep 17, 2024
d790a90
ISSUE #695 cleaned up whitespace
sebjf Sep 17, 2024
1ac50f9
ISSUE #695 comments cleanup
sebjf Sep 17, 2024
d551429
ISSUE #695 tweaks to factory method to use existing functions to buil…
sebjf Sep 17, 2024
7cbe9e9
ISSUE #695 fixed validation
sebjf Sep 17, 2024
6f80297
Merge branch 'staging' of github.com:3drepo/3drepobouncer into ISSUE_695
sebjf Sep 17, 2024
b43e675
Merge branch 'staging' of github.com:3drepo/3drepobouncer into ISSUE_695
sebjf Sep 19, 2024
58deef2
ISSUE #695 changed exception class and removed unused defines
sebjf Sep 19, 2024
5cca415
ISSUE #695 updated svg exporter submodule
sebjf Sep 23, 2024
6d34e17
ISSUE #695 updated bouncer to use the submodule svg exporter version
sebjf Sep 23, 2024
8fa161b
ISSUE #695 removed linker entry for svg export because its unnecessary
sebjf Sep 23, 2024
7deaa1b
ISSUE #695 updated svg exporter submodule
sebjf Sep 23, 2024
a4243b4
Merge branch 'staging' of github.com:3drepo/3drepobouncer into ISSUE_695
sebjf Sep 23, 2024
37e4f97
ISSUE #695 updated dwg file processor to use our own colour policy, a…
sebjf Sep 23, 2024
8353f93
ISSUE #695 updated file processors to rely on updated svg exporter to…
sebjf Sep 24, 2024
08685b2
ISSUE #695 added temporary dumps to debug travis
sebjf Sep 24, 2024
734b820
ISSUE #695 made travis print submodule status
sebjf Sep 25, 2024
fcfda92
ISSUE #695 updated submodules
sebjf Sep 25, 2024
d7787f7
ISSUE #695 updated svg exporter name to see if it will pick up the ri…
sebjf Sep 25, 2024
f4d1b86
ISSUE #695 put the tests back to normal and updated the dgn importer …
sebjf Sep 25, 2024
a5d7639
ISSUE #695 updated submodules
sebjf Sep 25, 2024
991db93
ISSUE #695 check that the calibration is valid before writing it to d…
sebjf Sep 25, 2024
f850b30
Merge branch 'staging' of github.com:3drepo/3drepobouncer into ISSUE_695
sebjf Sep 25, 2024
0309d9a
ISSUE #695 updated svg exporter submodule
sebjf Sep 27, 2024
9df3565
ISSUE #695 changed collection for calibrations import
sebjf Sep 27, 2024
0a8f55f
Merge branch 'staging' of github.com:3drepo/3drepobouncer into ISSUE_695
sebjf Sep 27, 2024
06ea740
ISSUE #695 updated unit tests for new colour policy
sebjf Oct 2, 2024
ea617db
ISSUE #695 more adjustments to make calibration record align with man…
carmenfan Oct 9, 2024
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: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "submodules/asset_generator"]
path = submodules/asset_generator
url = https://github.com/3drepo/AssetGenerator.git
[submodule "submodules/svgexport"]
path = submodules/svgexport
url = https://github.com/3drepo/SVGExporter
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ matrix:
before_install:
- echo -e "machine github.com\n login $TESTUSER\n password $TESTPW" >~/.netrc
- git submodule update --init --recursive
- git submodule status
- sudo apt-get install gnupg curl
- sudo apt remove mongodb && sudo apt purge mongodb && sudo apt autoremove && sudo rm -rf /var/lib/mongodb
- curl -fsSL https://www.mongodb.org/static/pgp/server-5.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-5.0.gpg --dearmor
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ option (REPO_BUILD_TOOLS "If the Command Line Tool is built in addition to the l
option (REPO_BUILD_TESTS "If the test suite for the core bouncer logic is built in addition to the library" OFF)
option (REPO_NO_GZIP "If zlib is not compiled into boost" OFF)
option (REPO_ASSET_GENERATOR_SUPPORT "If the AssetGenerator is present and compiled into the library" ON)
option (REPO_SVG_EXPORT_SUPPORT "If the customised Svg Exporter is present and compiled into the library" ON)


#Build IFCUtils
Expand All @@ -165,6 +166,11 @@ if (REPO_ASSET_GENERATOR_SUPPORT)
add_subdirectory(submodules/asset_generator)
endif()

if (ODA_SUPPORT AND REPO_SVG_EXPORT_SUPPORT) # (The Svg exporter is an ODA extension so ODA is required)
add_definitions(-DREPO_SVG_EXPORT_SUPPORT)
add_subdirectory(submodules/svgexport)
endif()

#bouncer library
add_subdirectory(bouncer)

Expand Down
32 changes: 29 additions & 3 deletions bouncer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,41 @@ add_subdirectory(src)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 11_4)

include_directories(${Boost_INCLUDE_DIRS} ${MONGO_INCLUDE_DIR} ${ASSIMP_INCLUDE_DIR} ${OCCT_INCLUDE_DIR} ${IFCOPENSHELL_INCLUDE_DIR} ${ODA_INCLUDE_DIR} ${SYNCHRO_READER_INCLUDE_DIR} ${AWSSDK_INCLUDE_DIR} ${CRYPTOLENS_INCLUDE_DIR} src ../)
include_directories(
${Boost_INCLUDE_DIRS}
${MONGO_INCLUDE_DIR}
${ASSIMP_INCLUDE_DIR}
${OCCT_INCLUDE_DIR}
${IFCOPENSHELL_INCLUDE_DIR}
${ODA_INCLUDE_DIR}
${SYNCHRO_READER_INCLUDE_DIR}
${AWSSDK_INCLUDE_DIR}
${CRYPTOLENS_INCLUDE_DIR}
src ../
)
add_definitions(-DREPO_API_LIBRARY)

add_library(3drepobouncer SHARED ${SOURCES})
set_target_properties(3drepobouncer PROPERTIES RELEASE_POSTFIX "_${VERSION_MAJOR}_${VERSION_MINOR}")
set_target_properties(3drepobouncer PROPERTIES DEBUG_POSTFIX "_${VERSION_MAJOR}_${VERSION_MINOR}_d")

target_link_libraries(3drepobouncer ${Boost_LIBRARIES} ${MONGO_LIBRARIES} ${ASSIMP_LIBRARIES} ${OCCT_LIBRARIES} ${IFCOPENSHELL_PARSERLIB} ${IFCOPENSHELL_GEOMLIB} ${ODA_LIB} ${SYNCHRO_READER_LIBRARIES} ${THRIFT_LIBRARIES} ${ZLIB_LIBRARIES} ${SYNCHRO_LIBRARIES} ${AWSSDK_LIBRARIES} ${CRYPTOLENS_LIBRARIES} ifcUtils_2x3 ifcUtils_4)

target_link_libraries(3drepobouncer
${Boost_LIBRARIES}
${MONGO_LIBRARIES}
${ASSIMP_LIBRARIES}
${OCCT_LIBRARIES}
${IFCOPENSHELL_PARSERLIB}
${IFCOPENSHELL_GEOMLIB}
${ODA_LIB}
${SYNCHRO_READER_LIBRARIES}
${THRIFT_LIBRARIES}
${ZLIB_LIBRARIES}
${SYNCHRO_LIBRARIES}
${AWSSDK_LIBRARIES}
${CRYPTOLENS_LIBRARIES}
ifcUtils_2x3
ifcUtils_4
)

install(DIRECTORY src/ DESTINATION include FILES_MATCHING PATTERN "*.h")
install(TARGETS 3drepobouncer DESTINATION lib)
Expand Down
1 change: 1 addition & 0 deletions bouncer/src/repo/core/model/bson/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ set(HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_assets.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_binmapping_builder.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_builder.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_calibration.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_element.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_factory.h
${CMAKE_CURRENT_SOURCE_DIR}/repo_bson_project_settings.h
Expand Down
38 changes: 38 additions & 0 deletions bouncer/src/repo/core/model/bson/repo_bson_calibration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "repo_bson.h"

namespace repo {
namespace core {
namespace model {

class REPO_API_EXPORT RepoCalibration : public RepoBSON
{
public:

RepoCalibration() : RepoBSON() {}

RepoCalibration(RepoBSON bson) : RepoBSON(bson) {}

~RepoCalibration() {}
};
}// end namespace model
} // end namespace core
} // end namespace repo
Loading
Loading