Create an objects group

Hi all,

I use Rhino3dmIO with C#.net and I try to create a cube with one color by face.
So I added 6 mesh with differents color for each ObjectAttributes.
I call this method:
myFile3dm.Objects.AddMesh(myMesh, myObjectAttributes);

It works, I have 6 differents color on my cube, but these faces are not grouped…
I found a method in myObjectAttributes -> AddtoGroup(indexOfGroup).
I called this method but it doesn’t works, the faces of my cube are always not grouped.

I think that I have to declare a new group but it seem that class is not implemented.

So can you please confirm that to create a cube with 6 colored faces I must to add 6 mesh with color attributes?
If yes, can you please confirm that I must to create a group and add the meshs objects in this group?
If yes, how create a new group?

Thanks you so much.

The Rhino3dmIO toolkit’s Rhino.FileIO.File3dm object does not expose the Group table. I’ve added this to our tracking system so we can add this functionality to the next release of Rhino.

https://mcneel.myjetbrains.com/youtrack/issue/RH-34622

In the mean time, if you need Group support and you are capable of using the C++ version of openNURBS, you might consider doing so.

– Dale

Hi,

Thanks for your reply.

Romain