Package net.imglib2.mesh.util
Class Icosahedron
- java.lang.Object
-
- net.imglib2.mesh.util.Icosahedron
-
public final class Icosahedron extends Object
Icosahedron spheres.Based on https://github.com/caosdoar/spheres
- Author:
- Jean-Yves Tinevez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Meshcore()static BufferMeshrefine(Mesh core)Creates a new, finer icosahedron, based on the one specified, by subdividing each triangle into 4 smaller triangle, with vertices still on the icosahedron.static BufferMeshsphere(RealLocalizable center, double radius)static BufferMeshsphere(RealLocalizable center, double radius, int nSubdivisions)
-
-
-
Method Detail
-
core
public static final Mesh core()
-
refine
public static final BufferMesh refine(Mesh core)
Creates a new, finer icosahedron, based on the one specified, by subdividing each triangle into 4 smaller triangle, with vertices still on the icosahedron.- Parameters:
core- the sphere to subdivide.- Returns:
- a new sphere with 4 times the number of triangles and 6 times the number of vertices.
-
sphere
public static BufferMesh sphere(RealLocalizable center, double radius)
-
sphere
public static BufferMesh sphere(RealLocalizable center, double radius, int nSubdivisions)
-
-