taichi.tools.np2ply
¶
Module Contents¶
Classes¶
- class taichi.tools.np2ply.PLYWriter(num_vertices: int, num_faces=0, face_type='tri', comment='created by PLYWriter')¶
- add_vertex_channel(self, key: str, data_type: str, data: numpy.array)¶
- add_vertex_pos(self, x: numpy.array, y: numpy.array, z: numpy.array)¶
- add_vertex_normal(self, nx: numpy.array, ny: numpy.array, nz: numpy.array)¶
- add_vertex_color(self, r: numpy.array, g: numpy.array, b: numpy.array)¶
- add_vertex_alpha(self, alpha: numpy.array)¶
- add_vertex_rgba(self, r: numpy.array, g: numpy.array, b: numpy.array, a: numpy.array)¶
- add_vertex_id(self)¶
- add_vertex_piece(self, piece: numpy.array)¶
- add_faces(self, indices: numpy.array)¶
- add_face_channel(self, key: str, data_type: str, data: numpy.array)¶
- add_face_id(self)¶
- add_face_piece(self, piece: numpy.array)¶
- sanity_check(self)¶
- print_header(self, path: str, _format: str)¶
- export(self, path)¶
- export_ascii(self, path)¶
- export_frame_ascii(self, series_num: int, path: str)¶
- export_frame(self, series_num: int, path: str)¶