All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalismo.mesh.ScalarVolumeMeshField.scala Maven / Gradle / Ivy

There is a newer version: 1.0-RC1
Show newest version
package scalismo.mesh

import scalismo.common.DiscreteField.ScalarVolumeMeshField
import scalismo.common.{DiscreteField, Scalar, ScalarArray}
import scalismo.geometry._3D

import scala.reflect.ClassTag

object ScalarVolumeMeshField {

  def apply[S: Scalar: ClassTag](mesh: TetrahedralMesh[_3D], data: Traversable[S]): ScalarVolumeMeshField[S] = {
    DiscreteField[_3D, TetrahedralMesh, S](mesh, ScalarArray(data.toArray))
  }

  def apply[S: Scalar: ClassTag](mesh: TetrahedralMesh[_3D], data: ScalarArray[S]): ScalarVolumeMeshField[S] = {
    DiscreteField[_3D, TetrahedralMesh, S](mesh, data)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy