...
 
Commits (2)
......@@ -187,10 +187,10 @@ Pvk2Pfx /pvk ovito.pvk /spc ovito.cer /pfx ovito.pfx
Certutil -addStore TrustedPeople ovito.cer
**************************************************************************
OVITO:
OVITO statically linked release version:
**************************************************************************
mkdir ovito_release
cd ovito_release
mkdir ovito_static
cd ovito_static
cmake -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=../ovito_release_install ^
......
......@@ -76,19 +76,23 @@ IF(WIN32)
OVITO_INSTALL_DLL("${NETCDF_DLL_LOCATION}")
# Deploy HDF5 DLLs, which are required by NetCDF library.
GET_TARGET_PROPERTY(HDF5_DLL_LOCATION hdf5-shared IMPORTED_LOCATION_RELEASE)
IF(NOT HDF5_DLL_LOCATION)
IF(TARGET hdf5-shared)
GET_TARGET_PROPERTY(HDF5_DLL_LOCATION hdf5-shared IMPORTED_LOCATION_RELEASE)
ENDIF()
IF(NOT HDF5_DLL_LOCATION AND TARGET hdf5)
GET_TARGET_PROPERTY(HDF5_DLL_LOCATION hdf5 IMPORTED_LOCATION_RELEASE)
ENDIF()
IF(NOT HDF5_DLL_LOCATION)
IF(NOT HDF5_DLL_LOCATION AND TARGET hdf5::hdf5-shared)
GET_TARGET_PROPERTY(HDF5_DLL_LOCATION hdf5::hdf5-shared IMPORTED_LOCATION_RELEASE)
ENDIF()
OVITO_INSTALL_DLL("${HDF5_DLL_LOCATION}")
GET_TARGET_PROPERTY(HDF5_HL_DLL_LOCATION hdf5_hl-shared IMPORTED_LOCATION_RELEASE)
IF(NOT HDF5_HL_DLL_LOCATION)
IF(TARGET hdf5_hl-shared)
GET_TARGET_PROPERTY(HDF5_HL_DLL_LOCATION hdf5_hl-shared IMPORTED_LOCATION_RELEASE)
ENDIF()
IF(NOT HDF5_HL_DLL_LOCATION AND TARGET hdf5_hl)
GET_TARGET_PROPERTY(HDF5_HL_DLL_LOCATION hdf5_hl IMPORTED_LOCATION_RELEASE)
ENDIF()
IF(NOT HDF5_HL_DLL_LOCATION)
IF(NOT HDF5_HL_DLL_LOCATION AND TARGET hdf5::hdf5_hl-shared)
GET_TARGET_PROPERTY(HDF5_HL_DLL_LOCATION hdf5::hdf5_hl-shared IMPORTED_LOCATION_RELEASE)
ENDIF()
OVITO_INSTALL_DLL("${HDF5_HL_DLL_LOCATION}")
......
......@@ -248,7 +248,7 @@ void SliceModifierEditor::onCenterOfBox()
if(SimulationCellObject* cell = input.findObject<SimulationCellObject>()) {
Point3 centerPoint = cell->cellMatrix() * Point3(0.5, 0.5, 0.5);
FloatType centerDistance = mod->normal().dot(centerPoint - Point3::Origin());
FloatType centerDistance = mod->normal().safelyNormalized().dot(centerPoint - Point3::Origin());
undoableTransaction(tr("Set plane position"), [mod, centerDistance]() {
mod->setDistance(centerDistance);
......