Grasshopper

algorithmic modeling for Rhino

Hello,


I need some help casting a single Goo to a List<Goo>.
Actually its a mesh-representation which should be cast to a List of Polylines.

I have done a lot of "single-single" object-casting but have no idee how to deal with "single-list"

Would be nice if someone can enlight me on this topic...

Greets

public override bool CastTo<Q>(ref Q target)
{
   return ToGH_Curves(ref target);

}

private bool ToGH_Curves<Q>(ref Q target)
{
   //Todo CastToCurves
   return false;
}

Views: 294

Replies to This Discussion

You can't. Casting is always a one-to-one process.

If you need to create collections of data from a single piece of data (or the other way around) you need to create a component which does that internally.

Ok, thanks for the answer...
What a pity...

Aloha

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