ShapeOp on Rhino8

Hi,

We just released the first version of compas_shapeop :partying_face:

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()





6 Likes

Cheers Petras, that looks awesome! It’s great to see ShapeOp finding new life within the COMPAS framework. And those examples really sent me down memory lane, good times :old_man:

2 Likes