Created
December 18, 2018 12:51
-
-
Save miho/08c722505e0a72d819fe7f53cb22a263 to your computer and use it in GitHub Desktop.
This file contains 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
package eu.mihosoft.vrl.user; | |
import eu.mihosoft.jcsg.Cylinder; | |
import eu.mihosoft.jcsg.CSG; | |
import eu.mihosoft.vvecmath.Transform; | |
import eu.mihosoft.vvecmath.Vector3d as Vec3d; | |
import eu.mihosoft.vvecmath.Vectors3d as Vecs; | |
import eu.mihosoft.jcsg.ext.path.* | |
@ComponentInfo(name="Bacteria Creator 01", category="Custom") | |
public class BacteriaCreator01 implements java.io.Serializable { | |
private static final long serialVersionUID=1L; | |
public CSG create() { | |
double r = 1 | |
double h = 0.5 | |
double n = 15 | |
double freq = 1 | |
// create cylinder segment (prototype) | |
// create larger cylinder with x-resolution h | |
// deform the cylinder with weighted scale | |
return result | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment