Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* Playing with mirror methode */ /* [Hidden] */ vectorsize = "two"; // ["two","thr","for","fiv","six"] allthree=[2,2,2]; // [-5,1,5] /* [Hidden] */ $fs=0.5;$fa=1.0; if( vectorsize == "two" ) { color("green") %cube(); color("red") mirror([2,2]) cube(); } else if( vectorsize == "thr" ) { color("green") cube(); color("red") mirror(allthree) cube(); } else if( vectorsize == "for" ) { color("green") translate([4,0]) cube(); color("red") mirror( v=[1,0]) translate([4,0]) cube(); } else if( vectorsize == "fiv" ) { color("green") translate([4,0,-2]) cube(); color("red") mirror( v=allthree) translate([4,0,-2]) cube(); } else { color("green") union() { cube([2,4,1]); translate([1,1,0])cube([4,2,1]); } color("red") mirror(allthree) union() { cube([2,4,1]); translate([1,1,0])cube([4,2,1]); } } /* Written by Jeff Hayes
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
. */
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)