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

Method create_from_file

python/pymesh/wires/WireNetwork.py:54–59  ·  view source on GitHub ↗

Handy factory method to load data from a file.

(cls, wire_file)

Source from the content-addressed store, hash-verified

52
53 @classmethod
54 def create_from_file(cls, wire_file):
55 """ Handy factory method to load data from a file.
56 """
57 wire_network = cls()
58 wire_network.load_from_file(wire_file)
59 return wire_network
60
61 @classmethod
62 def create_from_data(cls, vertices, edges):

Callers 6

load_wiresFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

load_from_fileMethod · 0.80

Tested by

no test coverage detected