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
Tags:
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);
}
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by