MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / load

Method load

python/pymesh/wires/WireNetwork.py:90–100  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

generate_supportsFunction · 0.95
__load_jsonMethod · 0.80
create_from_dataMethod · 0.80
load_infoFunction · 0.80
update_infoFunction · 0.80
drop_zero_dimFunction · 0.80
cleanupFunction · 0.80
add_frameFunction · 0.80
parse_config_fileFunction · 0.80
drop_zero_dimFunction · 0.80
drop_frameFunction · 0.80

Calls 2

__initialize_wiresMethod · 0.95
create_rawMethod · 0.45

Tested by

no test coverage detected