-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
514 lines (397 loc) · 13.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>cqparts: pythonic CAD</title>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<!-- code syntax highlighting -->
<link rel="stylesheet" href="/static/css/highlight.js/idea.css" />
<script type="text/javascript" src="/static/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- Bulma Version 0.7.2-->
<link rel="stylesheet" href="/static/css/bulma.css" />
<link rel="stylesheet" href="/static/css/landing.css" />
<link rel="stylesheet" href="/static/css/materialdesignicons.min.css" />
<!-- <link href="https://unpkg.com/[email protected]/css/bulma.min.css" rel="stylesheet"> -->
<script async type="text/javascript" src="/static/js/bulma.js"></script>
<link rel="stylesheet" href="/static/css/logo.css" />
</head>
<body>
<!-- Navigation bar -->
<nav class="navbar is-link is-fixed-top">
<div class="navbar-brand">
<a class="navbar-item" href="#home">
<span class="cq-logo">cq</span><span class="cq-logo-plugin cqparts">parts</span>
</a>
<div class="navbar-burger burger" data-target="navbarExampleTransparentExample">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div id="navbarExampleTransparentExample" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="#about">
<span class="icon"><i class="mdi mdi-information-outline"></i></span>
<span>About</span>
</a>
<a class="navbar-item" href="#examples">
<span class="icon"><i class="mdi mdi-file-document"></i></span>
<span>Examples</span>
</a>
<a class="navbar-item" href="#install">
<span class="icon"><i class="mdi mdi-cloud-download"></i></span>
<span>Install</span>
</a>
<a class="navbar-item" href="#documentation">
<span class="icon"><i class="mdi mdi-file-document-box"></i></span>
<span>Docs</span>
</a>
<a class="navbar-item" href="#license">
<span class="icon"><i class="mdi mdi-clipboard-outline"></i></span>
<span>License</span>
</a>
<a class="navbar-item" href="#develop">
<span class="icon"><i class="mdi mdi-github-box"></i></span>
<span>Dev</span>
</a>
<a class="navbar-item" href="#webapi">
<span class="icon"><i class="mdi mdi-cloud-print-outline"></i></span>
<span>WebAPI</span>
</a>
</div>
</div>
</nav>
<!-- Header -->
<section class="hero is-link is-fullheight is-fullheight-with-navbar" id="home">
<div class="hero-body">
<div class="container">
<img src="/static/media/dark.svg" alt="cqparts"></img>
<h2 class="subtitle is-3">
Build tangible programmatic designs in python.
</h2>
</div>
</div>
</section>
<!-- about-->
<section class="section " id="about">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-information-outline"></i></span>
About
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
<h3 class="subtitle is-3">What is <code>cqparts</code>?</h3>
<div class="section">
<p><code>cqparts</code> is CAD for Python programmers, short for <a target="_blank" href="https://github.com/cadquery/cadquery"><code>cadquery</code></a> parts.</p>
<p>Using <code>cqparts</code> you can wrap geometry made with cadquery to build complex and deeply parametric models.</p>
</div>
<h3 class="subtitle is-3">What can it do?</h3>
<div class="section">
<p>You can build solid geometry in the same way you write an application; your geometry can be <i>built</i> on a headless system, automated, and revision controlled to your hearts content.</p>
<p>You can also export your models ready to be processed for 3D printing, milling, or to be displayed / imported to another application.</p>
</div>
</div>
</section>
<!-- examples-->
<section class="section " id="examples">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-file-document"></i></span>
Examples
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
<h3 class="subtitle is-3">A Cube</h3>
<div class="section">
<p>The "Hello World" of 3D geometry:</p>
<pre><code class="python">
import cadquery
import cqparts
from cqparts.params import PositiveFloat
class Cube(cqparts.Part):
size = PositiveFloat(1, doc="length along one side")
def make(self):
return cadquery.Workplane('XY').box(
self.size, self.size, self.size,
centered=(True, True, False),
)
# Create an instance
my_cube = Cube(size=10) # changed size to 10
# Dispaly it
from cqparts.display import display
display(my_cube)
</code></pre>
<p>The cqparts <a href="#documentation">documentation</a> has a much more
comprehensive set of simple examples to get you started.</p>
</div>
<h3 class="subtitle is-3">Parts Library</h3>
<div class="section">
<p>All the models below are python programs just like the cube above.</p>
<p>They have the full power of Python and any imported libraries to use when building the geometry.</p>
<p>Select any of the following examples for a 3D render of the object, and links to their source code.</p>
<hr/>
<div class="columns ">
<div class="column is-one-quarter">
<a href="/examples/export/showcase/Electronics">
<div class="box">
Electronics
<figure class="image">
<a href="/examples/export/showcase/Electronics">
<img src="/img/Electronics.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/FlipBox">
<div class="box">
FlipBox
<figure class="image">
<a href="/examples/export/showcase/FlipBox">
<img src="/img/FlipBox.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/CompleteFlux">
<div class="box">
CompleteFlux
<figure class="image">
<a href="/examples/export/showcase/CompleteFlux">
<img src="/img/CompleteFlux.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/MercanumWheel">
<div class="box">
MercanumWheel
<figure class="image">
<a href="/examples/export/showcase/MercanumWheel">
<img src="/img/MercanumWheel.png">
</a>
</figure>
</div>
</a>
</div>
</div>
<div class="columns ">
<div class="column is-one-quarter">
<a href="/examples/export/showcase/Mill">
<div class="box">
Mill
<figure class="image">
<a href="/examples/export/showcase/Mill">
<img src="/img/Mill.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/PizeroBoard">
<div class="box">
PizeroBoard
<figure class="image">
<a href="/examples/export/showcase/PizeroBoard">
<img src="/img/PizeroBoard.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/ProjectBox">
<div class="box">
ProjectBox
<figure class="image">
<a href="/examples/export/showcase/ProjectBox">
<img src="/img/ProjectBox.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/Rover">
<div class="box">
Rover
<figure class="image">
<a href="/examples/export/showcase/Rover">
<img src="/img/Rover.png">
</a>
</figure>
</div>
</a>
</div>
</div>
<div class="columns ">
<div class="column is-one-quarter">
<a href="/examples/export/showcase/TurbineAssembly">
<div class="box">
TurbineAssembly
<figure class="image">
<a href="/examples/export/showcase/TurbineAssembly">
<img src="/img/TurbineAssembly.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/DiscDrive">
<div class="box">
DiscDrive
<figure class="image">
<a href="/examples/export/showcase/DiscDrive">
<img src="/img/DiscDrive.png">
</a>
</figure>
</div>
</a>
</div>
<div class="column is-one-quarter">
<a href="/examples/export/showcase/TurnTable">
<div class="box">
TurnTable
<figure class="image">
<a href="/examples/export/showcase/TurnTable">
<img src="/img/TurnTable.png">
</a>
</figure>
</div>
</a>
</div>
</div>
<a class="button is-link" href="/examples">Everything Else</a>
<h3 class="subtitle is-3">Real World</h3>
<div class="section">
<div class="columns">
<div class="column is-one-quarter">
<a href="https://github.com/gnhdesign/ct1">
<div class="box">
Coffee Table
<figure class="image">
<img src="/static/media/ct1.jpg">
</figure>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- install-->
<section class="section " id="install">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-cloud-download"></i></span>
Install
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
<h3 class="subtitle is-3">Pre-requisites</h3>
<div class="section">
<strong><code>cadquery</code></strong>
<div class="section">
<pre><code class="bash">python -m pip install cadquery</code></pre>
For more detailed instructions, visit the <a href="http://dcowden.github.io/cadquery/installation.html">cadquery documentation</a>.
</div>
</div>
<h3 class="subtitle is-3">PyPI</h3>
<div class="section">
<pre><code class="bash">python -m pip install cqparts</code></pre>
</div>
</div>
</section>
<!-- documentation-->
<section class="section " id="documentation">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-file-document-box"></i></span>
Documentation
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
<a target="_blank" href="https://cqparts.github.io/cqparts/"><code>cqparts</code> Documentation</a>
<br>
<a target="_blank" href="http://dcowden.github.io/cadquery/"><code>cadquery</code> Documentation</a>
</div>
</section>
<!-- license-->
<section class="section " id="license">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-clipboard-outline"></i></span>
License
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
<h3 class="subtitle is-3">Apache License 2.0</h3>
<div class="section">
<p>"<i>A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.</i>"</p>
</div>
<div class="section">
<p>Please see the <a href="https://github.com/cqparts/cqparts/blob/master/LICENSE"><code>LICENSE</code></a> file distributed with cqparts for the full license agreement.</p>
</div>
</div>
</section>
<!-- develop-->
<section class="section " id="develop">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-github-box"></i></span>
Development
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
dev instructions here
</div>
</section>
<!-- webapi-->
<section class="section " id="webapi">
<!-- Title -->
<div class="section-heading">
<h3 class="title is-2">
<span class="icon"><i class="mdi mdi-cloud-print-outline"></i></span>
WebAPI
</h3>
<h4 class="subtitle is-6"></h4>
</div>
<div class="container">
The cool thing about the cqparts_webapi is that it built this website.
</div>
</section>
<hr>
<!-- Footer -->
<footer class="footer">
<div class="section-heading">
<p>
<strong>CQparts</strong> <a target="_blank" href="https://github.com/cqparts/cqparts">Github</a>
</p>
</div>
</footer>
</body>
</html>