mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Compare commits
4 Commits
integratio
...
CR24790
Author | SHA1 | Date | |
---|---|---|---|
|
09e36976f3 | ||
|
eeba62cbd3 | ||
|
185d29b92f | ||
|
2923ef0df8 |
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_macros")
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_macros")
|
||||||
|
|
||||||
if (NOT DEFINED INSTALL_DRACO)
|
|
||||||
set (INSTALL_DRACO OFF CACHE BOOL "${INSTALL_DRACO_DESCR}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_DRACO_DIR)
|
if (NOT DEFINED 3RDPARTY_DRACO_DIR)
|
||||||
set (3RDPARTY_DRACO_DIR "" CACHE PATH "The directory containing Draco")
|
set (3RDPARTY_DRACO_DIR "" CACHE PATH "The directory containing Draco")
|
||||||
endif()
|
endif()
|
||||||
@@ -15,14 +11,24 @@ if (NOT DEFINED 3RDPARTY_DRACO_INCLUDE_DIR)
|
|||||||
set (3RDPARTY_DRACO_INCLUDE_DIR "" CACHE PATH "The directory containing headers of the Draco")
|
set (3RDPARTY_DRACO_INCLUDE_DIR "" CACHE PATH "The directory containing headers of the Draco")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY OR NOT 3RDPARTY_DRACO_LIBRARY_DIR OR NOT EXISTS "${3RDPARTY_DRACO_LIBRARY_DIR}")
|
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY)
|
||||||
set (3RDPARTY_DRACO_LIBRARY "" CACHE FILEPATH "Draco library" FORCE)
|
set (3RDPARTY_DRACO_LIBRARY "" CACHE FILEPATH "Draco library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY_DIR)
|
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY_DIR)
|
||||||
set (3RDPARTY_DRACO_LIBRARY_DIR "" CACHE PATH "The directory containing Draco library")
|
set (3RDPARTY_DRACO_LIBRARY_DIR "" CACHE PATH "The directory containing Draco library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY_DEBUG)
|
||||||
|
set (3RDPARTY_DRACO_LIBRARY_DEBUG "" CACHE FILEPATH "Draco debug library")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED 3RDPARTY_DRACO_LIBRARY_DIR_DEBUG)
|
||||||
|
set (3RDPARTY_DRACO_LIBRARY_DIR_DEBUG "" CACHE PATH "The directory containing Draco debug library")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
|
if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
|
||||||
if (NOT 3RDPARTY_DRACO_DIR OR NOT EXISTS "${3RDPARTY_DRACO_DIR}")
|
if (NOT 3RDPARTY_DRACO_DIR OR NOT EXISTS "${3RDPARTY_DRACO_DIR}")
|
||||||
FIND_PRODUCT_DIR("${3RDPARTY_DIR}" draco DRACO_DIR_NAME)
|
FIND_PRODUCT_DIR("${3RDPARTY_DIR}" draco DRACO_DIR_NAME)
|
||||||
@@ -32,20 +38,19 @@ if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_DRACO_DIR AND EXISTS "${3RDPARTY_DRACO_DIR}")
|
# header
|
||||||
set (DRACO_INCLUDE_PATH "${3RDPARTY_DRACO_DIR}/include")
|
if (NOT 3RDPARTY_DRACO_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_DRACO_INCLUDE_DIR}")
|
||||||
set (DRACO_LIBRARY_PATH "${3RDPARTY_DRACO_DIR}/lib")
|
set (HEADER_NAMES draco)
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT 3RDPARTY_DRACO_INCLUDE_DIR)
|
# set 3RDPARTY_DRACO_INCLUDE_DIR as notfound, otherwise find_path can't assign a new value to 3RDPARTY_DRACO_INCLUDE_DIR
|
||||||
if (DRACO_INCLUDE_PATH AND EXISTS "${DRACO_INCLUDE_PATH}")
|
set (3RDPARTY_DRACO_INCLUDE_DIR "3RDPARTY_DRACO_INCLUDE_DIR-NOTFOUND" CACHE FILEPATH "The directory containing headers of the Draco" FORCE)
|
||||||
set (3RDPARTY_DRACO_INCLUDE_DIR "${DRACO_INCLUDE_PATH}" CACHE FILEPATH "The directory containing headers of DRACO" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT 3RDPARTY_DRACO_LIBRARY_DIR)
|
if (3RDPARTY_DRACO_DIR AND EXISTS "${3RDPARTY_DRACO_DIR}")
|
||||||
if (DRACO_LIBRARY_PATH AND EXISTS "${DRACO_LIBRARY_PATH}")
|
find_path (3RDPARTY_DRACO_INCLUDE_DIR NAMES ${HEADER_NAMES}
|
||||||
set (3RDPARTY_DRACO_LIBRARY_DIR "${DRACO_LIBRARY_PATH}" CACHE FILEPATH "The directory containing DRACO library" FORCE)
|
PATHS ${3RDPARTY_DRACO_DIR}
|
||||||
|
PATH_SUFFIXES "include"
|
||||||
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -57,11 +62,11 @@ endif()
|
|||||||
|
|
||||||
if (3RDPARTY_DRACO_DIR AND EXISTS "${3RDPARTY_DRACO_DIR}")
|
if (3RDPARTY_DRACO_DIR AND EXISTS "${3RDPARTY_DRACO_DIR}")
|
||||||
if (NOT 3RDPARTY_DRACO_LIBRARY OR NOT EXISTS "${3RDPARTY_DRACO_LIBRARY}")
|
if (NOT 3RDPARTY_DRACO_LIBRARY OR NOT EXISTS "${3RDPARTY_DRACO_LIBRARY}")
|
||||||
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .so .dylib .a)
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .a)
|
||||||
set (3RDPARTY_DRACO_LIBRARY "3RDPARTY_DRACO_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to Draco library" FORCE)
|
set (3RDPARTY_DRACO_LIBRARY "3RDPARTY_DRACO_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to Draco library" FORCE)
|
||||||
|
|
||||||
find_library (3RDPARTY_DRACO_LIBRARY NAMES ${CSF_Draco}
|
find_library (3RDPARTY_DRACO_LIBRARY NAMES ${CSF_Draco}
|
||||||
PATHS "${3RDPARTY_DRACO_LIBRARY_DIR}"
|
PATHS "${3RDPARTY_DRACO_DIR}"
|
||||||
PATH_SUFFIXES lib
|
PATH_SUFFIXES lib
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
@@ -70,27 +75,19 @@ if (3RDPARTY_DRACO_DIR AND EXISTS "${3RDPARTY_DRACO_DIR}")
|
|||||||
set (3RDPARTY_DRACO_LIBRARY_DIR "${3RDPARTY_DRACO_LIBRARY_DIR}" CACHE FILEPATH "The directory containing Draco library" FORCE)
|
set (3RDPARTY_DRACO_LIBRARY_DIR "${3RDPARTY_DRACO_LIBRARY_DIR}" CACHE FILEPATH "The directory containing Draco library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if (3RDPARTY_DRACO_LIBRARY_DIR AND EXISTS "${3RDPARTY_DRACO_LIBRARY_DIR}")
|
if (WIN32 AND (NOT 3RDPARTY_DRACO_LIBRARY_DEBUG OR NOT EXISTS "${3RDPARTY_DRACO_LIBRARY_DEBUG}"))
|
||||||
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_DRACO_LIBRARY_DIR}")
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .a)
|
||||||
else()
|
set (3RDPARTY_DRACO_LIBRARY_DEBUG "3RDPARTY_DRACO_LIBRARY_DEBUG-NOTFOUND" CACHE FILEPATH "The path to debug Draco library" FORCE)
|
||||||
list (APPEND 3RDPARTY_NO_LIBS 3RDPARTY_DRACO_LIBRARY_DIR)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (INSTALL_DRACO)
|
find_library (3RDPARTY_DRACO_LIBRARY_DEBUG NAMES ${CSF_Draco}
|
||||||
get_filename_component(3RDPARTY_DRACO_LIBRARY_REALPATH ${3RDPARTY_DRACO_LIBRARY} REALPATH)
|
PATHS "${3RDPARTY_DRACO_DIR}"
|
||||||
if (SINGLE_GENERATOR)
|
PATH_SUFFIXES libd
|
||||||
install (FILES ${3RDPARTY_DRACO_LIBRARY_REALPATH} DESTINATION "${INSTALL_DIR_LIB}")
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
else()
|
NO_DEFAULT_PATH)
|
||||||
install (FILES ${3RDPARTY_DRACO_LIBRARY_REALPATH}
|
if (3RDPARTY_DRACO_LIBRARY_DEBUG AND EXISTS "${3RDPARTY_DRACO_LIBRARY_DEBUG}")
|
||||||
CONFIGURATIONS Release
|
get_filename_component (3RDPARTY_DRACO_LIBRARY_DIR_DEBUG "${3RDPARTY_DRACO_LIBRARY_DEBUG}" PATH)
|
||||||
DESTINATION "${INSTALL_DIR_LIB}")
|
set (3RDPARTY_DRACO_LIBRARY_DIR_DEBUG "${3RDPARTY_DRACO_LIBRARY_DIR_DEBUG}" CACHE FILEPATH "The directory containing debug Draco library" FORCE)
|
||||||
install (FILES ${3RDPARTY_DRACO_LIBRARY_REALPATH}
|
endif()
|
||||||
CONFIGURATIONS RelWithDebInfo
|
|
||||||
DESTINATION "${INSTALL_DIR_LIB}i")
|
|
||||||
install (FILES ${3RDPARTY_DRACO_LIBRARY_REALPATH}
|
|
||||||
CONFIGURATIONS Debug
|
|
||||||
DESTINATION "${INSTALL_DIR_LIB}d")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@@ -370,6 +370,10 @@ foreach (USED_ITEM ${USED_EXTERNLIB_AND_TOOLKITS})
|
|||||||
add_definitions (-DHAVE_GLES2)
|
add_definitions (-DHAVE_GLES2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ("${CURRENT_CSF}" STREQUAL "${CSF_Draco}")
|
||||||
|
set (CURRENT_CSF "")
|
||||||
|
set (USED_DRACO 1)
|
||||||
|
endif()
|
||||||
set (LIBRARY_FROM_CACHE 0)
|
set (LIBRARY_FROM_CACHE 0)
|
||||||
separate_arguments (CURRENT_CSF)
|
separate_arguments (CURRENT_CSF)
|
||||||
foreach (CSF_LIBRARY ${CURRENT_CSF})
|
foreach (CSF_LIBRARY ${CURRENT_CSF})
|
||||||
@@ -397,7 +401,7 @@ foreach (USED_ITEM ${USED_EXTERNLIB_AND_TOOLKITS})
|
|||||||
endforeach()
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if (NOT ${LIBRARY_FROM_CACHE})
|
if (NOT ${LIBRARY_FROM_CACHE} AND NOT "${CURRENT_CSF}" STREQUAL "")
|
||||||
# prepare a list from a string with whitespaces
|
# prepare a list from a string with whitespaces
|
||||||
separate_arguments (CURRENT_CSF)
|
separate_arguments (CURRENT_CSF)
|
||||||
list (APPEND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT ${CURRENT_CSF})
|
list (APPEND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT ${CURRENT_CSF})
|
||||||
@@ -408,6 +412,28 @@ foreach (USED_ITEM ${USED_EXTERNLIB_AND_TOOLKITS})
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
if (USE_DRACO)
|
||||||
|
if (USED_DRACO)
|
||||||
|
set (USED_LIB_RELEASE ${3RDPARTY_DRACO_LIBRARY})
|
||||||
|
if (WIN32)
|
||||||
|
set (USED_LIB_DEBUG ${3RDPARTY_DRACO_LIBRARY_DEBUG})
|
||||||
|
else()
|
||||||
|
set (USED_LIB_DEBUG ${3RDPARTY_DRACO_LIBRARY})
|
||||||
|
endif()
|
||||||
|
set (USED_LIB_CONF)
|
||||||
|
if (EXISTS ${USED_LIB_DEBUG})
|
||||||
|
set (USED_LIB_CONF "$<$<CONFIG:DEBUG>:${USED_LIB_DEBUG}>;${USED_LIB_CONF}")
|
||||||
|
endif()
|
||||||
|
if (EXISTS ${USED_LIB_RELEASE})
|
||||||
|
set (USED_LIB_CONF "$<$<CONFIG:RELEASE>:${USED_LIB_RELEASE}>;${USED_LIB_CONF}")
|
||||||
|
set (USED_LIB_CONF "$<$<CONFIG:RELWITHDEBINFO>:${USED_LIB_RELEASE}>;${USED_LIB_CONF}")
|
||||||
|
endif()
|
||||||
|
if (DEFINED USED_LIB_CONF)
|
||||||
|
set_property (TARGET ${PROJECT_NAME} APPEND PROPERTY LINK_LIBRARIES "${USED_LIB_CONF}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
list (FIND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT X11 IS_X11_FOUND)
|
list (FIND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT X11 IS_X11_FOUND)
|
||||||
if (NOT ${IS_X11_FOUND} EQUAL -1)
|
if (NOT ${IS_X11_FOUND} EQUAL -1)
|
||||||
|
29
get.sh
29
get.sh
@@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
problem_file=upgrade.bat
|
|
||||||
|
|
||||||
list="master integration"
|
|
||||||
echo "Getting commit hash"
|
|
||||||
for name in $list ; do
|
|
||||||
echo $name
|
|
||||||
export shorthash_$name=$(git rev-parse --short $name)
|
|
||||||
echo shorthash_$name=$(eval echo "\$shorthash_${name}")
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Getting list of commits between master and integration"
|
|
||||||
list=$(git rev-list --ancestry-path ${shorthash_master}..${shorthash_integration})
|
|
||||||
|
|
||||||
echo "Getting commit whose hash matches the hash of commit with problematic file"
|
|
||||||
for hash in $list ; do
|
|
||||||
list_changed_files=$(git diff-tree --no-commit-id --name-only -r $hash | sed 's/\// /g' | awk '{ print $NF }')
|
|
||||||
for changed_file in $list_changed_files; do
|
|
||||||
if [ "$problem_file" == "$changed_file" ] ; then
|
|
||||||
echo Reverting:
|
|
||||||
echo $(git log -1 --format=oneline $hash)
|
|
||||||
# git revert $hash
|
|
||||||
hash=$(echo $hash | head -c 10)
|
|
||||||
echo $hash
|
|
||||||
git rebase --onto $hash^ $hash
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
@@ -13,7 +13,7 @@
|
|||||||
//
|
//
|
||||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
// branch2
|
|
||||||
#include <Adaptor3d_Curve.hxx>
|
#include <Adaptor3d_Curve.hxx>
|
||||||
|
|
||||||
#include <Geom_BezierCurve.hxx>
|
#include <Geom_BezierCurve.hxx>
|
||||||
|
@@ -881,7 +881,9 @@ void Adaptor3d_TopolTool::SamplePnts(const Standard_Real theDefl,
|
|||||||
// case GeomAbs_BSplineSurface: {
|
// case GeomAbs_BSplineSurface: {
|
||||||
if(typS == GeomAbs_BSplineSurface) {
|
if(typS == GeomAbs_BSplineSurface) {
|
||||||
// Processing BSpline surface
|
// Processing BSpline surface
|
||||||
BSplSamplePnts(theDefl, theNUmin, theNVmin);
|
Standard_Integer aNUmin = (Standard_Integer)(1.2 * theNUmin);
|
||||||
|
Standard_Integer aNVmin = (Standard_Integer)(1.2 * theNVmin);
|
||||||
|
BSplSamplePnts(theDefl, aNUmin, aNVmin);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
// paralleling with Intel TBB
|
// paralleling with Intel TBB
|
||||||
#ifdef HAVE_TBB
|
#ifdef HAVE_TBB
|
||||||
|
#pragma comment (lib, "tbbmalloc.lib")
|
||||||
#include <tbb/scalable_allocator.h>
|
#include <tbb/scalable_allocator.h>
|
||||||
using namespace tbb;
|
using namespace tbb;
|
||||||
#else
|
#else
|
||||||
|
@@ -9,6 +9,7 @@ TKShHealing
|
|||||||
TKMesh
|
TKMesh
|
||||||
TKService
|
TKService
|
||||||
TKHLR
|
TKHLR
|
||||||
|
TKTopAlgo
|
||||||
CSF_TclLibs
|
CSF_TclLibs
|
||||||
CSF_TclTkLibs
|
CSF_TclTkLibs
|
||||||
CSF_XwLibs
|
CSF_XwLibs
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
rem test1
|
|
||||||
rem Helper script to run procedure of automatic upgrade of application code
|
rem Helper script to run procedure of automatic upgrade of application code
|
||||||
rem on newer version of OCCT on Windows.
|
rem on newer version of OCCT on Windows.
|
||||||
rem Running it requires that Tcl should be in the PATH
|
rem Running it requires that Tcl should be in the PATH
|
||||||
|
Reference in New Issue
Block a user