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
S
SocialAgents3D
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
Thomas Pitiot
SocialAgents3D
Commits
3727c51b
Commit
3727c51b
authored
Mar 20, 2015
by
Thomas Pitiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test pour debug particules
parent
c0275889
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
.qglviewer.xml
.qglviewer.xml
+2
-2
src/needle.cpp
src/needle.cpp
+4
-4
src/simulator.cpp
src/simulator.cpp
+1
-1
src/viewer.cpp
src/viewer.cpp
+1
-1
No files found.
.qglviewer.xml
View file @
3727c51b
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
</Parameters>
</Parameters>
<Stereo
focusDistance=
"20.9077"
physScreenWidth=
"0.5"
IODist=
"0.062"
/>
<Stereo
focusDistance=
"20.9077"
physScreenWidth=
"0.5"
IODist=
"0.062"
/>
<ManipulatedCameraFrame>
<ManipulatedCameraFrame>
<position
x=
"0
.147086"
y=
"-1.71221"
z=
"-22.565
"
/>
<position
x=
"0
"
y=
"0"
z=
"22.6303
"
/>
<orientation
q0=
"0
.216344"
q1=
"0.975578"
q2=
"-0.0362554"
q3=
"0.011371
1"
/>
<orientation
q0=
"0
"
q1=
"0"
q2=
"0"
q3=
"
1"
/>
<ManipulatedParameters
transSens=
"1"
zoomSens=
"1"
rotSens=
"1"
wheelSens=
"1"
spinSens=
"0.3"
/>
<ManipulatedParameters
transSens=
"1"
zoomSens=
"1"
rotSens=
"1"
wheelSens=
"1"
spinSens=
"0.3"
/>
<ManipulatedCameraParameters
zoomsOnPivotPoint=
"false"
flySpeed=
"0.0866025"
rotatesAroundUpVector=
"false"
>
<ManipulatedCameraParameters
zoomsOnPivotPoint=
"false"
flySpeed=
"0.0866025"
rotatesAroundUpVector=
"false"
>
<sceneUpVector
x=
"0"
y=
"1"
z=
"0"
/>
<sceneUpVector
x=
"0"
y=
"1"
z=
"0"
/>
...
...
src/needle.cpp
View file @
3727c51b
...
@@ -238,10 +238,10 @@ void Needle::refine()
...
@@ -238,10 +238,10 @@ void Needle::refine()
REAL
rayon
=
sim_
->
envMap_
.
volumeMaxdistance
(
volume
)
;
REAL
rayon
=
sim_
->
envMap_
.
volumeMaxdistance
(
volume
)
;
if
(
rayon
>
sim_
->
envMap_
.
maxCellRay
)
if
(
rayon
>
sim_
->
envMap_
.
maxCellRay
)
{
{
if
(
sim_
->
envMap_
.
subdivideVolume
(
volume
))
//
if(sim_->envMap_.subdivideVolume(volume))
{
//
{
refine
();
//
refine();
}
//
}
}
}
#endif
#endif
...
...
src/simulator.cpp
View file @
3727c51b
...
@@ -42,7 +42,7 @@ void Simulator::doStep()
...
@@ -42,7 +42,7 @@ void Simulator::doStep()
void
Simulator
::
initSurfaces
()
void
Simulator
::
initSurfaces
()
{
{
Surface
*
obj
=
new
Surface
(
this
,
VEC3
(
-
1.0
f
,
-
1.5
f
,
0.
69
f
));
Surface
*
obj
=
new
Surface
(
this
,
VEC3
(
-
1.0
f
,
-
1.5
f
,
0.
0
f
));
CGoGNout
<<
"surface initialisée : "
<<
obj
->
index_surface
<<
CGoGNendl
;
CGoGNout
<<
"surface initialisée : "
<<
obj
->
index_surface
<<
CGoGNendl
;
}
}
...
...
src/viewer.cpp
View file @
3727c51b
...
@@ -551,7 +551,7 @@ void Volusion::displayObj()
...
@@ -551,7 +551,7 @@ void Volusion::displayObj()
m_topo_render
->
updateData
(
simul
.
envMap_
.
map
,
simul
.
envMap_
.
position
,
0.8
f
,
0.8
f
,
0.8
f
);
m_topo_render
->
updateData
(
simul
.
envMap_
.
map
,
simul
.
envMap_
.
position
,
0.8
f
,
0.8
f
,
0.8
f
);
for
(
ArticulatedObject
*
o
:
simul
.
objects
)
for
(
ArticulatedObject
*
o
:
simul
.
objects
)
{
{
CGoGNout
<<
" size belong :"
<<
o
->
belonging_cells
.
size
()
<<
" || nbseg :"
<<
o
->
nbEdges
<<
CGoGNendl
;
//
CGoGNout<<" size belong :"<< o->belonging_cells.size()<< " || nbseg :"<<o->nbEdges << CGoGNendl;
for
(
const
auto
&
vect
:
o
->
belonging_cells
)
for
(
const
auto
&
vect
:
o
->
belonging_cells
)
{
{
// CGoGNout<<" size vector :"<< vect.size() << CGoGNendl;
// CGoGNout<<" size vector :"<< vect.size() << CGoGNendl;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment