Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
c36d4029
Commit
c36d4029
authored
Jan 31, 2011
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implicit Hierarchical Map -> corrections subdivision
Mise a jour CMakeLists SocialAgents
parent
ac4246bc
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
368 deletions
+77
-368
Apps/CMakeLists.txt
Apps/CMakeLists.txt
+2
-1
Apps/Examples/SocialAgents/Makefile
Apps/Examples/SocialAgents/Makefile
+0
-270
Apps/Examples/SocialAgents/Release/CMakeLists.txt
Apps/Examples/SocialAgents/Release/CMakeLists.txt
+4
-7
Apps/Examples/SocialAgents/include/env_generator.hpp
Apps/Examples/SocialAgents/include/env_generator.hpp
+1
-1
Apps/Examples/SocialAgents/src/env_map.cpp
Apps/Examples/SocialAgents/src/env_map.cpp
+42
-3
Apps/Examples/SocialAgents/src/viewer.cpp
Apps/Examples/SocialAgents/src/viewer.cpp
+6
-6
ThirdParty/Assimp/code/cmake_install.cmake
ThirdParty/Assimp/code/cmake_install.cmake
+1
-79
include/Algo/ImplicitHierarchicalMesh/ihm.h
include/Algo/ImplicitHierarchicalMesh/ihm.h
+6
-0
include/Algo/ImplicitHierarchicalMesh/ihm.hpp
include/Algo/ImplicitHierarchicalMesh/ihm.hpp
+15
-1
No files found.
Apps/CMakeLists.txt
View file @
c36d4029
...
@@ -9,7 +9,8 @@ ELSE(WIN32)
...
@@ -9,7 +9,8 @@ ELSE(WIN32)
add_subdirectory
(
Examples/Release
)
add_subdirectory
(
Examples/Release
)
add_subdirectory
(
Examples/Debug
)
add_subdirectory
(
Examples/Debug
)
add_subdirectory
(
Examples/Tests
)
add_subdirectory
(
Examples/Tests
)
add_subdirectory
(
Examples/SocialAgents
)
add_subdirectory
(
Examples/SocialAgents/Release
)
add_subdirectory
(
Examples/SocialAgents/Debug
)
add_subdirectory
(
Tuto
)
add_subdirectory
(
Tuto
)
ENDIF
(
WIN32
)
ENDIF
(
WIN32
)
...
...
Apps/Examples/SocialAgents/Makefile
deleted
100644 → 0
View file @
ac4246bc
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
# Default target executed when no arguments are given to make.
default_target
:
all
.PHONY
:
default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canoncical targets will work.
.SUFFIXES
:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES
=
.SUFFIXES
:
.hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT
:
# A target that is always out of date.
cmake_force
:
.PHONY
:
cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL
=
/bin/sh
# The CMake executable.
CMAKE_COMMAND
=
/usr/bin/cmake
# The command to remove a file.
RM
=
/usr/bin/cmake
-E
remove
-f
# The program to use to edit the cache.
CMAKE_EDIT_COMMAND
=
/usr/bin/ccmake
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR
=
/home/jund/Desktop/code/miniCGoGN/Apps/SocialAgents
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR
=
/home/jund/Desktop/code/miniCGoGN/Apps/SocialAgents
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache
:
@
$(CMAKE_COMMAND)
-E
cmake_echo_color
--switch
=
$(COLOR)
--cyan
"Running CMake cache editor..."
/usr/bin/ccmake
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
.PHONY
:
edit_cache
# Special rule for the target edit_cache
edit_cache/fast
:
edit_cache
.PHONY
:
edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache
:
@
$(CMAKE_COMMAND)
-E
cmake_echo_color
--switch
=
$(COLOR)
--cyan
"Running CMake to regenerate build system..."
/usr/bin/cmake
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
.PHONY
:
rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast
:
rebuild_cache
.PHONY
:
rebuild_cache/fast
# The main all target
all
:
cmake_check_build_system
$(CMAKE_COMMAND)
-E
cmake_progress_start /home/jund/Desktop/code/miniCGoGN/Apps/SocialAgents/CMakeFiles /home/jund/Desktop/code/miniCGoGN/Apps/SocialAgents/CMakeFiles/progress.make
$(MAKE)
-f
CMakeFiles/Makefile2 all
$(CMAKE_COMMAND)
-E
cmake_progress_start /home/jund/Desktop/code/miniCGoGN/Apps/SocialAgents/CMakeFiles 0
.PHONY
:
all
# The main clean target
clean
:
$(MAKE)
-f
CMakeFiles/Makefile2 clean
.PHONY
:
clean
# The main clean target
clean/fast
:
clean
.PHONY
:
clean/fast
# Prepare targets for installation.
preinstall
:
all
$(MAKE)
-f
CMakeFiles/Makefile2 preinstall
.PHONY
:
preinstall
# Prepare targets for installation.
preinstall/fast
:
$(MAKE)
-f
CMakeFiles/Makefile2 preinstall
.PHONY
:
preinstall/fast
# clear depends
depend
:
$(CMAKE_COMMAND)
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
--check-build-system
CMakeFiles/Makefile.cmake 1
.PHONY
:
depend
#=============================================================================
# Target rules for targets named socialAgents
# Build rule for target.
socialAgents
:
cmake_check_build_system
$(MAKE)
-f
CMakeFiles/Makefile2 socialAgents
.PHONY
:
socialAgents
# fast build rule for target.
socialAgents/fast
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/build
.PHONY
:
socialAgents/fast
#=============================================================================
# Target rules for targets named socialAgentsD
# Build rule for target.
socialAgentsD
:
cmake_check_build_system
$(MAKE)
-f
CMakeFiles/Makefile2 socialAgentsD
.PHONY
:
socialAgentsD
# fast build rule for target.
socialAgentsD/fast
:
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/build
.PHONY
:
socialAgentsD/fast
src/agent.o
:
src/agent.cpp.o
.PHONY
:
src/agent.o
# target to build an object file
src/agent.cpp.o
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/agent.cpp.o
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/agent.cpp.o
.PHONY
:
src/agent.cpp.o
src/agent.i
:
src/agent.cpp.i
.PHONY
:
src/agent.i
# target to preprocess a source file
src/agent.cpp.i
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/agent.cpp.i
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/agent.cpp.i
.PHONY
:
src/agent.cpp.i
src/agent.s
:
src/agent.cpp.s
.PHONY
:
src/agent.s
# target to generate assembly for a file
src/agent.cpp.s
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/agent.cpp.s
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/agent.cpp.s
.PHONY
:
src/agent.cpp.s
src/env_map.o
:
src/env_map.cpp.o
.PHONY
:
src/env_map.o
# target to build an object file
src/env_map.cpp.o
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/env_map.cpp.o
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/env_map.cpp.o
.PHONY
:
src/env_map.cpp.o
src/env_map.i
:
src/env_map.cpp.i
.PHONY
:
src/env_map.i
# target to preprocess a source file
src/env_map.cpp.i
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/env_map.cpp.i
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/env_map.cpp.i
.PHONY
:
src/env_map.cpp.i
src/env_map.s
:
src/env_map.cpp.s
.PHONY
:
src/env_map.s
# target to generate assembly for a file
src/env_map.cpp.s
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/env_map.cpp.s
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/env_map.cpp.s
.PHONY
:
src/env_map.cpp.s
src/simulator.o
:
src/simulator.cpp.o
.PHONY
:
src/simulator.o
# target to build an object file
src/simulator.cpp.o
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/simulator.cpp.o
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/simulator.cpp.o
.PHONY
:
src/simulator.cpp.o
src/simulator.i
:
src/simulator.cpp.i
.PHONY
:
src/simulator.i
# target to preprocess a source file
src/simulator.cpp.i
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/simulator.cpp.i
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/simulator.cpp.i
.PHONY
:
src/simulator.cpp.i
src/simulator.s
:
src/simulator.cpp.s
.PHONY
:
src/simulator.s
# target to generate assembly for a file
src/simulator.cpp.s
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/simulator.cpp.s
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/simulator.cpp.s
.PHONY
:
src/simulator.cpp.s
src/viewer.o
:
src/viewer.cpp.o
.PHONY
:
src/viewer.o
# target to build an object file
src/viewer.cpp.o
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/viewer.cpp.o
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/viewer.cpp.o
.PHONY
:
src/viewer.cpp.o
src/viewer.i
:
src/viewer.cpp.i
.PHONY
:
src/viewer.i
# target to preprocess a source file
src/viewer.cpp.i
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/viewer.cpp.i
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/viewer.cpp.i
.PHONY
:
src/viewer.cpp.i
src/viewer.s
:
src/viewer.cpp.s
.PHONY
:
src/viewer.s
# target to generate assembly for a file
src/viewer.cpp.s
:
$(MAKE)
-f
CMakeFiles/socialAgents.dir/build.make CMakeFiles/socialAgents.dir/src/viewer.cpp.s
$(MAKE)
-f
CMakeFiles/socialAgentsD.dir/build.make CMakeFiles/socialAgentsD.dir/src/viewer.cpp.s
.PHONY
:
src/viewer.cpp.s
# Help Target
help
:
@
echo
"The following are some of the valid targets for this Makefile:"
@
echo
"... all (the default if no target is provided)"
@
echo
"... clean"
@
echo
"... depend"
@
echo
"... edit_cache"
@
echo
"... rebuild_cache"
@
echo
"... socialAgents"
@
echo
"... socialAgentsD"
@
echo
"... src/agent.o"
@
echo
"... src/agent.i"
@
echo
"... src/agent.s"
@
echo
"... src/env_map.o"
@
echo
"... src/env_map.i"
@
echo
"... src/env_map.s"
@
echo
"... src/simulator.o"
@
echo
"... src/simulator.i"
@
echo
"... src/simulator.s"
@
echo
"... src/viewer.o"
@
echo
"... src/viewer.i"
@
echo
"... src/viewer.s"
.PHONY
:
help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system
:
$(CMAKE_COMMAND)
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
--check-build-system
CMakeFiles/Makefile.cmake 0
.PHONY
:
cmake_check_build_system
Apps/Examples/SocialAgents/CMakeLists.txt
→
Apps/Examples/SocialAgents/
Release/
CMakeLists.txt
View file @
c36d4029
...
@@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 2.6)
...
@@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 2.6)
project
(
SocialAgents
)
project
(
SocialAgents
)
SET
(
CMAKE_BUILD_TYPE
Debug
)
SET
(
CMAKE_BUILD_TYPE
Release
)
link_directories
(
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/
Debug
/
${
CGoGN_ROOT_DIR
}
/lib/
Release
/
${
CGoGN_ROOT_DIR
}
/lib/Release/
)
)
# define includes path
# define includes path
include_directories
(
include_directories
(
...
@@ -21,8 +21,5 @@ include_directories(
...
@@ -21,8 +21,5 @@ include_directories(
)
)
#define exec to compile
#define exec to compile
add_executable
(
socialAgents .
/src/viewer.cpp ./src/env_map.cpp ./src/agent.cpp
./src/simulator.cpp
)
add_executable
(
socialAgents .
./src/viewer.cpp ../src/env_map.cpp ../src/agent.cpp .
./src/simulator.cpp
)
target_link_libraries
(
socialAgents container topology utils algo
${
COMMON_LIBS
}
)
target_link_libraries
(
socialAgents container topology utils algo
${
COMMON_LIBS
}
)
add_executable
(
socialAgentsD ./src/viewer.cpp ./src/env_map.cpp ./src/agent.cpp ./src/simulator.cpp
)
target_link_libraries
(
socialAgentsD containerD topologyD utilsD algoD
${
COMMON_LIBS
}
)
Apps/Examples/SocialAgents/include/env_generator.hpp
View file @
c36d4029
...
@@ -148,7 +148,7 @@ void generateSmallCity(typename PFP::MAP& map, EMBV& position, DartMarker& close
...
@@ -148,7 +148,7 @@ void generateSmallCity(typename PFP::MAP& map, EMBV& position, DartMarker& close
// sideSize *= 0.2f;
// sideSize *= 0.2f;
unsigned
int
nbBuilding
=
1000
;
unsigned
int
nbBuilding
=
1000
;
float
height
=
sideSize
/
2.0
f
;
float
height
=
sideSize
/
2.0
f
;
unsigned
int
side
=
18
;
unsigned
int
side
=
20
;
generateGrid
<
PFP
,
EMBV
>
(
map
,
position
,
side
,
side
,
sideSize
,
closeMark
);
generateGrid
<
PFP
,
EMBV
>
(
map
,
position
,
side
,
side
,
sideSize
,
closeMark
);
Dart
dEnd
=
map
.
end
();
Dart
dEnd
=
map
.
end
();
...
...
Apps/Examples/SocialAgents/src/env_map.cpp
View file @
c36d4029
...
@@ -350,7 +350,14 @@ void EnvMap::updateMap()
...
@@ -350,7 +350,14 @@ void EnvMap::updateMap()
for
(
std
::
vector
<
Agent
*>::
iterator
it
=
agents
.
begin
();
it
!=
agents
.
end
();
++
it
)
for
(
std
::
vector
<
Agent
*>::
iterator
it
=
agents
.
begin
();
it
!=
agents
.
end
();
++
it
)
{
{
if
(
!
map
.
sameFace
(
d
,
(
*
it
)
->
part
->
d
))
if
(
!
map
.
sameFace
(
d
,
(
*
it
)
->
part
->
d
))
{
std
::
cout
<<
"aaaaaaaaaaaaaaaaaaa"
<<
std
::
endl
;
std
::
cout
<<
"aaaaaaaaaaaaaaaaaaa"
<<
std
::
endl
;
std
::
cout
<<
(
*
it
)
->
part
->
state
<<
std
::
endl
;
if
(
map
.
sameFace
(
map
.
phi2
(
d
),
(
*
it
)
->
part
->
d
))
{
std
::
cout
<<
"saucisse"
<<
std
::
endl
;
}
}
}
}
}
}
}
}
...
@@ -367,15 +374,28 @@ void EnvMap::subdivideFaces()
...
@@ -367,15 +374,28 @@ void EnvMap::subdivideFaces()
if
(
!
m
.
isMarked
(
d
))
if
(
!
m
.
isMarked
(
d
))
{
{
m
.
mark
(
d
)
;
m
.
mark
(
d
)
;
if
(
!
closeMark
.
isMarked
(
d
)
&&
agentvect
[
d
].
size
()
>
8
)
if
(
!
closeMark
.
isMarked
(
d
)
&&
agentvect
[
d
].
size
()
>
5
)
{
{
if
(
!
map
.
faceIsSubdivided
(
d
))
if
(
!
map
.
faceIsSubdivided
(
d
))
{
{
d
=
map
.
faceOldestDart
(
d
)
;
std
::
vector
<
Agent
*>
agents
;
std
::
vector
<
Agent
*>
agents
;
agents
.
swap
(
agentvect
[
d
])
;
agents
.
swap
(
agentvect
[
d
])
;
unsigned
int
cur
=
map
.
getCurrentLevel
()
;
unsigned
int
cur
=
map
.
getCurrentLevel
()
;
unsigned
int
fLevel
=
map
.
faceLevel
(
d
)
;
unsigned
int
fLevel
=
map
.
faceLevel
(
d
)
;
// std::cout << "cur -> " << cur << " / fLevel -> " << fLevel << " :" ;
// Dart fit = d ;
// do
// {
// unsigned int e = map.getDartEmbedding(FACE_ORBIT, fit) ;
// if(e == EMBNULL) std::cout << " -" ; else std::cout << " " << e ;
// fit = map.phi1(fit) ;
// } while(fit != d) ;
// std::cout << std::endl ;
map
.
setCurrentLevel
(
fLevel
)
;
map
.
setCurrentLevel
(
fLevel
)
;
std
::
vector
<
Dart
>
marked
;
std
::
vector
<
Dart
>
marked
;
Dart
fit
=
d
;
Dart
fit
=
d
;
...
@@ -389,16 +409,35 @@ void EnvMap::subdivideFaces()
...
@@ -389,16 +409,35 @@ void EnvMap::subdivideFaces()
Algo
::
IHM
::
subdivideFace
<
PFP
>
(
map
,
d
,
position
)
;
Algo
::
IHM
::
subdivideFace
<
PFP
>
(
map
,
d
,
position
)
;
map
.
setCurrentLevel
(
fLevel
+
1
)
;
map
.
setCurrentLevel
(
fLevel
+
1
)
;
// Dart cv = map.phi2(map.phi1(d)) ;
// Dart vit = cv ;
// unsigned int i = 1 ;
// do
// {
// std::cout << " face " << i << " -> " ;
// Dart f = vit ;
// do
// {
// unsigned int e = map.getDartEmbedding(FACE_ORBIT, f) ;
// if(e == EMBNULL) std::cout << " -" ; else std::cout << " " << e ;
// f = map.phi1(f) ;
// } while(f != vit) ;
// std::cout << std::endl ;
// vit = map.alpha1(vit) ;
// ++i ;
// } while(vit != cv) ;
for
(
std
::
vector
<
Dart
>::
iterator
it
=
marked
.
begin
();
it
!=
marked
.
end
();
++
it
)
for
(
std
::
vector
<
Dart
>::
iterator
it
=
marked
.
begin
();
it
!=
marked
.
end
();
++
it
)
closeMark
.
mark
(
map
.
phi2
(
*
it
))
;
closeMark
.
mark
(
map
.
phi2
(
*
it
))
;
map
.
setCurrentLevel
(
cur
)
;
for
(
PFP
::
AGENTS
::
iterator
it
=
agents
.
begin
();
it
!=
agents
.
end
();
++
it
)
for
(
PFP
::
AGENTS
::
iterator
it
=
agents
.
begin
();
it
!=
agents
.
end
();
++
it
)
{
{
resetAgentInFace
(
*
it
)
;
resetAgentInFace
(
*
it
)
;
agentvect
[(
*
it
)
->
part
->
d
].
push_back
(
*
it
)
;
agentvect
[(
*
it
)
->
part
->
d
].
push_back
(
*
it
)
;
}
}
map
.
setCurrentLevel
(
cur
)
;
}
}
}
}
}
}
...
...
Apps/Examples/SocialAgents/src/viewer.cpp
View file @
c36d4029
...
@@ -191,18 +191,18 @@ void MyGlutWin::myRedraw()
...
@@ -191,18 +191,18 @@ void MyGlutWin::myRedraw()
// glColor3f(i%int(2.0f/3.0f*v.size())/(v.size()/3.0f),i%int(1.0f/3.0f*v.size())/(v.size()/3.0f),i/(v.size()/3.0f));
// glColor3f(i%int(2.0f/3.0f*v.size())/(v.size()/3.0f),i%int(1.0f/3.0f*v.size())/(v.size()/3.0f),i/(v.size()/3.0f));
// glCircle3i(v[i][0],v[i][1],1.5f);
// glCircle3i(v[i][0],v[i][1],1.5f);
glPushMatrix
();
glPushMatrix
();
Geom
::
Plane3D
<
PFP
::
REAL
>
pl
=
Algo
::
Geometry
::
trianglePlane
<
PFP
>
(
sim
->
envMap
.
map
,
sim
->
agents_
[
i
]
->
nearestDart
,
sim
->
envMap
.
position
);
//
Geom::Plane3D<PFP::REAL> pl = Algo::Geometry::trianglePlane<PFP>(sim->envMap.map,sim->agents_[i]->nearestDart,sim->envMap.position);
VEC3
pBase
(
sim
->
agents_
[
i
]
->
position_
);
VEC3
pBase
(
sim
->
agents_
[
i
]
->
position_
);
VEC3
posR
;
VEC3
posR
=
pBase
;
pl
.
normal
()
=
-
1.0
f
*
pl
.
normal
();
//
pl.normal() = -1.0f*pl.normal();
// VEC3 v(sim->envMap.position[sim->agents_[i]->nearestDart]-pBase);
// VEC3 v(sim->envMap.position[sim->agents_[i]->nearestDart]-pBase);
// float scal = v*pl.normal();
// float scal = v*pl.normal();
// posR = pBase + scal*pl.normal();
// posR = pBase + scal*pl.normal();
VEC3
dir
(
0.0
f
,
0.0
f
,
-
1.0
f
);
//
VEC3 dir(0.0f,0.0f,-1.0f);
pBase
[
2
]
=
100000.0
f
;
//
pBase[2]=100000.0f;
Geom
::
intersectPlaneRay
<
VEC3
,
Geom
::
Plane3D
<
PFP
::
REAL
>
>
(
pl
,
pBase
,
dir
,
posR
);
//
Geom::intersectPlaneRay<VEC3,Geom::Plane3D<PFP::REAL> >(pl,pBase,dir,posR);
// VEC3 posR(sim->agents_[i]->position_[0],sim->agents_[i]->position_[1],0);
// VEC3 posR(sim->agents_[i]->position_[0],sim->agents_[i]->position_[1],0);
glTranslatef
(
posR
[
0
],
posR
[
1
],
posR
[
2
]);
glTranslatef
(
posR
[
0
],
posR
[
1
],
posR
[
2
]);
...
...
ThirdParty/Assimp/code/cmake_install.cmake
View file @
c36d4029
# Install script for directory: /home/
thery/Downloads/ASS
/code
# Install script for directory: /home/
kraemer/Dev/CGoGN/ThirdParty/Assimp
/code
# Set the install prefix
# Set the install prefix
IF
(
NOT DEFINED CMAKE_INSTALL_PREFIX
)
IF
(
NOT DEFINED CMAKE_INSTALL_PREFIX
)
...
@@ -32,81 +32,3 @@ IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
...
@@ -32,81 +32,3 @@ IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
SET
(
CMAKE_INSTALL_SO_NO_EXE
"1"
)
SET
(
CMAKE_INSTALL_SO_NO_EXE
"1"
)
ENDIF
(
NOT DEFINED CMAKE_INSTALL_SO_NO_EXE
)
ENDIF
(
NOT DEFINED CMAKE_INSTALL_SO_NO_EXE
)
IF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
FOREACH
(
file
"$ENV{DESTDIR}/usr/local/lib/libassimp.so.1.0.0"
"$ENV{DESTDIR}/usr/local/lib/libassimp.so.1"
"$ENV{DESTDIR}/usr/local/lib/libassimp.so"
)
IF
(
EXISTS
"
${
file
}
"
AND
NOT IS_SYMLINK
"
${
file
}
"
)
FILE
(
RPATH_CHECK
FILE
"
${
file
}
"
RPATH
""
)
ENDIF
()
ENDFOREACH
()
FILE
(
INSTALL DESTINATION
"/usr/local/lib"
TYPE SHARED_LIBRARY FILES
"/home/thery/Downloads/ASS/lib/libassimp.so.1.0.0"
"/home/thery/Downloads/ASS/lib/libassimp.so.1"
"/home/thery/Downloads/ASS/lib/libassimp.so"
)
FOREACH
(
file
"$ENV{DESTDIR}/usr/local/lib/libassimp.so.1.0.0"
"$ENV{DESTDIR}/usr/local/lib/libassimp.so.1"
"$ENV{DESTDIR}/usr/local/lib/libassimp.so"
)
IF
(
EXISTS
"
${
file
}
"
AND
NOT IS_SYMLINK
"
${
file
}
"
)
IF
(
CMAKE_INSTALL_DO_STRIP
)
EXECUTE_PROCESS
(
COMMAND
"/usr/bin/strip"
"
${
file
}
"
)
ENDIF
(
CMAKE_INSTALL_DO_STRIP
)
ENDIF
()
ENDFOREACH
()
ENDIF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
IF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
FILE
(
INSTALL DESTINATION
"/usr/local/include/assimp"
TYPE FILE FILES
"/home/thery/Downloads/ASS/code/../include/aiAnim.h"
"/home/thery/Downloads/ASS/code/../include/aiAssert.h"
"/home/thery/Downloads/ASS/code/../include/aiCamera.h"
"/home/thery/Downloads/ASS/code/../include/aiColor4D.h"
"/home/thery/Downloads/ASS/code/../include/aiColor4D.inl"
"/home/thery/Downloads/ASS/code/../include/aiConfig.h"
"/home/thery/Downloads/ASS/code/../include/aiDefines.h"
"/home/thery/Downloads/ASS/code/../include/aiFileIO.h"
"/home/thery/Downloads/ASS/code/../include/aiLight.h"
"/home/thery/Downloads/ASS/code/../include/aiMaterial.h"
"/home/thery/Downloads/ASS/code/../include/aiMaterial.inl"
"/home/thery/Downloads/ASS/code/../include/aiMatrix3x3.h"
"/home/thery/Downloads/ASS/code/../include/aiMatrix3x3.inl"
"/home/thery/Downloads/ASS/code/../include/aiMatrix4x4.h"
"/home/thery/Downloads/ASS/code/../include/aiMatrix4x4.inl"
"/home/thery/Downloads/ASS/code/../include/aiMesh.h"
"/home/thery/Downloads/ASS/code/../include/aiPostProcess.h"
"/home/thery/Downloads/ASS/code/../include/aiQuaternion.h"
"/home/thery/Downloads/ASS/code/../include/aiScene.h"
"/home/thery/Downloads/ASS/code/../include/aiTexture.h"
"/home/thery/Downloads/ASS/code/../include/aiTypes.h"
"/home/thery/Downloads/ASS/code/../include/aiVector2D.h"
"/home/thery/Downloads/ASS/code/../include/aiVector3D.h"
"/home/thery/Downloads/ASS/code/../include/aiVector3D.inl"
"/home/thery/Downloads/ASS/code/../include/aiVersion.h"
"/home/thery/Downloads/ASS/code/../include/assimp.h"
"/home/thery/Downloads/ASS/code/../include/assimp.hpp"
"/home/thery/Downloads/ASS/code/../include/DefaultLogger.h"
"/home/thery/Downloads/ASS/code/../include/IOStream.h"
"/home/thery/Downloads/ASS/code/../include/IOSystem.h"
"/home/thery/Downloads/ASS/code/../include/Logger.h"
"/home/thery/Downloads/ASS/code/../include/LogStream.h"
"/home/thery/Downloads/ASS/code/../include/NullLogger.h"
)
ENDIF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
IF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
FILE
(
INSTALL DESTINATION
"/usr/local/include/assimp/Compiler"
TYPE FILE FILES
"/home/thery/Downloads/ASS/code/../include/Compiler/pushpack1.h"
"/home/thery/Downloads/ASS/code/../include/Compiler/poppack1.h"
"/home/thery/Downloads/ASS/code/pstdint.h"
)
ENDIF
(
NOT CMAKE_INSTALL_COMPONENT OR
"
${
CMAKE_INSTALL_COMPONENT
}
"
STREQUAL
"Unspecified"
)
include/Algo/ImplicitHierarchicalMesh/ihm.h
View file @
c36d4029
...
@@ -106,6 +106,12 @@ public:
...
@@ -106,6 +106,12 @@ public:
virtual
bool
foreach_dart_of_cc
(
Dart
d
,
FunctorType
&
f
)
;
virtual
bool
foreach_dart_of_cc
(
Dart
d
,
FunctorType
&
f
)
;
/***************************************************
* MAP MANIPULATION *
***************************************************/
void
splitFace
(
Dart
d
,
Dart
e
)
;
/***************************************************
/***************************************************
* LEVELS MANAGEMENT *
* LEVELS MANAGEMENT *
***************************************************/
***************************************************/
...
...
include/Algo/ImplicitHierarchicalMesh/ihm.hpp
View file @
c36d4029
...
@@ -158,7 +158,7 @@ inline void ImplicitHierarchicalMap::next(Dart& d)
...
@@ -158,7 +158,7 @@ inline void ImplicitHierarchicalMap::next(Dart& d)
do
do
{
{
Map2
::
next
(
d
)
;
Map2
::
next
(
d
)
;
}
while
(
m_dartLevel
[
d
]
>
m_curLevel
&&
d
!=
Map2
::
end
()
)
;
}
while
(
d
!=
Map2
::
end
()
&&
m_dartLevel
[
d
]
>
m_curLevel
)
;
}
}
inline
bool
ImplicitHierarchicalMap
::
foreach_dart_of_vertex
(
Dart
d
,
FunctorType
&
f
)
inline
bool
ImplicitHierarchicalMap
::
foreach_dart_of_vertex
(
Dart
d
,
FunctorType
&
f
)
...
@@ -248,6 +248,20 @@ inline bool ImplicitHierarchicalMap::foreach_dart_of_cc(Dart d, FunctorType& f)
...
@@ -248,6 +248,20 @@ inline bool ImplicitHierarchicalMap::foreach_dart_of_cc(Dart d, FunctorType& f)
return
foreach_dart_of_oriented_volume
(
d
,
f
)
;
return
foreach_dart_of_oriented_volume
(
d
,
f
)
;
}
}
/***************************************************
* MAP MANIPULATION *
***************************************************/
inline
void
ImplicitHierarchicalMap
::
splitFace
(
Dart
d
,
Dart
e
)
{
EmbeddedMap2
<
Map2
>::
splitFace
(
d
,
e
)
;
unsigned
int
cur
=
m_curLevel
;