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
ae8b21b5
Commit
ae8b21b5
authored
Jul 17, 2014
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes in inclusion.hpp
parent
fc493e8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
SCHNApps/CMakeLists.txt
SCHNApps/CMakeLists.txt
+4
-1
include/Algo/Geometry/inclusion.hpp
include/Algo/Geometry/inclusion.hpp
+3
-3
No files found.
SCHNApps/CMakeLists.txt
View file @
ae8b21b5
...
...
@@ -148,7 +148,7 @@ SET(SCHNApps_QOBJECT_FILES
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/
${
CMAKE_BUILD_TYPE
}
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/
${
CMAKE_BUILD_TYPE
}
)
INCLUDE_DIRECTORIES
(
...
...
@@ -186,3 +186,6 @@ TARGET_LINK_LIBRARIES( SCHNApps
ADD_SUBDIRECTORY
(
${
SCHNApps_ROOT_DIR
}
/Plugins Plugins
)
IF
(
IS_DIRECTORY
${
SCHNApps_ROOT_DIR
}
/../../Plugins
)
ADD_SUBDIRECTORY
(
${
SCHNApps_ROOT_DIR
}
/../../Plugins ExtPlugins
)
ENDIF
(
IS_DIRECTORY
${
SCHNApps_ROOT_DIR
}
/../../Plugins
)
include/Algo/Geometry/inclusion.hpp
View file @
ae8b21b5
...
...
@@ -180,7 +180,7 @@ bool isPointInConvexFace(typename PFP::MAP& map, Face f, const VertexAttribute<t
if
(
o3d
==
Geom
::
ON
)
{
Traversor2FV
<
typename
PFP
::
MAP
>
tfv
(
map
,
f
)
;
for
(
Vertex
v
=
tfv
.
begin
();
v
!=
tfv
.
end
();
v
=
tfv
.
next
())
for
(
Vertex
v
=
tfv
.
begin
();
v
.
dart
!=
tfv
.
end
();
v
=
tfv
.
next
())
{
VEC3
N
=
pl
.
normal
();
VEC3
v2
(
position
[
map
.
phi1
(
v
.
dart
)]
-
position
[
v
]);
...
...
@@ -212,7 +212,7 @@ bool isPointInConvexFace2D(typename PFP::MAP& map, Face f, const VertexAttribute
Geom
::
Orientation2D
o2d
;
Traversor2FV
<
typename
PFP
::
MAP
>
tfv
(
map
,
f
)
;
for
(
Vertex
v
=
tfv
.
begin
();
v
!=
tfv
.
end
();
v
=
tfv
.
next
())
for
(
Vertex
v
=
tfv
.
begin
();
v
.
dart
!=
tfv
.
end
();
v
=
tfv
.
next
())
{
o2d
=
Geom
::
testOrientation2D
(
point
,
position
[
v
],
position
[
map
.
phi1
(
v
.
dart
)]);
if
(
CCW
)
...
...
@@ -284,7 +284,7 @@ bool isConvexFaceInOrIntersectingTetrahedron(typename PFP::MAP& map, Face f, con
typedef
typename
PFP
::
VEC3
VEC3
;
Traversor2FV
<
typename
PFP
::
MAP
>
tfv
(
map
,
f
)
;
for
(
Vertex
v
=
tfv
.
begin
();
v
!=
tfv
.
end
();
v
=
tfv
.
next
())
for
(
Vertex
v
=
tfv
.
begin
();
v
.
dart
!=
tfv
.
end
();
v
=
tfv
.
next
())
{
if
(
Geom
::
isPointInTetrahedron
(
points
,
position
[
v
],
CCW
))
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