Grasshopper

algorithmic modeling for Rhino

Hi, all,

 

Could I know why SweepOneRail generates 'Brep[]' rather than 'Brep'?

-------------------------------------------

Brep mybrep; //works with 'Brep[] mybrep' here

sweepOneRail beam = new SweepOneRail();

mybrep = beam.PerformSweep(rail, section);

 

//Error: Canonot implicitly convert type 'Rhino.Geometry.Brep[]' to 'Rhino.Geometry.Brep'

-------------------------------------------

 

Thanks!

 

 

Views: 272

Replies to This Discussion

then, above code's

------------------

A = mybrep;

------------------

gave me a out 'Untrimmed Surface'.

 

but, when I tried to use this in DataTree.

-----------------

DataTree<Brep[]> beams = new DataTree<Brep[]>();

beams.Add(mybrep, path);

A = beams;

-----------------

then, output are 'Rhino.Geometry.Brep[]' in each path.



Help me to know clearly about this, please!!

 

 

Thanks....for my friend, he just let me know to use 'AddRange' ..... and now it works!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service