fun.imagej.mesh

bounding-interval

(bounding-interval vertices)
Return a RealInterval that bounds a collection of RealLocalizable vertices.

center-vertices

(center-vertices vertices)
Center the vertices using the bounding box.

center-vertices!

marching-cubes

(marching-cubes input)
Convenience function for marching cubes.

merge-vertices-by-distance

(merge-vertices-by-distance vertices distance-threshold)
Merge vertices that are close within a given distance threshold.
Expects vertices to be a sequence of RealLocalizable's.
Returns a sequence of RealLocalizable's

read-stl

(read-stl stl-filename)
Read a mesh from STL

read-stl-vertices

(read-stl-vertices stl-filename)
Read a mesh from a STL file.

read-vertices-to-xyz

(read-vertices-to-xyz filename)
Write a list of vertices to xyz.

real-interval-to-seq

(real-interval-to-seq interval)
Convert an interval into a seq

realpoint-to-point

(realpoint-to-point rp)
Convert a real point to a point

scale-vertices

(scale-vertices vertices scale)
Scale all vertices by a factor.

scale-vertices!

slurp-bytes

(slurp-bytes x)
Slurp the bytes from a slurpable thing

vertex-to-vector3d

(vertex-to-vector3d vtx)
Convert a Vertex to Vector3D.

vertex3-to-array

(vertex3-to-array v3)
Convert a vertex3 to a seq

write-mesh-as-stl

(write-mesh-as-stl mesh stl-filename)
Write a DefaultMesh from imagej-ops to a .stl file.

write-vertices-to-xyz

(write-vertices-to-xyz verts filename)
Write a list of vertices to xyz.

zero-mean-vertices

(zero-mean-vertices vertices)
Center a set of vertices using the mean.
Mutable function

zero-mean-vertices!