Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
vEXP
Commits
164a1f02
Commit
164a1f02
authored
May 18, 2020
by
legoc
Browse files
Moved sphere position change in HKLLine
parent
ac4c054e
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/client/utils/shapes/hkl-line.js
View file @
164a1f02
...
...
@@ -45,10 +45,6 @@ class HKLLine extends TrajectoryLine {
* Update line position and delta spheres.
*/
updateLine
()
{
// First copy the start and end position if they changed.
this
.
_startSphere
.
position
.
copy
(
this
.
_start
.
clone
());
this
.
_endSphere
.
position
.
copy
(
this
.
_end
.
clone
());
// Define the iterator.
let
iterator
=
null
;
...
...
@@ -77,6 +73,10 @@ class HKLLine extends TrajectoryLine {
this
.
_deltaSphereGroup
.
remove
(
this
.
_deltaSphereGroup
.
children
[
i
]);
}
// Copy the start and end position if they changed.
this
.
_startSphere
.
position
.
copy
(
this
.
_start
.
clone
());
this
.
_endSphere
.
position
.
copy
(
this
.
_end
.
clone
());
// Define the previous point for the line segments.
let
previousPoint
=
null
;
...
...
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