Merge branch 'master' of https://bitbucket.org/cgvtud/cg1
This commit is contained in:
commit
26144217b4
4 changed files with 7 additions and 5 deletions
|
@ -75,7 +75,7 @@ FUNCTION(SetupBuildEnvironment)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
|
if(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations -Wno-unused-result")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations -Wno-unused-result -Wno-misleading-indentation")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} PARENT_SCOPE)
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} PARENT_SCOPE)
|
||||||
|
|
|
@ -30,7 +30,7 @@ set(OPENMESH_BUILD_PYTHON_BINDINGS OFF CACHE BOOL " " FORCE)
|
||||||
set(OPENMESH_BUILD_SHARED OFF CACHE BOOL " ")
|
set(OPENMESH_BUILD_SHARED OFF CACHE BOOL " ")
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/OpenMesh ext_build/OpenMesh)
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/OpenMesh ext_build/OpenMesh)
|
||||||
if(TARGET OpenMeshCoreStatic)
|
if(TARGET OpenMeshCoreStatic)
|
||||||
set(LIBS ${LIBS} OpenMeshCoreStatic)
|
set(LIBS ${LIBS} OpenMeshCoreStatic)
|
||||||
set_property(TARGET OpenMeshCoreStatic OpenMeshToolsStatic PROPERTY FOLDER "dependencies")
|
set_property(TARGET OpenMeshCoreStatic OpenMeshToolsStatic PROPERTY FOLDER "dependencies")
|
||||||
set_property(TARGET OpenMeshCore OpenMeshToolsStatic PROPERTY EXCLUDE_FROM_ALL TRUE)
|
set_property(TARGET OpenMeshCore OpenMeshToolsStatic PROPERTY EXCLUDE_FROM_ALL TRUE)
|
||||||
else()
|
else()
|
||||||
|
@ -39,6 +39,7 @@ endif()
|
||||||
include_directories(ext/OpenMesh/src)
|
include_directories(ext/OpenMesh/src)
|
||||||
set_property(TARGET OpenMeshCore OpenMeshTools PROPERTY FOLDER "dependencies")
|
set_property(TARGET OpenMeshCore OpenMeshTools PROPERTY FOLDER "dependencies")
|
||||||
set_property(TARGET OpenMeshTools PROPERTY EXCLUDE_FROM_ALL TRUE)
|
set_property(TARGET OpenMeshTools PROPERTY EXCLUDE_FROM_ALL TRUE)
|
||||||
|
add_definitions(/DOM_STATIC_BUILD)
|
||||||
|
|
||||||
add_subdirectory(common)
|
add_subdirectory(common)
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/common/include)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/common/include)
|
||||||
|
|
|
@ -112,6 +112,7 @@ void Viewer::CreateVertexBuffers()
|
||||||
// "in_position". First, get the location of this attribute in
|
// "in_position". First, get the location of this attribute in
|
||||||
// the shader program
|
// the shader program
|
||||||
GLuint vid = glGetAttribLocation(program_id, "in_position");
|
GLuint vid = glGetAttribLocation(program_id, "in_position");
|
||||||
|
|
||||||
// Enable this vertex attribute array
|
// Enable this vertex attribute array
|
||||||
glEnableVertexAttribArray(vid);
|
glEnableVertexAttribArray(vid);
|
||||||
// Set the format of the data to match the type of "in_position"
|
// Set the format of the data to match the type of "in_position"
|
||||||
|
|
|
@ -364,7 +364,7 @@ public:
|
||||||
if(k_best.size() < k )
|
if(k_best.size() < k )
|
||||||
{
|
{
|
||||||
k_best.push(ResultEntry(dist,*pit));
|
k_best.push(ResultEntry(dist,*pit));
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
if(k_best.top().SqrDistance > dist)
|
if(k_best.top().SqrDistance > dist)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue