Triangulation Data for Basel Face Model 2017

63 views
Skip to first unread message

Basanta Sharma

unread,
Jan 24, 2018, 5:26:49 AM1/24/18
to scalismo-faces
Hi all. Had a small doubt.

The older Basel Face Model came along with triangulation data that could be used for rendering the model as a mesh. But, I couldn't find the triangulation data in the newer version: Basel Face Model, 2017. Can anyone guide me how should I render the model as a mesh.

Bernhard Egger

unread,
Jan 24, 2018, 5:45:00 AM1/24/18
to scalismo-faces
Hi Basanta,

the triangulation is part of the reference-Mesh in our model.
In scalismo-faces you get it via yourMoMo.referenceMesh.triangulation.
For external usage you can find the triagulation in the h5-model-file. There are a lot of libraries to load hdf5 files (e.g. in matlab). The triangulation is found in shape/representer/cells.

If you just want to render a mesh you can again use scalismo-faces:
val renderer = MoMoRenderer(yourMoMo, RGBA.BlackTransparent).cached(5)
And then render a mesh using:
renderer.renderMesh(renderParameters)

To get a easy start to our software our tutorial can be helpful:
http://gravis.dmi.unibas.ch/PMM/lectures/fitting/

Best
Bernhard
Reply all
Reply to author
Forward
0 new messages