Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49,121 changes: 49,121 additions & 0 deletions build/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/bundle.js.map

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Project 6: Implicit Surfaces</title>
<style>
html, body {
margin: 0;
overflow: hidden;
}
canvas {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<script src="bundle.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/inspect_point.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class InspectPoint {
this.label.style.top = screenPos.y + 'px';
this.label.style.left = screenPos.x + 'px';
this.label.innerHTML = this.isovalue.toFixed(2);
this.label.style.opacity = this.isovalue - 0.5;
this.label.style.opacity = this.isovalue - 0.5;
}
};

Expand Down
12 changes: 6 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import Framework from './framework'
import LUT from './marching_cube_LUT.js'
import MarchingCubes from './marching_cubes.js'

const DEFAULT_VISUAL_DEBUG = true;
const DEFAULT_VISUAL_DEBUG = false;
const DEFAULT_ISO_LEVEL = 1.0;
const DEFAULT_GRID_RES = 4;
const DEFAULT_GRID_RES = 30; //4
const DEFAULT_GRID_WIDTH = 10;
const DEFAULT_NUM_METABALLS = 10;
const DEFAULT_MIN_RADIUS = 0.5;
const DEFAULT_MAX_RADIUS = 1;
const DEFAULT_MAX_SPEED = 0.01;
const DEFAULT_NUM_METABALLS = 5;
const DEFAULT_MIN_RADIUS = 1;
const DEFAULT_MAX_RADIUS = 1.5;
const DEFAULT_MAX_SPEED = 0.08; //0.01

var App = {
//
Expand Down
Loading