77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
// uncomment when you want to prove must throw error actually does something
// mustThrowError(function(){ }, "check mustthrowerror works. have it do nothing.");
</script>
</head>
<body>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
// uncomment when you want to prove must throw error actually does something
// mustThrowError(function(){ }, "check mustthrowerror works. have it do nothing.");
window.onload = function(){
var canvas = document.createElement("canvas");
canvas.width = 500;
canvas.height = 500;
document.body.appendChild(canvas);
var ctx = canvas.getContext("2d");
var model = new WireframeModel();
model.addPoint([0, 0, 0]);
model.addPoint([0, .1, 0]);
model.addPoint([0, 0, .1]);
model.addPoint([-.1, .1, 0]);
model.addPoint([-.1, 0, .1]);
model.draw(canvas);
}
</script>
</head>
<body>
|