MCPcopy Create free account
hub / github.com/apple/ml-pointersect / remove_redundant_face

Function remove_redundant_face

plib/preprocess_obj.py:133–150  ·  view source on GitHub ↗

Remove repetitive face in a mesh and replace the original mesh. Args: filepath: path of the mesh (obj)

(
        filepath: str
)

Source from the content-addressed store, hash-verified

131
132
133def remove_redundant_face(
134 filepath: str
135):
136 """
137 Remove repetitive face in a mesh and replace the original mesh.
138
139 Args:
140 filepath: path of the mesh (obj)
141 """
142 warnings.warn(
143 'We do not release this part of the code. '
144 'If a high level, the function reads a mesh, '
145 'computes ambient occlusion on mesh (important),'
146 'reorders the faces, and deletes redundant faces. '
147 'We use this function only to clean up ShapeNet meshes, '
148 'so the results you got on ShapeNet may be different '
149 'from ours.'
150 )
151
152
153def map_kd_value_to_textures(mtl_filepath: str):

Callers 1

generated_cleaned_meshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected