Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4153

Array of Meshes by PolyMesh Guid

$
0
0

Greetings,
I’ve created o PolyMesh out of a PolySrf in a such way:

meshes_group = rhg.Mesh.CreateFromBrep(PolySrf_Reference.Brep(), defaultMeshParams)  
        
polyMesh = rhg.Mesh()
for mesh in meshes_group:
    polyMesh.Append(mesh)
sc.doc.Objects.AddMesh(polyMesh)

Then I got the Guid of this newly created PolyMesh and got it’s reference:

PolyMesh_Reference = Rhino.DocObjects.ObjRef(PolyMesh_Guid)

How do I get Array of Meshes to be able iterate through? I know, that “meshes_group” in my example is of type Array[Mesh]. So I want to get, but kind of going back with having PolyMesh Guid…

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4153

Trending Articles