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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
58dd1c2f
Commit
58dd1c2f
authored
Oct 25, 2012
by
David Cazier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isFinite() sur les vector
parent
2f40b778
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
include/Algo/MovingObjects/particle_base.h
include/Algo/MovingObjects/particle_base.h
+1
-1
include/Algo/MovingObjects/particle_cell_2D.hpp
include/Algo/MovingObjects/particle_cell_2D.hpp
+4
-4
include/Algo/MovingObjects/particle_cell_2D_memo.hpp
include/Algo/MovingObjects/particle_cell_2D_memo.hpp
+1
-0
include/Geometry/vector_gen.h
include/Geometry/vector_gen.h
+1
-1
include/Geometry/vector_gen.hpp
include/Geometry/vector_gen.hpp
+2
-2
No files found.
include/Algo/MovingObjects/particle_base.h
View file @
58dd1c2f
...
...
@@ -43,7 +43,7 @@ public:
return
true
;
}
const
typename
PFP
::
VEC3
&
getPosition
()
const
typename
PFP
::
VEC3
&
getPosition
()
const
{
return
m_position
;
}
...
...
include/Algo/MovingObjects/particle_cell_2D.hpp
View file @
58dd1c2f
...
...
@@ -61,7 +61,7 @@ void ParticleCell2D<PFP>::vertexState(const VEC3& goal)
#ifdef DEBUG
CGoGNout
<<
"vertexState"
<<
d
<<
CGoGNendl
;
#endif
assert
(
goal
.
is
Normal
())
;
assert
(
goal
.
is
Finite
())
;
crossCell
=
CROSS_OTHER
;
...
...
@@ -132,7 +132,7 @@ void ParticleCell2D<PFP>::edgeState(const VEC3& goal, Geom::Orientation2D sideOf
CGoGNout
<<
"edgeState"
<<
d
<<
CGoGNendl
;
#endif
assert
(
goal
.
is
Normal
())
;
assert
(
goal
.
is
Finite
())
;
// assert(Algo::Geometry::isPointOnEdge<PFP>(m,d,m_positions,m_position));
if
(
crossCell
==
NO_CROSS
)
...
...
@@ -262,8 +262,8 @@ void ParticleCell2D<PFP>::faceState(const VEC3& goal)
CGoGNout
<<
"faceState"
<<
d
<<
CGoGNendl
;
#endif
assert
(
this
->
getPosition
().
is
Normal
());
assert
(
goal
.
is
Normal
())
;
assert
(
this
->
getPosition
().
is
Finite
());
assert
(
goal
.
is
Finite
())
;
// assert(Algo::Geometry::isPointInConvexFace2D<PFP>(m,d,m_positions,m_position,true));
Dart
dd
=
d
;
...
...
include/Algo/MovingObjects/particle_cell_2D_memo.hpp
View file @
58dd1c2f
...
...
@@ -134,6 +134,7 @@ void ParticleCell2DMemo<PFP>::edgeState(const VEC3& current, Geom::Orientation2D
return
;
default
:
this
->
setState
(
EDGE
)
;
break
;
}
if
(
!
Algo
::
Geometry
::
isPointOnHalfEdge
<
PFP
...
...
include/Geometry/vector_gen.h
View file @
58dd1c2f
...
...
@@ -143,7 +143,7 @@ public:
bool
hasNan
()
const
;
bool
is
Normal
()
const
;
bool
is
Finite
()
const
;
/**
* Tests if the vector is normalized
...
...
include/Geometry/vector_gen.hpp
View file @
58dd1c2f
...
...
@@ -301,10 +301,10 @@ inline bool Vector<DIM, T>::hasNan() const
}
template
<
unsigned
int
DIM
,
typename
T
>
inline
bool
Vector
<
DIM
,
T
>::
is
Normal
()
const
inline
bool
Vector
<
DIM
,
T
>::
is
Finite
()
const
{
for
(
unsigned
int
i
=
0
;
i
<
DIM
;
++
i
)
if
(
!
std
::
is
normal
(
m_data
[
i
]))
return
false
;
if
(
!
std
::
is
finite
(
m_data
[
i
]))
return
false
;
return
true
;
}
...
...
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