import java.io.File
import scalismo.faces.io.{MeshIO, MoMoIO}
import scalismo.utils.Random
object RenderMesh extends App {
scalismo.initialize()
val seed = 1986L
implicit val rnd = Random(seed)
val model = MoMoIO.read(new File("/path/to/baselFaceModel.h5")).get
val instance = model.sample()
MeshIO.write(instance, new File("/out/path/mesh.ply"))
}
I want to generate a mesh from the Basel Face Model and save it in a .ply file, so that I can use another rendering engine to render a face image based on the mesh. Can this be done with the code available in this repo? If so, how would one go about this? Thank you in advance!
--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/3fd1470c-f376-44a1-8f52-5d45f0362141n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/5da37b2d-507b-414e-a000-1e445dceb332n%40googlegroups.com.