Skip to content

Instantly share code, notes, and snippets.

@miho
Created December 18, 2018 12:51
Show Gist options
  • Save miho/08c722505e0a72d819fe7f53cb22a263 to your computer and use it in GitHub Desktop.
Save miho/08c722505e0a72d819fe7f53cb22a263 to your computer and use it in GitHub Desktop.
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