Load vertices and edges from data. Args: vertices (:py:class:`numpy.ndarray`): :py:attr:`num_vertices` by :py:attr:`dim` array of vertex coordinates. faces (:py:class:`numpy.ndarray`): :py:attr:`num_edges` by 2 array of vertex indices
(self, vertices, edges)
| 88 | self.__initialize_wires() |
| 89 | |
| 90 | def load(self, vertices, edges): |
| 91 | """ Load vertices and edges from data. |
| 92 | |
| 93 | Args: |
| 94 | vertices (:py:class:`numpy.ndarray`): :py:attr:`num_vertices` by |
| 95 | :py:attr:`dim` array of vertex coordinates. |
| 96 | faces (:py:class:`numpy.ndarray`): :py:attr:`num_edges` by 2 array |
| 97 | of vertex indices. |
| 98 | """ |
| 99 | self.raw_wires = PyMesh.WireNetwork.create_raw(vertices, edges) |
| 100 | self.__initialize_wires() |
| 101 | |
| 102 | def load_from_file(self, wire_file): |
| 103 | """ Load vertices and edges from a file. |
no test coverage detected