Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam75782008/b3044a3a7ed5396c856ce831d5101493 to your computer and use it in GitHub Desktop.
Save sam75782008/b3044a3a7ed5396c856ce831d5101493 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript">
function sendPoints()
{
var ids = new Array ("x1", "y1", "z1", "x2", "y2", "z2", "x3", "y3", "z3", "x4", "y4", "z4");
var arg = ""; var entry = ""; var valid = true;
for (i in ids)
{
entry = document.getElementById(ids[i]).value
if ((entry.length==0)||isNaN(entry))
{
valid = false;
}
else {
arg = arg + entry + ",";
}
}
if (!valid)
{
arg = "";
}
window.location = 'skp:create_face@' + arg;
}
</script>
</head>
<body>
1st point:
<input type="text" id="x1" value="0.0" size="10" maxelength="6"/>
<input type="text" id="y1" value="0.0" size="10" maxelength="6"/>
<input type="text" id="z1" value="0.0" size="10" maxelength="6"/>
<br /><br />
2nd point:
<input type="text" id="x2" value="10.0" size="10" maxelength="6"/>
<input type="text" id="y2" value="0.0" size="10" maxelength="6"/>
<input type="text" id="z2" value="0.0" size="10" maxelength="6"/>
<br /><br />
3rd point:
<input type="text" id="x3" value="10.0" size="10" maxelength="6"/>
<input type="text" id="y3" value="10.0" size="10" maxelength="6"/>
<input type="text" id="z3" value="0.0" size="10" maxelength="6"/>
<br /><br />
4th point:
<input type="text" id="x4" value="0.0" size="10" maxelength="6"/>
<input type="text" id="y4" value="10.0" size="10" maxelength="6"/>
<input type="text" id="z4" value="0.0" size="10" maxelength="6"/>
<br /><br />
<input type="submit" onclick="sendPoints();" value="Create Face" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment