This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ran = 0, | |
| loops = 0, | |
| helpDoc = { toc: $('#toc ul:first').html(), terms: [] }; | |
| $('.mw-headline').each(function () { | |
| var stash = $('<div>'), | |
| $this = $(this), | |
| context = $this.parent().next(), | |
| l = 0, | |
| helpTerm = { id: $this.text().trim() }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var https = require('https'); | |
| var result = [], | |
| output = [], | |
| padding = ' ', | |
| trailingSemicolon = /;$/, | |
| quotes = /"/g, | |
| actionUrl = 'https://raw.github.com/openscad/openscad/master/src/highlighter.cc' | |
| // Fire the http[s] request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bom = { | |
| parts: importTable($('table')[3]), | |
| vitamins: importTable($('table')[5], 'Fasteners'), | |
| wades: { | |
| parts: importTable($('table')[4]), | |
| vitamins: importTable($('table')[6], 'Fasteners') | |
| } | |
| }; | |
| function importTable(tbl, memberName) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="../build/three.min.js"></script> | |
| <script src="js/loaders/STLLoader.js"></script> | |
| <script> | |
| var loader = new THREE.STLLoader(); | |
| loader.addEventListener('load', function (event) { | |
| var geometry = event.content; | |
| if (geometry.boundingBox === null) { | |
| geometry.computeBoundingBox(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| materialGroups = groupedMaterials.map(function (group) { | |
| return group.map(function (name) { return namedMaterials[name]; }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git editor/js/Sidebar.Renderer.js editor/js/Sidebar.Renderer.js | |
| index f48dd9a..e56d632 100644 | |
| --- editor/js/Sidebar.Renderer.js | |
| +++ editor/js/Sidebar.Renderer.js | |
| @@ -43,13 +43,16 @@ Sidebar.Renderer = function ( editor ) { | |
| var themeRow = new UI.Panel(); | |
| var originalColor; | |
| - var theme = new UI.Select().setOptions( [ 'Light', 'Dark' ] ).setWidth( '150px ').setColor( '#444' ).setFontSize( '12px '); | |
| + var theme = new UI.Select().setOptions( [ 'Light', 'Dark', 'DarkA', 'DarkB', 'DarkC' ] ).setWidth( '150px ').setColor( '#444' ).setFontSize( '12px '); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'urlA;urlB;urlC'.split(';').forEach(function(url){ window.open(url) }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git editor/index.html editor/index.html | |
| index ea980e1..bb3d1f1 100644 | |
| --- editor/index.html | |
| +++ editor/index.html | |
| @@ -75,9 +75,28 @@ | |
| window.URL = window.URL || window.webkitURL; | |
| window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder; | |
| + var themes = [{ | |
| + name: 'Light', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Over Operator | |
| // color = As * Cs + (1 - As) * Cd | |
| function over( sourceColor, destColor, alpha ) { | |
| return alpha * sourceColor + ( 1 - alpha ) * destColor; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var inputPath = @"c:\temp\example.obj"; | |
| var outputPath = @"c:\temp\results.txt"; | |
| var reader = new System.IO.StreamReader(inputPath); | |
| var output = System.IO.File.CreateText(outputPath); | |
| var v = 0; | |
| var vn = 0; | |
| var f = 0; | |
| string line; |