Hi,
We just released the first version of compas_shapeop
I would like to ask if anyone could test if these examples works on your computer:
examples_rhino.zip (77.4 KB)
Thanks @AndersDeleuran for really helpful discussions!
#! python 3
# r: compas, compas_shapeop
from compas.datastructures import Mesh
from compas.scene import Scene
from compas_shapeop.meshsolver import MeshSolver
mesh = Mesh.from_meshgrid(10, 8, 10, 8)
mesh.translate([-5, -5, 0])
s = MeshSolver(mesh)
s.fix_vertices(vertices=mesh.vertices_where({"vertex_degree": 2}))
s.constrain_edge_lengths()
s.add_gravity()
s.solve(1000)
scene = Scene()
scene.clear_context()
scene.add(s.mesh)
scene.draw()