Classes for representing and animating 3D face meshes (WIP).
Module Contents
-
medusa.containers.threeD.flame_path
-
medusa.containers.threeD.flame_generator
-
class medusa.containers.threeD.Base3D[source]
A base class for 3D face objects.
-
save(path, file_type='obj', **kwargs)[source]
Saves a mesh to disk as an obj wavefront file.
-
animate(v, mat, is_deltas=True, to_4D=True)[source]
Animates an existing 3D mesh.
-
class medusa.containers.threeD.Flame3D(v=None, mat=None, topo='coarse', device=DEVICE)[source]
A FLAME-based 3D face mesh.
-
classmethod from_4D(data, index=0)[source]
Creates a 3D object by indexing a 4D object.
-
classmethod random(shape=None, exp=None, pose=None, rot_x=None, rot_y=None, rot_z=None, no_exp=True)[source]
Creates a face with random shape/expression parametesr and pose.
-
animate(v, mat, sf, frame_t, is_deltas=True)[source]
Animates a 3D face mesh and returns a proper 4D object.
-
class medusa.containers.threeD.Mediapipe3D(v=None, mat=None)[source]
A mediapipe-based 3D face mesh.
-
classmethod from_4D(data, index=0)[source]
Creates a 3D object by indexing a 4D object.