Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View benptc's full-sized avatar

Ben Reynolds benptc

View GitHub Profile
@benptc
benptc / cube-current.html
Created June 28, 2021 18:05
Old (current) version of the cube three.js example running as a Spatial Toolbox tool.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THREE.js Cube</title>
<script src="objectDefaultFiles/object.js"></script>
<script src="objectDefaultFiles/gl-worker.js"></script>
</head>
<body>
<script type="module">
@benptc
benptc / cube-proposal.html
Last active June 28, 2021 18:20
First draft of a simplified API for three.js tools
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THREE.js Cube</title>
<script src="objectDefaultFiles/object.js"></script>
<script src="objectDefaultFiles/threejsInterface.js"></script>
<script src="objectDefaultFiles/gl-worker.js"></script>
</head>
<body>
@benptc
benptc / index-distance-to-tools.html
Last active March 31, 2020 16:28
Context-dependent Tools - Demo 3
<!-- Measure the distance between tools -->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="objectDefaultFiles/object.js"></script>
<script src="objectDefaultFiles/pep.min.js"></script>
<meta charset="UTF-8">
<title>contextDependent</title>
<style>
@benptc
benptc / index-detail-threshold.html
Last active March 31, 2020 16:27
Context-dependent Tools - Demo 2
<!-- Using distance as a threshold -->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="objectDefaultFiles/object.js"></script>
<script src="objectDefaultFiles/pep.min.js"></script>
<meta charset="UTF-8">
<title>randomColor</title>
<style>
@benptc
benptc / index-continuous-colors.html
Last active March 31, 2020 16:00
Context-dependent Tools - Demo 1
<!-- Adjust a continuous property based on distance -->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="objectDefaultFiles/object.js"></script>
<script src="objectDefaultFiles/pep.min.js"></script>
<meta charset="UTF-8">
<title>randomColor</title>
<style>