to get a nice set of single stroke curves.
It seems like the "TextObject" command is able to make some translation from text to curves that the C# output is not able to do, because it will output invalid curves every time I try to use a single stroke font (but only on certain characters). I'm not sure what "TextObject" is able to do that the script is not, but I didn't notice anything promising in the SDK, and I'm guessing that the script is creating the same type of object as the "Text" command, before exploding.
In any case, later today I was planning to simply put a command line macro ("-TextObject") into a VB.NET component, and the finding a way to grab the results and bring the curves back into Grasshopper. It seems like it should work until a more precise solution can be found. I'll post the results later.
…
nt - 1
rays.Add(ptEnd - ptStart(i))Next
I don't see anything immediately wrong with your code, though I find it peculiar that the error message claims it happened on line:0. Typically you only get line:0 errors when there is a fundamental problem during compilation, but an index-out-of-range error is usually a runtime bug, not a compile-time bug.
I think you'll need to post the entire script (or only that part of it which is causing problems) so we can run it on out own machines.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
nition
3) Notice that you get the expected results.
4) Now rebuild the Line in Rhino. Point Count = 5, Degree = 3
5) Still the same results
6) Now show control points in Rhino.
7) Delete the 4th Control Point ie. not the mid point or the two ends but either (not both) of the other two
8) Now you will see a mid domain point biased to one end.…
evaluate the position of the polygon selected then start from this point to project the intersection corner then subdivide the line to construct the inside polygons.
i need some interrogations,
1- another clean and short way to fillet my polygons corners and find the intersection point
to start the subdivision.
2- theres a way to draw a line through 4 point to make a closed polygon different that what i used to.
list item doesnt work for me now, maybe i neet to start to evaluate a custom C# or VB# to achieve my goals.
comments will be helpfull this is the first issues of my Master Thesis project, and i'm not an expert in GH.
http://aircrossover.wordpress.com/
…
ng error-message (in danish):
Which translates to: 'ON_Matrix_New' can not be found i the DLL 'rhcommon_c'. (line:0)
I've tried to rewrite my own file based on the coding in yours, but every time a get an error-message on the line that contains the multiplication of the matrices... So I'm inclined to think that it's not possible to perform the multiplication in RH4, unless I create the code myself??
It's not essential to perform the matrix multiplication, but it would make my work alot easier!
Thanks, Peter…
hat I just found in Rhino help.
u- and v-directions
Every surface is roughly rectangular. Surfaces have three directions, u, v, and normal. You can display the u- and v-directions and the normal direction with the Dir command.
The u- and v-directions are like the weave of cloth or screen. The u-direction is indicated by the red arrow, and the v-direction is indicated by the green arrow. The normal direction is indicated by the white arrow. You can think of u-, v-, and normal-directions as corresponding to the x, y, and z of the surface.
These directions are used when mapping textures and inserting knots
.
…
starting mesh. The geometry of the lines is then modified, through the formfinding routine.
In my second vb component, I need to build an array with 4 columns. Each row represent one face of the mesh (row 0 for face 0, row1 for face 1, ...) and each column represent the number of the edge element. If ABCD is the quad face, column 0 is the number of the edge AB, column 1 is BC, column 2 is CD and column 3 is DA.
So to build this array, I extract the edges of each face with FaceB component then Explode component, and I build the array by comparing each line coming from this to each line coming from MEdges component, with a 2 level nested loop. Here is where I am looking for an efficient way to compare 2 lines...
Is there an easier and faster way to build this array ?…
e creates constraints between pairs of points, if you provide a pair (= a line) with Rest Length = D, that means Kangaroo will try to keep the points exactly D units away.
If Upper cutoff is set to D, that means points won't be able to be closer than D, but can be farther (its like a repulsion sphere of radius D around points).
Also, I am not sure this alpha measure is very good, you can have a very regular Voronoi with just 2 points close together. Using the variance or standard deviation of [distance of closest point] would be better.…
Rhino crashes on trying to send files with 10,000+ curves, my tactic is to send the file in parts if it's huge... It could also be the buffer memory in your laser, or your network...
Exploding the text (as you appear to have done here) is definitely going to add to file size and cutting time - you are doubling each letter - so it's better to work with single line fonts if possible. The scripts above do work in Rhino - we use them all the time - but there is one problem that that has occurred with V5 - text justification. As text now comes in as justified any which way one can unfortunately no longer predict accurately if the single line replacement for the test is going to end up in the right place. In V4, the text insertion point was always in the lower left corner, in V5 it could be lower, upper or mid and right or left... there are no real tools to detect this AFAIK.
--Mitch…
use the hyphen to disable the window and use the command line version of the SelLayer command.
private void RunScript(string layer, bool run, ref object A) { if (!run) return; Rhino.RhinoApp.RunScript("-_SelLayer " + '"' + layer + '"', true); }
This C# component has two inputs, one string identifying the layer name to be selected and one bool that allows you to enable/disable the script easily.
I added double quotes around the layer name because if the name has a space it will act as a premature assignment in the Rhino command line.
--
David Rutten
david@mcneel.com
Tirol, Austria…
Added by David Rutten at 10:09am on September 20, 2013