Grasshopper

algorithmic modeling for Rhino

Hi.

I am wondering, how I can get the same kind of surface from surfacePatch command using Python as by doing it in Rhino?

The red points are used to create a surface patch in Rhino (Green), and the same points are used to generate a surface using GH.Python (Red), but I can't get the same surface using Python as in Rhino. I have been trying the three different ways of using

rg.Brep.CreatePatch() and using the same parameters as in Rhino, but I can't get the same surface. For me, the Rhino representation of the surface patch is much "better", so thats why I want to obtain the same. 

Any ideas?

Thanks.

Cheers Rasmus

Views: 1888

Replies to This Discussion

No one? :)

Hi Rasmus,

did you end up figuring this out? I'm having the same problem

Andrei 

I sort-of got it close to Rhino output by using an overload on top of the first patch (excuse C#):

private void RunScript(List<Curve> x, ref object A)
{
Brep a = Brep.CreatePatch(x, 20, 20, 0.0001);
List<bool> bl = new List<bool>();
for (int i = 0; i < 4; i++){ bl.Add(true);}

A = Brep.CreatePatch(x, a.Surfaces[0], 30, 30, true, true, 0.1, 1000, 0.01, bl.ToArray(), 0.1);
}

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service