Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
DMDesign
Commits
0301302d
Commit
0301302d
authored
Oct 31, 2015
by
Amanda Ghassaei
Browse files
eod
parent
b0b5ccf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/cells/supercells/DMASuperCell.js
View file @
0301302d
...
...
@@ -195,10 +195,12 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'cell', 'mat
DMASuperCell
.
prototype
.
_loopCells
=
function
(
callback
){
var
cells
=
this
.
sparseCells
;
console
.
log
(
cells
);
if
(
!
cells
||
cells
===
undefined
)
return
;
for
(
var
x
=
0
;
x
<
cells
.
length
;
x
++
){
for
(
var
y
=
0
;
y
<
cells
[
0
].
length
;
y
++
){
for
(
var
z
=
0
;
z
<
cells
[
0
][
0
].
length
;
z
++
){
console
.
log
(
cells
[
x
][
y
][
z
]);
if
(
cells
[
x
][
y
][
z
])
callback
(
cells
[
x
][
y
][
z
],
x
,
y
,
z
,
this
);
}
}
...
...
js/lattice/LatticeBase.js
View file @
0301302d
...
...
@@ -154,6 +154,7 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
this
.
makeCellWithJSON
(
json
,
function
(
cell
){
var
flattenedCells
=
cell
.
getCells
();
console
.
log
(
flattenedCells
);
console
.
log
(
cell
);
var
bounds
=
cell
.
getAbsoluteBounds
();
...
...
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