omdl  v0.6.1
OpenSCAD Mechanical Design Library
anti_prisms.scad
Go to the documentation of this file.
1 //! Table of polyhedra data group: \c anti_prisms
2 /***************************************************************************//**
3  \file anti_prisms.scad
4  \author Roy Allen Sutton
5  \date 2017
6 
7  \copyright
8 
9  This file is part of [omdl] (https://github.com/royasutton/omdl),
10  an OpenSCAD mechanical design library.
11 
12  The \em omdl is free software; you can redistribute it and/or modify
13  it under the terms of the [GNU Lesser General Public License]
14  (http://www.gnu.org/licenses/lgpl.html) as published by the Free
15  Software Foundation; either version 2.1 of the License, or (at
16  your option) any later version.
17 
18  The \em omdl is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  Lesser General Public License for more details.
22 
23  You should have received a copy of the GNU Lesser General Public
24  License along with the \em omdl; if not, write to the Free Software
25  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26  02110-1301, USA; or see <http://www.gnu.org/licenses/>.
27 
28  \details
29 
30  This [omdl] formatted data table has been assembled using a script
31  that converts the polyhedra data obtained from [Anthony Thyssen]'s
32  [Studies into Polyhedra]. The vertices are tabulated in both their
33  original Cartesian as well as their converted spherical coordinate
34  form, which is convenient when scaling. The data originates from
35  one of three sources:
36 
37  \li [Exact Mathematics] as presented by [Anthony Thyssen],
38  \li the [Polyhedron Database] maintained by [Netlib], and
39  \li an [Encyclopedia of Polyhedra] by [George W. Hart].
40 
41  \note Include this library file using the \b include statement.
42 
43  [omdl]: https://github.com/royasutton/omdl
44 
45  [Anthony Thyssen]: http://www.ict.griffith.edu.au/anthony/anthony.html
46  [Studies into Polyhedra]: http://www.ict.griffith.edu.au/anthony/graphics/polyhedra
47  [Exact Mathematics]: http://www.ict.griffith.edu.au/anthony/graphics/polyhedra/maths.shtml
48 
49  [George W. Hart]: http://www.georgehart.com
50  [Encyclopedia of Polyhedra]: http://www.georgehart.com/virtual-polyhedra/vp.html
51 
52  [Netlib]: http://www.netlib.org
53  [Polyhedron Database]: http://www.netlib.org/polyhedra
54 
55  \ingroup database_polyhedra
56 *******************************************************************************/
57 
58 //----------------------------------------------------------------------------//
59 /***************************************************************************//**
60  \addtogroup database_polyhedra
61  @{
62  <br>
63  ### Group: anti_prisms ###
64 
65  \amu_define caption (anti_prisms)
66  \amu_make png_files (append=db_dim extension=png)
67  \amu_make stl_files (append=db_dim extension=stl)
68 
69  \amu_shell file_cnt ("echo ${png_files} | wc -w")
70  \amu_shell cell_num ("seq -f '(%g)' -s '^' ${file_cnt}")
71 
72  \amu_shell html_cell_titles
73  (
74  "echo ${stl_files} | grep -Po 'db_dim_\K[^.]*' | tr '\n' '^'"
75  )
76 
77  \htmlonly
78  \amu_image_table
79  (
80  type=html columns=4 image_width="200" cell_files="${png_files}"
81  table_caption="${caption}" cell_captions="${cell_num}"
82  cell_titles="${html_cell_titles}" cell_urls="${stl_files}"
83  )
84  \endhtmlonly
85 
86  \amu_define caption (anti\_prisms)
87  \amu_make eps_files (append=db_dim extension=png2eps)
88 
89  \latexonly
90  \amu_image_table
91  (
92  type=latex columns=4 image_width="1.25in" cell_files="${eps_files}"
93  table_caption="${caption}" cell_captions="${cell_num}"
94  )
95  \endlatexonly
96 
97  \amu_shell data
98  (
99  "grep -Po 'ECHO: \"\K[^\"]*' build/csg/anti_prisms_db_autostat.log" --rmnl
100  )
101  \amu_shell columns ("echo '${data}' | awk -F '^' 'NR==1 {print NF;exit}'")
102  \amu_shell heading ("echo '${data}' | awk -F '^' 'NR==1 {print;exit}'")
103  \amu_shell texts ("echo '${data}' | awk -F '^' 'NR>1 {print}'")
104 
105  \amu_table
106  (
107  columns=${columns} column_headings="${heading}" cell_texts="${texts}"
108  )
109 *******************************************************************************/
110 //----------------------------------------------------------------------------//
111 
112 //! <matrix-2x9> \c anti_prisms polyhedra data table columns definition.
113 //! \hideinitializer
115 [
116  ["id", "identifier"],
117  ["n", "name"],
118  ["o", "other name"],
119  ["g", "group"],
120  ["d", "data source"],
121  ["c", "cartesian vertices"],
122  ["s", "spherical vertices"],
123  ["f", "faces"],
124  ["e", "edges"]
125 ];
126 
127 //! <matrix-9xR> \c anti_prisms polyhedra data table rows.
128 //! \hideinitializer
130 [
131  [
132  "decagonal_antiprism",
133  "Decagonal Antiprism",
134  empty_str,
135  "anti_prisms",
136  "Polyhedron Database #31",
137  [
138  [-0.96627614511, 0.25750808025, 0.00000000000],
139  [-0.91898322435, -0.25750808025, 0.29859575010],
140  [-0.91898322435, -0.25750808025, -0.29859575010],
141  [-0.78173382265, 0.25750808025, 0.56796286774],
142  [-0.78173382265, 0.25750808025, -0.56796286774],
143  [-0.56796286774, -0.25750808025, 0.78173382265],
144  [-0.56796286774, -0.25750808025, -0.78173382265],
145  [-0.29859575010, 0.25750808025, 0.91898322435],
146  [-0.29859575010, 0.25750808025, -0.91898322435],
147  [ 0.00000000000, -0.25750808025, 0.96627614511],
148  [-0.00000000000, -0.25750808025, -0.96627614511],
149  [ 0.29859575010, 0.25750808025, 0.91898322435],
150  [ 0.29859575010, 0.25750808025, -0.91898322435],
151  [ 0.56796286774, -0.25750808025, 0.78173382265],
152  [ 0.56796286774, -0.25750808025, -0.78173382265],
153  [ 0.78173382265, 0.25750808025, 0.56796286774],
154  [ 0.78173382265, 0.25750808025, -0.56796286774],
155  [ 0.91898322435, -0.25750808025, 0.29859575010],
156  [ 0.91898322435, -0.25750808025, -0.29859575010],
157  [ 0.96627614511, 0.25750808025, 0.00000000000]
158  ],
159  [
160  [1.00000000000, 165.07774833349, 89.99999999998],
161  [1.00000000000, -164.34660886021, 72.62671986748],
162  [1.00000000000, -164.34660886022, 107.37328013251],
163  [1.00000000000, 161.76778911692, 55.39170785296],
164  [1.00000000000, 161.76778911692, 124.60829214706],
165  [1.00000000000, -155.61098626194, 38.58040216792],
166  [1.00000000000, -155.61098626190, 141.41959783208],
167  [1.00000000000, 139.22561430131, 23.22211397117],
168  [1.00000000000, 139.22561430129, 156.77788602884],
169  [1.00000000000, -89.99999999999, 14.92225166649],
170  [1.00000000000, -90.00000000002, 165.07774833348],
171  [1.00000000000, 40.77438569868, 23.22211397117],
172  [1.00000000000, 40.77438569868, 156.77788602883],
173  [1.00000000000, -24.38901373808, 38.58040216789],
174  [1.00000000000, -24.38901373808, 141.41959783206],
175  [1.00000000000, 18.23221088306, 55.39170785296],
176  [1.00000000000, 18.23221088307, 124.60829214706],
177  [1.00000000000, -15.65339113976, 72.62671986755],
178  [1.00000000000, -15.65339113978, 107.37328013249],
179  [1.00000000000, 14.92225166649, 89.99999999998]
180  ],
181  [
182  [13,17,18,14,10,6,2,1,5,9],
183  [3,0,4,8,12,16,19,15,11,7],
184  [8,10,12],
185  [6,10,8],
186  [4,6,8],
187  [2,6,4],
188  [0,2,4],
189  [1,2,0],
190  [3,1,0],
191  [5,1,3],
192  [7,5,3],
193  [9,5,7],
194  [11,9,7],
195  [13,9,11],
196  [15,13,11],
197  [17,13,15],
198  [19,17,15],
199  [18,17,19],
200  [16,18,19],
201  [14,18,16],
202  [12,14,16],
203  [10,14,12]
204  ],
205  [
206  [0,1],
207  [0,2],
208  [0,3],
209  [0,4],
210  [1,2],
211  [1,3],
212  [1,5],
213  [2,4],
214  [2,6],
215  [3,5],
216  [3,7],
217  [4,6],
218  [4,8],
219  [5,7],
220  [5,9],
221  [6,8],
222  [6,10],
223  [7,9],
224  [7,11],
225  [8,10],
226  [8,12],
227  [9,11],
228  [9,13],
229  [10,12],
230  [10,14],
231  [11,13],
232  [11,15],
233  [12,14],
234  [12,16],
235  [13,15],
236  [13,17],
237  [14,16],
238  [14,18],
239  [15,17],
240  [15,19],
241  [16,18],
242  [16,19],
243  [17,18],
244  [17,19],
245  [18,19]
246  ]
247  ],
248  [
249  "hexagonal_antiprism",
250  "Hexagonal Antiprism",
251  empty_str,
252  "anti_prisms",
253  "Polyhedron Database #29",
254  [
255  [-0.91940168676, 0.39331989319, -0.00000000000],
256  [-0.79622521702, -0.39331989319, 0.45970084338],
257  [-0.79622521702, -0.39331989319, -0.45970084338],
258  [-0.45970084338, 0.39331989319, 0.79622521702],
259  [-0.45970084338, 0.39331989319, -0.79622521702],
260  [ 0.00000000000, -0.39331989319, 0.91940168676],
261  [ 0.00000000000, -0.39331989319, -0.91940168676],
262  [ 0.45970084338, 0.39331989319, 0.79622521702],
263  [ 0.45970084338, 0.39331989319, -0.79622521702],
264  [ 0.79622521702, -0.39331989319, 0.45970084338],
265  [ 0.79622521702, -0.39331989319, -0.45970084338],
266  [ 0.91940168676, 0.39331989319, -0.00000000000]
267  ],
268  [
269  [1.00000000000, 156.83876877392, 90.00000000002],
270  [1.00000000000, -153.71151678612, 62.63219484139],
271  [1.00000000000, -153.71151678612, 117.36780515857],
272  [1.00000000000, 139.44971443987, 37.22886588833],
273  [1.00000000000, 139.44971443986, 142.77113411166],
274  [1.00000000000, -89.99999999999, 23.16123122606],
275  [1.00000000000, -89.99999999995, 156.83876877393],
276  [1.00000000000, 40.55028556012, 37.22886588833],
277  [1.00000000000, 40.55028556011, 142.77113411165],
278  [1.00000000000, -26.28848321388, 62.63219484133],
279  [1.00000000000, -26.28848321388, 117.36780515864],
280  [1.00000000000, 23.16123122606, 90.00000000002]
281  ],
282  [
283  [9,10,6,2,1,5],
284  [0,4,8,11,7,3],
285  [4,6,8],
286  [2,6,4],
287  [0,2,4],
288  [1,2,0],
289  [3,1,0],
290  [5,1,3],
291  [7,5,3],
292  [9,5,7],
293  [11,9,7],
294  [10,9,11],
295  [8,10,11],
296  [6,10,8]
297  ],
298  [
299  [0,1],
300  [0,2],
301  [0,3],
302  [0,4],
303  [1,2],
304  [1,3],
305  [1,5],
306  [2,4],
307  [2,6],
308  [3,5],
309  [3,7],
310  [4,6],
311  [4,8],
312  [5,7],
313  [5,9],
314  [6,8],
315  [6,10],
316  [7,9],
317  [7,11],
318  [8,10],
319  [8,11],
320  [9,10],
321  [9,11],
322  [10,11]
323  ]
324  ],
325  [
326  "octagonal_antiprism",
327  "Octagonal Antiprism",
328  empty_str,
329  "anti_prisms",
330  "Polyhedron Database #30",
331  [
332  [-0.94984865176, -0.31270999145, -0.00000000000],
333  [-0.87754572834, 0.31270999145, 0.36349134228],
334  [-0.87754572834, 0.31270999145, -0.36349134228],
335  [-0.67164442276, -0.31270999145, 0.67164442276],
336  [-0.67164442276, -0.31270999145, -0.67164442276],
337  [-0.36349134228, 0.31270999145, 0.87754572834],
338  [-0.36349134228, 0.31270999145, -0.87754572834],
339  [-0.00000000000, -0.31270999145, 0.94984865176],
340  [-0.00000000000, -0.31270999145, -0.94984865176],
341  [ 0.36349134228, 0.31270999145, 0.87754572834],
342  [ 0.36349134228, 0.31270999145, -0.87754572834],
343  [ 0.67164442276, -0.31270999145, 0.67164442276],
344  [ 0.67164442276, -0.31270999145, -0.67164442276],
345  [ 0.87754572834, 0.31270999145, 0.36349134228],
346  [ 0.87754572834, 0.31270999145, -0.36349134228],
347  [ 0.94984865176, -0.31270999145, -0.00000000000]
348  ],
349  [
350  [1.00000000000, -161.77737671140, 90.00000000004],
351  [1.00000000000, 160.38667322856, 68.68523321433],
352  [1.00000000000, 160.38667322856, 111.31476678565],
353  [1.00000000000, -155.03384957250, 47.80589064816],
354  [1.00000000000, -155.03384957249, 132.19410935186],
355  [1.00000000000, 139.29473544049, 28.65229139610],
356  [1.00000000000, 139.29473544048, 151.34770860390],
357  [1.00000000000, -90.00000000001, 18.22262328859],
358  [1.00000000000, -90.00000000001, 161.77737671138],
359  [1.00000000000, 40.70526455950, 28.65229139610],
360  [1.00000000000, 40.70526455950, 151.34770860390],
361  [1.00000000000, -24.96615042747, 47.80589064819],
362  [1.00000000000, -24.96615042752, 132.19410935182],
363  [1.00000000000, 19.61332677143, 68.68523321432],
364  [1.00000000000, 19.61332677143, 111.31476678565],
365  [1.00000000000, -18.22262328858, 90.00000000001]
366  ],
367  [
368  [11,15,12,8,4,0,3,7],
369  [1,2,6,10,14,13,9,5],
370  [6,8,10],
371  [4,8,6],
372  [2,4,6],
373  [0,4,2],
374  [1,0,2],
375  [3,0,1],
376  [5,3,1],
377  [7,3,5],
378  [9,7,5],
379  [11,7,9],
380  [13,11,9],
381  [15,11,13],
382  [14,15,13],
383  [12,15,14],
384  [10,12,14],
385  [8,12,10]
386  ],
387  [
388  [0,1],
389  [0,2],
390  [0,3],
391  [0,4],
392  [1,2],
393  [1,3],
394  [1,5],
395  [2,4],
396  [2,6],
397  [3,5],
398  [3,7],
399  [4,6],
400  [4,8],
401  [5,7],
402  [5,9],
403  [6,8],
404  [6,10],
405  [7,9],
406  [7,11],
407  [8,10],
408  [8,12],
409  [9,11],
410  [9,13],
411  [10,12],
412  [10,14],
413  [11,13],
414  [11,15],
415  [12,14],
416  [12,15],
417  [13,14],
418  [13,15],
419  [14,15]
420  ]
421  ],
422  [
423  "pentagonal_antiprism",
424  "Pentagonal Antiprism",
425  empty_str,
426  "anti_prisms",
427  "Polyhedron Database #28",
428  [
429  [ 0.85065080835, -0.44721359550, -0.27639320225],
430  [ 0.85065080835, 0.44721359550, 0.27639320225],
431  [ 0.52573111212, 0.44721359550, -0.72360679775],
432  [ 0.52573111212, -0.44721359550, 0.72360679775],
433  [ 0.00000000000, -0.44721359550, -0.89442719100],
434  [ 0.00000000000, 0.44721359550, 0.89442719100],
435  [-0.52573111212, 0.44721359550, -0.72360679775],
436  [-0.52573111212, -0.44721359550, 0.72360679775],
437  [-0.85065080835, -0.44721359550, -0.27639320225],
438  [-0.85065080835, 0.44721359550, 0.27639320225]
439  ],
440  [
441  [1.00000000000, -27.73230144776, 106.04505713536],
442  [1.00000000000, 27.73230144775, 73.95494286463],
443  [1.00000000000, 40.38617755921, 136.35307289117],
444  [1.00000000000, -40.38617755920, 43.64692710879],
445  [1.00000000000, -89.99999999998, 153.43494882290],
446  [1.00000000000, 89.99999999997, 26.56505117711],
447  [1.00000000000, 139.61382244076, 136.35307289118],
448  [1.00000000000, -139.61382244074, 43.64692710885],
449  [1.00000000000, -152.26769855227, 106.04505713531],
450  [1.00000000000, 152.26769855223, 73.95494286462]
451  ],
452  [
453  [7,3,0,4,8],
454  [1,5,9,6,2],
455  [1,3,5],
456  [0,3,1],
457  [2,0,1],
458  [4,0,2],
459  [6,4,2],
460  [8,4,6],
461  [9,8,6],
462  [7,8,9],
463  [5,7,9],
464  [3,7,5]
465  ],
466  [
467  [0,1],
468  [0,2],
469  [0,3],
470  [0,4],
471  [1,2],
472  [1,3],
473  [1,5],
474  [2,4],
475  [2,6],
476  [3,5],
477  [3,7],
478  [4,6],
479  [4,8],
480  [5,7],
481  [5,9],
482  [6,8],
483  [6,9],
484  [7,8],
485  [7,9],
486  [8,9]
487  ]
488  ],
489  [
490  "square_antiprism",
491  "Square Antiprism",
492  empty_str,
493  "anti_prisms",
494  "Polyhedron Database #27",
495  [
496  [-0.85953250377, -0.51108108453, -0.00000000000],
497  [-0.60778126207, 0.51108108453, 0.60778126207],
498  [-0.60778126207, 0.51108108453, -0.60778126206],
499  [ 0.00000000000, -0.51108108453, 0.85953250377],
500  [ 0.00000000000, -0.51108108453, -0.85953250377],
501  [ 0.60778126207, 0.51108108453, 0.60778126207],
502  [ 0.60778126207, 0.51108108453, -0.60778126206],
503  [ 0.85953250377, -0.51108108453, -0.00000000000]
504  ],
505  [
506  [1.00000000000, -149.26413289761, 90.00000000002],
507  [1.00000000000, 139.93964097361, 52.57075390722],
508  [1.00000000000, 139.93964097360, 127.42924609275],
509  [1.00000000000, -89.99999999999, 30.73586710238],
510  [1.00000000000, -89.99999999998, 149.26413289761],
511  [1.00000000000, 40.06035902638, 52.57075390722],
512  [1.00000000000, 40.06035902638, 127.42924609274],
513  [1.00000000000, -30.73586710238, 90.00000000002]
514  ],
515  [
516  [7,4,0,3],
517  [2,6,5,1],
518  [2,4,6],
519  [0,4,2],
520  [1,0,2],
521  [3,0,1],
522  [5,3,1],
523  [7,3,5],
524  [6,7,5],
525  [4,7,6]
526  ],
527  [
528  [0,1],
529  [0,2],
530  [0,3],
531  [0,4],
532  [1,2],
533  [1,3],
534  [1,5],
535  [2,4],
536  [2,6],
537  [3,5],
538  [3,7],
539  [4,6],
540  [4,7],
541  [5,6],
542  [5,7],
543  [6,7]
544  ]
545  ],
546  [
547  "triangular_antiprism",
548  "Triangular Antiprism",
549  "Octahedron",
550  "anti_prisms",
551  "Exact Mathematics",
552  [
553  [-0.70710678119, 0.57735026919, -0.40824829046],
554  [ 0.00000000000, 0.57735026919, 0.81649658093],
555  [ 0.70710678119, 0.57735026919, -0.40824829046],
556  [-0.70710678119, -0.57735026919, 0.40824829046],
557  [ 0.00000000000, -0.57735026919, -0.81649658093],
558  [ 0.70710678119, -0.57735026919, 0.40824829046]
559  ],
560  [
561  [1.00000000000, 140.76847951640, 114.09484255210],
562  [1.00000000000, 89.99999999999, 35.26438968275],
563  [1.00000000000, 39.23152048359, 114.09484255210],
564  [1.00000000000, -140.76847951640, 65.90515744789],
565  [1.00000000000, -89.99999999999, 144.73561031724],
566  [1.00000000000, -39.23152048359, 65.90515744789]
567  ],
568  [
569  [1,0,2],
570  [0,1,3],
571  [5,1,2],
572  [1,5,3],
573  [4,0,3],
574  [0,4,2],
575  [4,5,2],
576  [5,4,3]
577  ],
578  [
579  [0,1],
580  [0,2],
581  [0,3],
582  [0,4],
583  [1,2],
584  [1,3],
585  [2,4],
586  [3,4],
587  [1,5],
588  [2,5],
589  [3,5],
590  [4,5]
591  ]
592  ]
593 ];
594 
595 //! @}
596 
597 //----------------------------------------------------------------------------//
598 // openscad-amu auxiliary scripts
599 //----------------------------------------------------------------------------//
600 
601 /*
602 BEGIN_SCOPE db;
603 BEGIN_SCOPE autostat;
604  BEGIN_OPENSCAD;
605  include <math/math_polytope.scad>;
606  include <math/math_utility.scad>;
607  include <datatypes/datatypes_table.scad>;
608  include <database/geometry/polyhedra/anti_prisms.scad>;
609 
610  fs = "^";
611 
612  tc = dtc_polyhedra_anti_prisms;
613  tr = dtr_polyhedra_anti_prisms;
614 
615  ids = get_table_ridl(tr);
616 
617  echo
618  (
619  str
620  (
621  "no.", fs, "table id", fs, "other name", fs,
622  "vertices", fs, "faces", fs, "edges",
623 
624  fs, "face-verticies",
625  fs, "face-angles",
626  fs, "edge-lengths",
627  fs, "edge-angles"
628  )
629  );
630 
631  for ( id = ids )
632  {
633  i = first(find(id, ids, c=1))+1;
634 
635  n = get_table_v(tr, tc, id, "n");
636  o = get_table_v(tr, tc, id, "o");
637  g = get_table_v(tr, tc, id, "g");
638  d = get_table_v(tr, tc, id, "d");
639 
640  c = get_table_v(tr, tc, id, "c");
641  s = get_table_v(tr, tc, id, "s");
642  f = get_table_v(tr, tc, id, "f");
643  e = get_table_v(tr, tc, id, "e");
644 
645  fo = is_empty(o) ? "-" : o;
646 
647  echo
648  (
649  str
650  (
651  i, fs, id, fs, fo, fs,
652  len(c), fs, len(f), fs, len(e),
653 
654  fs, hist(qsort(polytope_face_vcounts(f)), m=9),
655  fs, hist(qsort(dround(polytope_face_angles(c, f), d=1)), m=9),
656  fs, hist(qsort(sround(polytope_edge_lengths(c, e), d=3)), m=9),
657  fs, hist(qsort(dround(polytope_edge_angles(c, f), d=1)), m=9),
658 
659  fs
660  )
661  );
662  }
663  END_OPENSCAD;
664 
665  BEGIN_MFSCRIPT;
666  include --path "${INCLUDE_PATH}" {config_base,config_csg}.mfs;
667  include --path "${INCLUDE_PATH}" script_std.mfs;
668  END_MFSCRIPT;
669 END_SCOPE;
670 END_SCOPE;
671 */
672 
673 /*
674 BEGIN_SCOPE db;
675 BEGIN_SCOPE dim;
676  BEGIN_OPENSCAD;
677  include <units/units_coordinate.scad>;
678  include <tools/tools_polytope.scad>;
679  include <datatypes/datatypes_table.scad>;
680  include <database/geometry/polyhedra/anti_prisms.scad>;
681 
682  config = 0;
683 
684  tc = dtc_polyhedra_anti_prisms;
685  tr = dtr_polyhedra_anti_prisms;
686 
687  id = "default";
688  sr = 100;
689 
690  pv = get_table_v(tr, tc, id, "c");
691  pf = get_table_v(tr, tc, id, "f");
692  pe = get_table_v(tr, tc, id, "e");
693 
694  sv = coordinates_csc(pv, sr);
695 
696  if (config == 0) // png preview
697  {
698  $fn = 25;
699 
700  %polyhedron(sv, pf);
701 
702  polytope_frame(sv, pf, pe)
703  {
704  circle(r = sr / 25);
705  color("lightblue")
706  sphere(r = sr / 25 * (1 + 1/2));
707  }
708  }
709 
710  if (config == 1) // stl model
711  {
712  polyhedron(sv, pf);
713  }
714  END_OPENSCAD;
715 
716  BEGIN_MFSCRIPT;
717  include --path "${INCLUDE_PATH}" {config_base,config_png}.mfs;
718 
719  views name "views" views "diag";
720  defines name "ids" define "id"
721  strings
722  "
723  decagonal_antiprism
724  hexagonal_antiprism
725  octagonal_antiprism
726  pentagonal_antiprism
727  square_antiprism
728  triangular_antiprism
729  ";
730  variables add_opts_combine "views ids";
731  variables add_opts "-D config=0 --viewall --autocenter";
732 
733  include --path "${INCLUDE_PATH}" script_new.mfs;
734 
735  include --path "${INCLUDE_PATH}" config_stl.mfs;
736  variables add_opts_combine "ids";
737  variables add_opts "-D config=1";
738 
739  include --path "${INCLUDE_PATH}" script_app.mfs;
740  END_MFSCRIPT;
741 END_SCOPE;
742 END_SCOPE;
743 */
744 
745 //----------------------------------------------------------------------------//
746 // end of file
747 //----------------------------------------------------------------------------//
dtc_polyhedra_anti_prisms
empty_str
A string with no characters (the empty string).
Definition: constants.scad:77
dtr_polyhedra_anti_prisms