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

Method compute_symmetry_orbits

python/pymesh/wires/WireNetwork.py:190–211  ·  view source on GitHub ↗

Compute the following symmetry orbits: * ``vertex_symmetry_orbit``: all vertices belonging to the same orbit can be mapped to each other by reflection with respect to planes orthogonal to axis. * ``vertex_cubic_symmetry_orbit``: all vertices belonging to the sam

(self)

Source from the content-addressed store, hash-verified

188 self.__initialize_wires()
189
190 def compute_symmetry_orbits(self):
191 """ Compute the following symmetry orbits:
192
193 * ``vertex_symmetry_orbit``: all vertices belonging to the same orbit
194 can be mapped to each other by reflection with respect to planes
195 orthogonal to axis.
196 * ``vertex_cubic_symmetry_orbit``: all vertices belonging to the same
197 orbit can be mapped to each other by reflection with respect to any
198 symmetry planes of a perfect cube.
199 * ``edge_symmetry_orbit``: all edges belonging to the same orbit can be
200 mapped to each other by reflection with respect to planes orthogonal
201 to axis.
202 * ``edge_cubic_symmetry_orbit``: all edges belonging to the same orbit
203 can be mapped to each other by reflection with respect to any symmetry
204 planes of a perfect cube.
205
206 All orbits are stored as attributes.
207 """
208 self.add_attribute("vertex_symmetry_orbit")
209 self.add_attribute("vertex_cubic_symmetry_orbit")
210 self.add_attribute("edge_symmetry_orbit")
211 self.add_attribute("edge_cubic_symmetry_orbit")
212
213 def get_attribute_names(self):
214 """ Get the names of all defined attributes.

Callers 3

inflate_periodicMethod · 0.80
__initialize_orbitsMethod · 0.80
test_symmetry_orbitsMethod · 0.80

Calls 1

add_attributeMethod · 0.95

Tested by 1

test_symmetry_orbitsMethod · 0.64