ddg.conversion.halfedge.obj module
- ddg.conversion.halfedge.obj.obj_to_hds(filename)[source]
- Converts an obj file to a ddg.halfedge.Surface with vertex attribute“co”, and edge attributes “vt” and “vn”, if given.Reads an obj file with given v and faces of the form f 1 2 3or given v,vt and faces of the form f 1/1 2/1 3/1or given v,vn and faces of the form f 1//1 2//1 3//1or given v,vt,vn and faces of the form f 1/1/2 2/1/2 3/1/2.
- Parameters:
- filenamestr
(path and) name of the obj file, like “path/file.obj”
- Returns:
- ddg.halfedge.Surface