Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mods
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
pub
mods
Commits
3555f19e
Commit
3555f19e
authored
6 years ago
by
Sean Hickey
Browse files
Options
Downloads
Patches
Plain Diff
Updated pot and profile modules
parent
9439447c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/hardware/pot
+11
-0
11 additions, 0 deletions
modules/hardware/pot
modules/hardware/profile
+1
-1
1 addition, 1 deletion
modules/hardware/profile
with
12 additions
and
1 deletion
modules/hardware/pot
+
11
−
0
View file @
3555f19e
...
...
@@ -141,6 +141,17 @@
// Construct an updated profile given the number of layers specified
// using linear interpolation
var geomPoints = [];
// Construct the base
var firstPt = mod.points[0];
var firstX = firstPt.x;
var numSprials = Math.floor((firstX * +(mod.widthInput.value)) / 3.0);
for ( var spiral = 0; spiral < numSprials; ++spiral) {
var spiralX = (3.0 * spiral) + 2.0;
geomPoints.push(new THREE.Vector2( spiralX, 0 ));
}
// Construct the rest of the layers
var layers = mod.layersInput.value;
for ( var i = 0; i < layers; ++i ) {
var scaledLayerIndex = (i / layers) * (mod.points.length - 1);
...
...
This diff is collapsed.
Click to expand it.
modules/hardware/profile
+
1
−
1
View file @
3555f19e
...
...
@@ -79,7 +79,7 @@
for (var i = 1; i < TOTAL_POINTS; ++i) {
points.push({
x: (400 * (i / TOTAL_POINTS)),
y: (600 * (i /
TOTAL_POINTS) * (i /
TOTAL_POINTS))
y: (600 * (i / TOTAL_POINTS))
})
}
...
...
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