phere with the maximum number of triangles but not much than a defined threshold.
I scaled that mesh just to fit Rhino grid, but it is not mandatory. What is useful, is to scale not uniformly the mesh (Scale NU). It could be done after cellular modifier applied or before or before and after. The 3 options are possible in the script. If you don’t need them just put 1 in scale sliders.
Ellipsoid mesh is the populated with points, I put 2 independents populations to randomize a bit further. For each vertices of the mesh the closest distance from the populated points is calculated.
Here is an illustration in color of this distance.
This distance is then used to calculate a bump. If domain for bump is beginning with negatives values to 0, it carves the mesh. Instead it bumps/inflates it.
Some images to illustrate the difference with populating 100 points with one or two populations.
Here some images to illustrate the application of scale before carving or after.
Next phase apply noise. At the moment I don't find it good.…
ve' ist nicht möglich. (line 85)
Unfortunately I don't know how to have it displayed in English but it is saying that it can't convert 'Rhino.Geometry.Curve[]' to 'Rhino.Geometry.Curve'. This is my code:
Point3d pt1 = new Point3d(0, 0, 0); Point3d pt2 = new Point3d(1, 0, 0); Point3d pt3 = new Point3d(1, 1, 0); Line line1 = new Line(pt1, pt2); Line line2 = new Line(pt2, pt3); Curve crv1 = line1.ToNurbsCurve(); Curve crv2 = line2.ToNurbsCurve(); List <Curve> crvlist = new List<Curve>(); crvlist.Add(crv1); crvlist.Add(crv2); Curve joined = Curve.JoinCurves(crvlist); A = joined;
What needs to change? Also, do I really need to convert things like lines etc. to NurbsCurves each time I do this, or is there a more direct way? I am quite new to C# and would be thankful for any tips on how to make the above code shorter and more efficient.
Cheers,
Max…
Added by Max Marschall at 7:58am on November 13, 2016
) function if you've already got a boolean value.
This expression:
x < 12
results in exactly the same things as this expression:
If( x < 12, True, False )
If() is only really useful when you want to return non-boolean data, like so:
If( x < 12, x, 100-x )
In this case, the expression will return either x, or 100-x if x is larger than or equal to 12:
x result
1 1
2 2
10 10
11 11
12 88
13 87
14 86
18 82
70 30
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 7:22am on August 10, 2011