Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
a31bc901
Commit
a31bc901
authored
Feb 17, 2015
by
pitiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding part cell
parent
d69b68dc
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
727 additions
and
0 deletions
+727
-0
include/Algo/MovingObjects/particle_cell_3D_memo.h
include/Algo/MovingObjects/particle_cell_3D_memo.h
+73
-0
include/Algo/MovingObjects/particle_cell_3D_memo.hpp
include/Algo/MovingObjects/particle_cell_3D_memo.hpp
+654
-0
No files found.
include/Algo/MovingObjects/particle_cell_3D_memo.h
0 → 100644
View file @
a31bc901
#ifndef PARTCELL_3D_MEMO_H
#define PARTCELL_3D_MEMO_H
#include "Algo/MovingObjects/particle_cell_3D.h"
#include "Algo/Geometry/inclusion.h"
#include "Geometry/intersection.h"
#include "Geometry/orientation.h"
#include "Geometry/plane_3d.h"
#include <iostream>
/* A particle cell is a particle base within a map, within a precise cell, the displacement function should indicate
after each displacement wherein lies the new position of the particle */
namespace
CGoGN
{
namespace
Algo
{
namespace
Volume
{
namespace
MovingObjects
{
template
<
typename
PFP
>
class
ParticleCell3DMemo
:
public
Algo
::
Volume
::
MovingObjects
::
ParticleCell3D
<
PFP
>
{
public
:
typedef
typename
PFP
::
MAP
MAP
;
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
VertexAttribute
<
VEC3
,
MAP
>
TAB_POS
;
ParticleCell3DMemo
(
MAP
&
map
,
Dart
belonging_cell
,
VEC3
pos
,
const
TAB_POS
&
tabPos
)
:
ParticleCell3D
<
PFP
>
(
map
,
belonging_cell
,
pos
,
tabPos
)
{
}
virtual
~
ParticleCell3DMemo
()
{
}
void
vertexState
(
const
VEC3
&
current
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
);
void
edgeState
(
const
VEC3
&
current
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
);
void
faceState
(
const
VEC3
&
current
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
,
Geom
::
Orientation3D
sideOfFace
=
Geom
::
ON
);
void
volumeState
(
const
VEC3
&
current
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
);
void
volumeSpecialCase
(
const
VEC3
&
current
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
);
std
::
vector
<
Dart
>
move
(
const
VEC3
&
newCurrent
,
CellMarkerMemo
<
MAP
,
VOLUME
>&
memo_cross
);
std
::
vector
<
Dart
>
move
(
const
VEC3
&
newCurrent
);
};
}
// namespace MovingObjects
}
// namespace Surface
}
// namespace Algo
}
// namespace CGoGN
#include "Algo/MovingObjects/particle_cell_3D_memo.hpp"
#endif
include/Algo/MovingObjects/particle_cell_3D_memo.hpp
0 → 100644
View file @
a31bc901
This diff is collapsed.
Click to expand it.
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