square units. Then you have an integral number of fragments on each side. This means that if all fragments need to have the same surface area, you can only have the following possibilities for side A:
1 fragment = 100 square units
2 fragments = 50 square units each
3 fragments = 33⅓ square units each
4 fragments = 25 square units each
5 fragments = 20 " "
6 fragments = 16⅔ " "
etc.
For side B, the numbers are mostly different
1 fragment = 300 unit²
2 fragments = 150 unit²
3 fragments = 100 unit²
4 fragments = 75 unit²
For side C they are different still. Unless you join fragments across on both sides of the edges of the box, I very much doubt you'll be able to pull this off.
The solution I attached will create fragments as identical as possible, but it's a very boring outcome...
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
m rnd As New random(666)
Dim field As New gh_field
Dim crvlist As New list(Of curve)
For i As Integer = 1 To 100 Dim pc As New gh_pointcharge
pc.Charge = rnd.NextDouble
pc.Location = bx.PointAt(rnd.NextDouble, rnd.NextDouble, rnd.NextDouble)
field.Elements.Add(pc)
Next
For i As Integer = 1 To 500 Dim p As New point3d(bx.PointAt(rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25))
Dim pts As point3dlist = field.SolveSteps(p, 0.1, 30, gh_differentialsolver.RungeKutta4)
Dim crv As nurbscurve = nurbscurve.CreateInterpolatedCurve(pts.ToArray, 3)
crvlist.add(crv)
Next
a = crvlist
…
ng code for Rhino6 and Visual Studio 2013 while typing on Grasshopper 2.0
I launch Rhino and Grasshopper each time, takes about 15~17 seconds to load both programs, it takes about 25 seconds to compile the entire project. Because of this I don't write and test tiny amounts of code, I write and test large amounts, then use the debugger to fix bugs.
As For debugging, yes, i'm able to step into my code via Visual Studio. but most of my time i'm not debugging - i'm developing and making small changes and compiling more than 40 times a day.
40 sounds about the right order of magnitude. Somewhere between 5 and 500 I'd say, depending on whether I'm debugging something big or writing a lot of new code.
I'd love to hear about any suggesstions of ways of work that you do that'll save me alot of time.
I wish there was a way to run Rhino with 'GH Developers' flag that'll run much faster.
You can not load certain plugins when starting Rhino. That may speed up loading times, but probably not significantly.
--
David Rutten
david@mcneel.com…
Added by David Rutten at 3:00am on January 6, 2014
imension(new Plane(new Point3d(5, 3, 0), Vector3d.ZAxis), new Point2d(0, 0), new Point2d(10, 10), new Point2d(5, 5));
myDim.TextHeight = 500;
doc.Objects.AddLinearDimension(myDim);
The bold line seems to be not working because I can't see any changes of text size in the rhino document.
2. I failed to add my DimStyle Object to the LinearDimension object I created above.
Rhino.DocObjects.DimensionStyle myDimStyle = new Rhino.DocObjects.DimensionStyle();
myDimStyle.ArrowLength = 100; myDimStyle.TextGap = 200; myDimStyle.TextHeight = 500;
int dimStyleIndex = doc.DimStyles.Add("myDimStyle", false);
myDim.DimensionStyleIndex = dimStyleIndex;
The bold line seems to be not changing the style of my LinearDimension object.
Could anyone help me with these two failures?
Thanks!
-Jerome
…
/free/downloads
http://www.youtube.com/watch?v=YGOpitpKpps
This software is great but you can only create symmetric lights, and it's a bit difficult to draw smooth curves. Just miss a refit command...
So I thought I could generate a mesh with gh. Should be easy. Didn't have much time to work on this yet...
There are crucial choices to make in regard to the way you interact with the curve. I just made a try with attractors but I'm not really satisfied. Any ideas would be welcome.
IES-GH.3dm
IES-GH.gh
Cheers
Fred.
\edit..
By the way, can you include the material id color and the object id color? It's really a nightmare I always forget to set them right and there can be so many of them!…
xed as well as a changes to several components which increase functionality
v_1-09.1
- Added vertex colors to all components which create meshes as an output. New vertexes created in operations average their colors based on their location within each mesh face
- Added "clr" input to several m(+) components which allows for the placement of a color or a per face list of colors which will replace the averages vertex color at newly created edge conditions.
- Added "clr" input to several n(+) components which allows a corresponding list of colors to be passed for each input point.
- Added internal quad face boolean for volume based components which only properly operate on quad faces. If triangular faces are found in the inputs, the component skips these meshes
- Added face count check to mesh face subdivision component. If the input mesh only contains one face, it is skipped.
- Fixed Branch components loops input which was previously limited to 3.
- Fixed "t" value relationship on several volume components making parameters affected clearer
- Fixed Polyp edge radius input, reversing relationship, now 0-1 stays within bounds of face.- Changed loft component inputs from points to curves.…
ucture of the Building can be seperated into three layers.1. There are the big triangles that create the form of the buildings.2. The supporting structure.3. windows and tilesFor part 1 I am remodelling the cladding.part 2 and 3 are the same, just with a different size of triangles.My question now ist, how can i cut out the triangles of the supporting structure and the windows and tiles?Or do you have any other idea how i might remodel this building?Thanks in advance, Simon…
wfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="https://vimeo.com/60606151">06.03 Travelling Salesman - Python</a> from <a href="https://vimeo.com/exlab">exlab.org</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
However, I've run into a dead end where on line 3 it says
"Runtime error (UnboundNameException): name 'startIndex' is not defined"
I've tried changing the inputs' names on the Python inputs but have found nothing. What does the 'startIndex' being not defined means? I assume it just can't find the "startIndex" as I may have missed it in my cluster?
Some help would greatly be appreciated, I've attached my gh definition if anyone is able to look. Thanks a lot for your help guys.
Ed
…
n splitting curves and then join them to create the region; but I'am looking for a more straightforward solutions. 3- I know some plugins like clipper could do this, but I'm looking for more flexible solutions.
4- I tried Brep[] CreatePlanarBreps(IEnumerable<Curve>) in ghpython, but it doesn't work.
…