You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there - I am having trouble getting hops to process a mesh, it seems that gh is not passing the mesh to the hops component, any help or guidance is appreciated.
python file is as follows.
@hops.component(
"/meshInOut",
name="meshInOut",
description="randomly shift mesh vertices",
inputs=[
hs.HopsMesh("MeshIn", "M_i", "Mesh to be shifted")
hs.HopsNumber("Shift", "s", "distance of shift", default=2.0),
],
outputs = [
hs.HopsMesh("MeshOut", "M_o", "Shifted Mesh"),
],
)
def meshInOut(msh: r3.Mesh, s):
print((msh))
for v in msh.Vertices:
v += np.random.random(3)*s
msh_out = msh
return msh_out
if __name__== "__main__":
app.run()
The text was updated successfully, but these errors were encountered:
Hi there - I am having trouble getting hops to process a mesh, it seems that gh is not passing the mesh to the hops component, any help or guidance is appreciated.
python file is as follows.
The text was updated successfully, but these errors were encountered: