concepts.vision.fm_match.diff3f.diff3f_mesh.MeshContainer#

class MeshContainer[source]#

Bases: object

Helper class to store face, vert as numpy

Control I/O, convertions and other mesh utilities

Methods

copy()

get_area_of_faces()

Compute the areas of all triangles on the mesh.

load_from_file(file_path[, dataset])

save_as_mat([file_path])

save_to_ply_and_obj()

to_pytorch3d_meshes(device[, is_tosca])

__init__(vert=None, face=None)[source]#
__new__(**kwargs)#
copy()[source]#
get_area_of_faces()[source]#

Compute the areas of all triangles on the mesh.

Returns:

area – area[i] is the area of the i-th triangle

Return type:

1-D numpy array

load_from_file(file_path, dataset='')[source]#
save_as_mat(file_path='')[source]#
save_to_ply_and_obj()[source]#
to_pytorch3d_meshes(device, is_tosca=True)[source]#
Parameters: