Grasshopper

algorithmic modeling for Rhino

Hi everyone! 

Right now i am writing a script component on c#. I am trying to merge two curves with Curve.CreateBooleanUnion but I don't really understant the syntax. 
What is the exact "formula" to use so that i can merge 2 curves? 
Here is a screenview so that you can understand better. 

Thanks. 

Brutten

Views: 367

Replies to This Discussion

La méthode Curve.CreateBooleanUnion() rend Curve[] et non Curve, et prend IEnumerable<Curve> et non Curve singulier. Avec vos deux "Carrés" il faut premièrement les mettre dans un array ou liste:
Curve[] carrés = new Curve[] { carré , carré_2 };
et le résultat doit être mis dans an autre array.

Curve[] regions = Curve.CreateBooleanUnion(carrés);

Merci beaucoup! C'est gentil! 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service