Polyhedron.reset() : reset() es una función de biblioteca de Python que devuelve las esquinas a sus posiciones originales del poliedro.
Sintaxis: sympy.combinatorics.Polyhedrons.Polyhedron.reset()
Vuelta: esquinas a sus posiciones originales del poliedro
Código #1: reset() Ejemplo – tetraedro
# Python code explaining # SymPy.Polyhedron.reset() # importing SymPy libraries from sympy.combinatorics import Permutation, Cycle from sympy.combinatorics.polyhedron import tetrahedron, octahedron # Using from # sympy.combinatorics.polyhedron.Polyhedron.reset() # Creating Polyhedron a = tetrahedron.copy() print ("Polyhedron - reset form : ", a.reset) a.rotate(0) print ("\nPolyhedron - reset form : ", a.reset)
Producción :
Poliedro – forma de reinicio: <método enlazado Polyhedron.reset of Polyhedron((0, 1, 2, 3), ((0, 1, 2), (0, 2, 3), (0, 1, 3), ( 1, 2, 3)), ((1 2 3), (3)(0 1 2), (0 3 2), (0 3 1), (0 1)(2 3), (0 2)( 1 3), (0 3)(1 2)))>
Poliedro – forma de reinicio: <método enlazado Polyhedron.reset of Polyhedron((0, 1, 2, 3), ((0, 1, 2), (0, 2, 3), (0, 1, 3), ( 1, 2, 3)), ((1 2 3), (3)(0 1 2), (0 3 2), (0 3 1), (0 1)(2 3), (0 2)( 1 3), (0 3)(1 2)))>
Código #2: reset() Ejemplo – octaedro
# Python code explaining # SymPy.Polyhedron.reset() # importing SymPy libraries from sympy.combinatorics import Permutation, Cycle from sympy.combinatorics.polyhedron import tetrahedron, octahedron # Using from # sympy.combinatorics.polyhedron.Polyhedron.reset() # Creating Polyhedron a = octahedron.copy() print ("Polyhedron - reset form : ", a.reset) a.rotate(0) print ("\nPolyhedron - reset form : ", a.reset)
Producción :
Poliedro – forma de reinicio: <método enlazado Polyhedron.reset of Polyhedron ((0, 1, 2, 3, 4, 5), ((0, 1, 2), (0, 2, 3), (0, 3, 4), (0, 1, 4), (1, 2, 5), (2, 3, 5), (3, 4, 5), (1, 4, 5)), ((5)(1) 2 3 4), (0 4 5 2), (0 1 5 3), (0 1)(2 4)(3 5), (0 2)(1 3)(4 5), (0 3)( 1 5)(2 4), (0 4)(1 3)(2 5), (0 5)(1 4)(2 3), (0 5)(1 2)(3 4), (0 4 1)(2 3 5), (0 1 2)(3 4 5), (0 2 3)(1 5 4), (0 4 3)(1 5 2)))>
Poliedro – forma de reinicio: <método enlazado Polyhedron.reset of Polyhedron ((0, 1, 2, 3, 4, 5), ((0, 1, 2), (0, 2, 3), (0, 3, 4), (0, 1, 4), (1, 2, 5), (2, 3, 5), (3, 4, 5), (1, 4, 5)), ((5)(1) 2 3 4), (0 4 5 2), (0 1 5 3), (0 1)(2 4)(3 5), (0 2)(1 3)(4 5), (0 3)( 1 5)(2 4), (0 4)(1 3)(2 5), (0 5)(1 4)(2 3), (0 5)(1 2)(3 4), (0 4 1)(2 3 5), (0 1 2)(3 4 5), (0 2 3)(1 5 4), (0 4 3)(1 5 2)))>
Publicación traducida automáticamente
Artículo escrito por noobestars101 y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA