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
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
David Cazier
CGoGN
Commits
8021f98c
Commit
8021f98c
authored
Sep 13, 2013
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selection follows map frame
parent
e6b9e147
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
SCHNApps/Plugins/surface_selection/src/surface_selection.cpp
SCHNApps/Plugins/surface_selection/src/surface_selection.cpp
+10
-4
No files found.
SCHNApps/Plugins/surface_selection/src/surface_selection.cpp
View file @
8021f98c
...
@@ -132,8 +132,11 @@ void Surface_Selection_Plugin::mousePress(View* view, QMouseEvent* event)
...
@@ -132,8 +132,11 @@ void Surface_Selection_Plugin::mousePress(View* view, QMouseEvent* event)
qglviewer
::
Vec
dir
;
qglviewer
::
Vec
dir
;
view
->
camera
()
->
convertClickToLine
(
pixel
,
orig
,
dir
);
view
->
camera
()
->
convertClickToLine
(
pixel
,
orig
,
dir
);
PFP2
::
VEC3
rayA
(
orig
.
x
,
orig
.
y
,
orig
.
z
);
qglviewer
::
Vec
orig_inv
=
mh
->
getFrame
()
->
coordinatesOf
(
orig
);
PFP2
::
VEC3
AB
(
dir
.
x
,
dir
.
y
,
dir
.
z
);
qglviewer
::
Vec
dir_inv
=
mh
->
getFrame
()
->
transformOf
(
dir
);
PFP2
::
VEC3
rayA
(
orig_inv
.
x
,
orig_inv
.
y
,
orig_inv
.
z
);
PFP2
::
VEC3
AB
(
dir_inv
.
x
,
dir_inv
.
y
,
dir_inv
.
z
);
Dart
d
;
Dart
d
;
PFP2
::
MAP
*
map
=
static_cast
<
MapHandler
<
PFP2
>*>
(
mh
)
->
getMap
();
PFP2
::
MAP
*
map
=
static_cast
<
MapHandler
<
PFP2
>*>
(
mh
)
->
getMap
();
...
@@ -182,8 +185,11 @@ void Surface_Selection_Plugin::mouseMove(View* view, QMouseEvent* event)
...
@@ -182,8 +185,11 @@ void Surface_Selection_Plugin::mouseMove(View* view, QMouseEvent* event)
qglviewer
::
Vec
dir
;
qglviewer
::
Vec
dir
;
view
->
camera
()
->
convertClickToLine
(
pixel
,
orig
,
dir
);
view
->
camera
()
->
convertClickToLine
(
pixel
,
orig
,
dir
);
PFP2
::
VEC3
rayA
(
orig
.
x
,
orig
.
y
,
orig
.
z
);
qglviewer
::
Vec
orig_inv
=
mh
->
getFrame
()
->
coordinatesOf
(
orig
);
PFP2
::
VEC3
AB
(
dir
.
x
,
dir
.
y
,
dir
.
z
);
qglviewer
::
Vec
dir_inv
=
mh
->
getFrame
()
->
transformOf
(
dir
);
PFP2
::
VEC3
rayA
(
orig_inv
.
x
,
orig_inv
.
y
,
orig_inv
.
z
);
PFP2
::
VEC3
AB
(
dir_inv
.
x
,
dir_inv
.
y
,
dir_inv
.
z
);
Dart
d
;
Dart
d
;
PFP2
::
MAP
*
map
=
static_cast
<
MapHandler
<
PFP2
>*>
(
mh
)
->
getMap
();
PFP2
::
MAP
*
map
=
static_cast
<
MapHandler
<
PFP2
>*>
(
mh
)
->
getMap
();
...
...
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