Skip to content

Commit 03fc27c

Browse files
committed
Add EzyCad
1 parent 44424c0 commit 03fc27c

File tree

5 files changed

+133
-2
lines changed

5 files changed

+133
-2
lines changed

EzyCad/EzyCad.data

265 KB
Binary file not shown.

EzyCad/EzyCad.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!doctype html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
6+
<title>EzyCad</title>
7+
<style>
8+
body { margin: 0; background-color: black }
9+
.emscripten {
10+
position: absolute;
11+
top: 0px;
12+
left: 0px;
13+
margin: 0px;
14+
border: 0;
15+
width: 100%;
16+
height: 100%;
17+
overflow: hidden;
18+
display: block;
19+
image-rendering: optimizeSpeed;
20+
image-rendering: -moz-crisp-edges;
21+
image-rendering: -o-crisp-edges;
22+
image-rendering: -webkit-optimize-contrast;
23+
image-rendering: optimize-contrast;
24+
image-rendering: crisp-edges;
25+
image-rendering: pixelated;
26+
-ms-interpolation-mode: nearest-neighbor;
27+
}
28+
</style>
29+
</head>
30+
<body>
31+
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
32+
<script type='text/javascript'>
33+
var Module = {
34+
preRun: [],
35+
postRun: [],
36+
print: (function() {
37+
return function(text) {
38+
text = Array.prototype.slice.call(arguments).join(' ');
39+
console.log(text);
40+
};
41+
})(),
42+
printErr: function(text) {
43+
text = Array.prototype.slice.call(arguments).join(' ');
44+
console.error(text);
45+
},
46+
47+
canvas: (function() {
48+
var canvas = document.getElementById('canvas');
49+
//canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false);
50+
51+
return canvas;
52+
})(),
53+
setStatus: function(text) {
54+
console.log("status: " + text);
55+
},
56+
monitorRunDependencies: function(left) {
57+
// no run dependencies to log
58+
}
59+
};
60+
window.onerror = function() {
61+
console.log("onerror: " + event);
62+
};
63+
</script>
64+
<script type="text/javascript" src="EzyCad.js" charset="utf-8"></script>
65+
</body>
66+
</html>

EzyCad/EzyCad.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EzyCad/EzyCad.wasm

18.6 MB
Binary file not shown.

index.html

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,71 @@
11
<!doctype html>
22
<html lang="en-us">
3-
<head></head>
3+
<head>
4+
<title>Trailcode's Projects</title>
5+
<meta charset="UTF-8">
6+
<meta name="description" content="Zombie GeoSim: A WebAssembly-powered geospatial simulation.">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<style>
9+
.cool-button {
10+
display: inline-block;
11+
padding: 0.75em 2em;
12+
margin: 0.5em 0;
13+
font-size: 1.1em;
14+
font-weight: bold;
15+
color: #fff;
16+
background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
17+
border: none;
18+
border-radius: 30px;
19+
box-shadow: 0 4px 14px 0 rgba(0,118,255,0.15);
20+
text-decoration: none;
21+
transition: background 0.3s, transform 0.2s;
22+
cursor: pointer;
23+
}
24+
.cool-button:hover, .cool-button:focus {
25+
background: linear-gradient(90deg, #005bea 0%, #3ec6e0 100%);
26+
transform: translateY(-2px) scale(1.04);
27+
box-shadow: 0 6px 20px 0 rgba(0,118,255,0.25);
28+
outline: none;
29+
}
30+
</style>
31+
</head>
432
<body>
5-
<a href="https://trailcode.github.io/ZombiGeoSim/index.html">Zombi GeoSim</a>
33+
<hr />
34+
<h1>EzyCad</h1>
35+
<p>
36+
<strong>EzyCad</strong> is a modern CAD (Computer-Aided Design) application designed for creating and manipulating 2D and 3D models. It leverages OpenGL, ImGui, and Open CASCADE Technology (OCCT) to provide a robust and interactive user interface for CAD operations.
37+
<br /><br />
38+
<a href="EzyCad/EzyCad.html" class="cool-button">Launch EzyCad</a>
39+
<br /><br />
40+
<a href="https://github.com/trailcode/EzyCad" target="_blank">View EzyCad on GitHub</a>
41+
</p>
42+
<hr />
43+
<h1>Zombi GeoSim</h1>
44+
<p>
45+
<strong>Zombi GeoSim</strong> is a geospatial simulation tool powered by WebAssembly. It allows users to explore and simulate various geospatial scenarios directly in the browser for high performance and interactivity.
46+
</p>
47+
<p>
48+
<a href="https://www.youtube.com/watch?v=s0unMIQUs1U" target="_blank">
49+
<img src="https://img.youtube.com/vi/s0unMIQUs1U/0.jpg" alt="YouTube video of current native development version" style="max-width:100%;height:auto;border:1px solid #ccc;" />
50+
</a>
51+
<br />
52+
<small>YouTube video of current native development version.</small>
53+
</p>
54+
<h2>How to Use</h2>
55+
<ol>
56+
<li>Click the link below to launch the Zombi GeoSim application.</li>
57+
<li><strong>Be patient and allow the application time to load.</strong></li>
58+
<li>Mouse scroll <strong>zooms in and out</strong>.</li>
59+
<li>Hold down the <strong>"alt"</strong> key and move the mouse to <strong>pan</strong> the view.</li>
60+
<li>Hold down the <strong>"shift"</strong> key and move the mouse to <strong>rotate the camera</strong>.</li>
61+
<li>Use the available tools to modify parameters, visualize data, and run simulations in real-time.</li>
62+
<li>
63+
For more advanced usage, refer to the
64+
<a href="https://github.com/trailcode/webAsmPlay/blob/master/readme.md" target="_blank">webAsmPlay documentation</a>.
65+
</li>
66+
</ol>
67+
<p>
68+
<a href="https://trailcode.github.io/ZombiGeoSim/index.html" class="cool-button">Launch Zombi GeoSim</a>
69+
</p>
670
</body>
771
</html>

0 commit comments

Comments
 (0)