Hi all,
I am quite new to grasshopper plugins development.
Here is what I am trying to do: I have 8 points (as input arguments) which are the location of a ‘box’ corners (edges are not necessarily either parallel or perpendicular).
I found this Bref method CreateFromBox whose description reads: “Constructs new brep from 8 corner points.” and whose syntax is
"public static Brep CreateFromBox(
IEnumerable corners
)"
I am using the grasshopper C# component. I first created a list of points corners containing the input points and create a Brep using the “CreateFromBox” method and corners as argument. But as experts may expect it didn’t work. I tried other ways which were all fruitless.
Could you please tell me how can I use this method? In case you know a better solution, then I would also be pleased to know it as well. The so generated box is to then to be colored after (if you have a hint for me regarding this, then I will also be happy).
Thank you in advance.
–
Germain