TetrahedralMesh3D

scalismo.mesh.TetrahedralMesh3D
See theTetrahedralMesh3D companion object
case class TetrahedralMesh3D(pointSet: UnstructuredPoints[_3D], tetrahedralization: TetrahedralList) extends TetrahedralMesh[_3D]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def computeTetrahedronVolume(tetrahedron: TetrahedralCell): Double

Returns the volume of the indicated tetrahedral cell.

Returns the volume of the indicated tetrahedral cell.

Attributes

def getBarycentricCoordinates(point: Point[_3D], tetrathedron: TetrahedralCell): Array[Double]

Returns the Barycentric coordinates of a point inside the indicated cell.

Returns the Barycentric coordinates of a point inside the indicated cell.

Attributes

def isInsideTetrahedralCell(point: Point[_3D], tetrahedron: TetrahedralCell): Boolean

Returns true for points within a tetrahedron defined by the indicated cell.

Returns true for points within a tetrahedron defined by the indicated cell.

Attributes

Returns a random point lying within the tetrahedron defined by the indicated cell.

Returns a random point lying within the tetrahedron defined by the indicated cell.

The sampled points follow a uniform distribution within the tetrahedron. The method if based on the paper Generating Random Points in a Tetrahedron" from Rocchini et. al.: https://www.tandfonline.com/doi/abs/10.1080/10867651.2000.10487528

Attributes

rnd

implicit Random object

tc

Tetrahedral cell of the mesh, in which to draw a random point

Applies a point transformation to the point set and returns a new transformed mesh. The method keeps the tetrahedralization as it is and only changes the location of the points.

Applies a point transformation to the point set and returns a new transformed mesh. The method keeps the tetrahedralization as it is and only changes the location of the points.

Attributes

transform

A function that maps a given point to a new position. All instances of scalismo.registration.Transformation being descendants of Function1[Point[_3D], Point[_3D] ] are valid arguments.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val cells: IndexedSeq[TetrahedralCell]
val tetrahedrons: IndexedSeq[TetrahedralCell]
lazy val volume: Double

Returns the volume of the TetrahedralMesh as sum of all tetrahedrals. For meshes with overlapping tetrahedrals the value will not be correct.

Returns the volume of the TetrahedralMesh as sum of all tetrahedrals. For meshes with overlapping tetrahedrals the value will not be correct.

Attributes