Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DMDesign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amanda Ghassaei
DMDesign
Commits
94f50742
Commit
94f50742
authored
10 years ago
by
Amanda Ghassaei
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
703b831d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/menus/OptimizationMenuView.js
+1
-1
1 addition, 1 deletion
js/menus/OptimizationMenuView.js
js/models/ThreeModel.js
+4
-7
4 additions, 7 deletions
js/models/ThreeModel.js
with
5 additions
and
8 deletions
js/menus/OptimizationMenuView.js
+
1
−
1
View file @
94f50742
...
...
@@ -26,7 +26,7 @@ OptimizationMenuView = Backbone.View.extend({
<br/><br/>
\
optimization parameters representation may depend on application: <a href="http://en.wikipedia.org/wiki/Evolved_antenna">antenna</a>, <a href="http://2.bp.blogspot.com/-4o29mAWZjag/UURyXoraMKI/AAAAAAAAHyM/HnevUeJ68Sw/s400/yyy.bmp">nike</a>, airbus, assembler/declarative design
\
<br/><br/>
\
active components/structures: <a href="https://www.youtube.com/watch?v=z9ptOeByLA4">voxcad</a>, <a href="http://arxiv.org/pdf/cs/0004003v2.pdf">conway</a>
\
active components/structures: <a href="https://www.youtube.com/watch?v=z9ptOeByLA4">voxcad</a>, <a href="http://arxiv.org/pdf/cs/0004003v2.pdf">conway</a>
(<a href="http://www.instructables.com/id/OTCA-Metapixel-Conways-Game-of-Life/">instructable</a>)
\
<br/><br/>
\
'
)
...
...
This diff is collapsed.
Click to expand it.
js/models/ThreeModel.js
+
4
−
7
View file @
94f50742
...
...
@@ -11,7 +11,6 @@ function ThreeModel(){
//store all meshes to highlight
var
cells
=
[];
var
highlightableCells
=
[];
//may be able to get rid of this eventually
var
invCells
=
[];
var
parts
=
[];
var
basePlane
=
[];
...
...
@@ -55,8 +54,7 @@ function ThreeModel(){
scene
.
add
(
object
);
if
(
type
==
"
cell
"
){
cells
.
push
(
object
);
highlightableCells
.
push
(
object
.
children
[
0
]);
cells
.
push
(
object
.
children
[
0
]);
}
else
if
(
type
==
"
inverseCell
"
){
invCells
.
push
(
object
);
}
else
if
(
type
==
"
part
"
){
...
...
@@ -74,8 +72,7 @@ function ThreeModel(){
}
if
(
type
==
"
cell
"
){
cells
.
splice
(
cells
.
indexOf
(
objectToRemove
),
1
);
highlightableCells
.
splice
(
highlightableCells
.
indexOf
(
objectToRemove
.
children
[
0
]),
1
);
cells
.
splice
(
cells
.
indexOf
(
objectToRemove
.
children
[
0
]),
1
);
}
else
if
(
type
==
"
inverseCell
"
){
invCells
.
splice
(
invCells
.
indexOf
(
objectToRemove
),
1
);
}
else
if
(
type
==
"
part
"
){
...
...
@@ -96,7 +93,7 @@ function ThreeModel(){
_
.
each
(
invCells
,
function
(
cell
){
sceneRemove
(
cell
,
"
inverseCell
"
);
});
cells
.
splice
(
0
,
cells
.
length
);
;
cells
.
splice
(
0
,
cells
.
length
);
parts
.
splice
(
0
,
parts
.
length
);
}
...
...
@@ -111,7 +108,7 @@ function ThreeModel(){
// scene: scene,
domElement
:
renderer
.
domElement
,
camera
:
camera
,
cells
:
highlightableC
ells
,
cells
:
c
ells
,
invCells
:
invCells
,
parts
:
parts
,
basePlane
:
basePlane
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment