| Package | Description |
|---|---|
| net.imglib2.mesh | |
| net.imglib2.mesh.alg | |
| net.imglib2.mesh.alg.hull | |
| net.imglib2.mesh.alg.zslicer | |
| net.imglib2.mesh.impl.naive |
Implementations of
Mesh that are based on
arrays of floats and doubles using gnu.trove.list.array. |
| net.imglib2.mesh.impl.nio |
Mesh implemented using
Buffer objects. |
| net.imglib2.mesh.io.ply | |
| net.imglib2.mesh.io.stl | |
| net.imglib2.mesh.util |
General utils to manipulate and interrogate meshes.
|
| net.imglib2.mesh.view |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BooleanType<T>> |
Meshes.marchingCubes(RandomAccessibleInterval<T> source)
Creates mesh e.g.
|
static <T extends RealType<T>> |
Meshes.marchingCubes(RandomAccessibleInterval<T> source,
double isoLevel)
Creates mesh e.g.
|
Mesh |
Triangle.mesh()
The mesh to which the triangle belongs.
|
Mesh |
Vertices.mesh()
The mesh to which the collection of vertices belongs.
|
Mesh |
Vertex.mesh()
The mesh to which the vertex belongs.
|
Mesh |
Triangles.mesh()
The mesh to which the collection of triangles belongs.
|
static Mesh |
Meshes.simplify(Mesh mesh,
float target_percent,
float agressiveness)
Simplifies a given mesh.
|
| Modifier and Type | Method and Description |
|---|---|
static RealInterval |
Meshes.boundingBox(Mesh mesh) |
static void |
Meshes.calculateNormals(Mesh src,
Mesh dest)
Calculates the normals for a mesh.
|
static RealPoint |
Meshes.center(Mesh m)
Finds the center of a mesh using vertices.
|
static RealPoint |
MeshStats.centroid(Mesh input)
Returns the centroid of the mesh, that is the center of gravity of its
volume.
|
static double |
MeshStats.compactness(Mesh mesh)
Returns the compactness of the mesh.
|
static Iterable<BufferMesh> |
Meshes.connectedComponents(Mesh mesh)
Returns an iterable over the connected components of the specified mesh.
|
static double |
MeshStats.convexity(Mesh mesh)
Returns the convexity of a mesh.
|
static double |
MeshStats.convexity(Mesh mesh,
Mesh convexHull)
Returns the convexity of a mesh.
|
static void |
Meshes.copy(Mesh src,
Mesh dest)
Copies a mesh into another mesh.
|
static int |
Meshes.nConnectedComponents(Mesh mesh)
Returns the number of connected components in the specified mesh.
|
static BufferMesh |
Meshes.removeDuplicateVertices(Mesh mesh,
int precision)
Creates a new mesh from a given mesh without any duplicate vertices.
|
static void |
Meshes.scale(Mesh mesh,
double[] scale)
Scales the vertices position by the amount specified by the array.
|
static Mesh |
Meshes.simplify(Mesh mesh,
float target_percent,
float agressiveness)
Simplifies a given mesh.
|
static double |
MeshStats.solidity(Mesh mesh)
Returns the solidity of a mesh.
|
static double |
MeshStats.solidity(Mesh mesh,
Mesh convexHull)
Returns the solidity of a mesh.
|
static double |
MeshStats.sphericity(Mesh mesh)
Returns the sphericity of a mesh.
|
static double |
MeshStats.surfaceArea(Mesh mesh)
Returns the surface area of a mesh.
|
static void |
Meshes.translate(Mesh mesh,
double[] translate)
Translates the vertices position by the amount specified by the array.
|
static void |
Meshes.translateScale(Mesh mesh,
double[] translate,
double[] scale)
Translates the vertices position by the amount specified by the array,
then scales the coordinates.
|
static double |
MeshStats.volume(Mesh mesh)
Computes the volume of the specified mesh.
|
| Modifier and Type | Method and Description |
|---|---|
static BufferMesh |
Meshes.merge(Iterable<Mesh> meshes) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BooleanType<T>> |
MarchingCubesBooleanType.calculate(RandomAccessibleInterval<T> input) |
static <T extends RealType<T>> |
MarchingCubesRealType.calculate(RandomAccessibleInterval<T> input,
double isoLevel) |
Mesh |
SimplifyMesh.simplify(float target_percent,
double agressiveness)
Begins the simplification process.
|
| Modifier and Type | Method and Description |
|---|---|
static RealMatrix |
InertiaTensor.calculate(Mesh input) |
static BufferMesh |
RemoveDuplicateVertices.calculate(Mesh mesh,
int precision) |
static EllipsoidFitter.Ellipsoid |
EllipsoidFitter.fit(Mesh mesh)
Fit an ellipsoid to the convex-Hull of a 3D mesh.
|
static EllipsoidFitter.Ellipsoid |
EllipsoidFitter.fitOnConvexHull(Mesh mesh)
Fit an ellipsoid to a 3D mesh, assuming it is the convex-Hull.
|
static Iterable<BufferMesh> |
MeshConnectedComponents.iterable(Mesh mesh) |
static Iterator<BufferMesh> |
MeshConnectedComponents.iterator(Mesh mesh) |
static int |
MeshConnectedComponents.n(Mesh mesh)
Returns the number of connected components in this mesh.
|
static BufferMesh |
TaubinSmoothing.smooth(Mesh mesh)
Smooth the specified mesh using the Taubin smoothing algorithm, with
default parameters.
|
static BufferMesh |
TaubinSmoothing.smooth(Mesh mesh,
int iters,
double passBand)
Smooth the specified mesh using the Taubin smoothing algorithm, using
cotangent weights.
|
static BufferMesh |
TaubinSmoothing.smooth(Mesh mesh,
int iters,
double lambda,
double mu,
TaubinSmoothing.TaubinWeightType weightType)
Smooth the specified mesh using the Taubin smoothing algorithm.
|
| Constructor and Description |
|---|
Interior(Mesh mesh,
double scale) |
Interior(Mesh mesh,
RealInterval boundingBox,
double scale) |
MeshCursor(RandomAccess<T> ra,
Mesh mesh,
double[] cal) |
MeshCursor(RandomAccess<T> ra,
Mesh mesh,
double[] cal,
RealInterval boundingBox) |
MeshIterable(RandomAccessible<T> ra,
Mesh mesh,
double[] calibration)
Creates an iterable for the pixels of the specified image inside the
specified mesh.
|
MeshIterable(RandomAccessible<T> ra,
Mesh mesh,
double[] calibration,
RealInterval boundingBox)
Creates an iterable for the pixels of the specified image inside the
specified mesh.
|
MollerTrumbore(Mesh mesh) |
SimplifyMesh(Mesh mesh) |
| Modifier and Type | Method and Description |
|---|---|
static NaiveDoubleMesh |
ConvexHull.calculate(Mesh input) |
| Modifier and Type | Method and Description |
|---|---|
static Slice |
ZSlicer.slice(Mesh mesh,
double z,
double zScale)
Slice a mesh by a Z-plane.
|
static List<Slice> |
ZSlicer.slices(Mesh mesh,
double[] zs,
double zScale) |
| Modifier and Type | Class and Description |
|---|---|
class |
NaiveDoubleMesh |
class |
NaiveFloatMesh |
| Modifier and Type | Method and Description |
|---|---|
Mesh |
NaiveFloatMesh.Vertices.mesh() |
Mesh |
NaiveFloatMesh.Triangles.mesh() |
Mesh |
NaiveDoubleMesh.Vertices.mesh() |
Mesh |
NaiveDoubleMesh.Triangles.mesh() |
| Modifier and Type | Class and Description |
|---|---|
class |
BufferMesh
Mesh implemented using
Buffer objects. |
| Modifier and Type | Method and Description |
|---|---|
Mesh |
BufferMesh.Vertices.mesh() |
Mesh |
BufferMesh.Triangles.mesh() |
| Modifier and Type | Method and Description |
|---|---|
static void |
PLYMeshIO.read(File plyFile,
Mesh mesh) |
static void |
PLYMeshIO.read(InputStream plyIS,
Mesh mesh) |
static void |
PLYMeshIO.save(Mesh data,
String destination) |
static byte[] |
PLYMeshIO.writeAscii(Mesh mesh) |
static byte[] |
PLYMeshIO.writeBinary(Mesh mesh) |
| Modifier and Type | Method and Description |
|---|---|
static Mesh |
STLMeshIO.open(String source) |
| Modifier and Type | Method and Description |
|---|---|
static void |
STLMeshIO.read(Mesh mesh,
byte[] data) |
static void |
STLMeshIO.read(Mesh mesh,
File stlFile) |
static void |
STLMeshIO.save(Mesh data,
String destination) |
static byte[] |
STLMeshIO.write(Mesh mesh)
Writes the facets into a byte[] that can then be saved into a file
|
| Modifier and Type | Method and Description |
|---|---|
static Mesh |
Icosahedron.core() |
| Modifier and Type | Method and Description |
|---|---|
static BufferMesh |
Icosahedron.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.
|
static String |
MeshUtil.triangleStr(Mesh mesh,
long id)
Produces a string representation of a triangle.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TranslateMesh
Read-only view of a mesh where vertices are translated by a fixed amount.
|
| Modifier and Type | Method and Description |
|---|---|
static Mesh |
TranslateMesh.translate(Mesh in,
RealLocalizable t) |
| Modifier and Type | Method and Description |
|---|---|
static Mesh |
TranslateMesh.translate(Mesh in,
RealLocalizable t) |
Copyright © 2016–2023 ImgLib2. All rights reserved.