Grasshopper

algorithmic modeling for Rhino

Hello everyone,

I am stuck with an error,

am trying to convert a mesh into a NURB.

the error is: iteration over non-sequence of type Guid

Can someone please walk me through the problem?

Views: 573

Replies to This Discussion

You need to set the "Type Hint" to either Point3d or No Type Hint.

Also, you need to change the Access Type to List Access.

I think the MeshFaces being output from Mesh Decompose Component are not compatible with face_vertices for AddMesh function. You need something like this

_face_vertices=[]

for face in face_vertices:

    if face.IsQuad:

        _face_vertices.append((face.A,face.B,face.C,face.D))

    else:

        _face_vertices.append((face.A,face.B,face.C))

Solved,

had to change the whole strategy

Thanks :)

_face_vertices and face_vertices are different thing. first one is a new list and the second one is the input parameter.

_face_vertices=[] #new list

for face in face_vertices:  #loop over input list

    if face.IsQuad:

        _face_vertices.append((face.A,face.B,face.C,face.D)) #add new vertices list to the "new" list

    else:

        _face_vertices.append((face.A,face.B,face.C))

Great,

Many thanks

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service