algorithmic modeling for Rhino
Hello all,
Problem: I was given a sheet set up already to be laser cutted, only problem is the objects that are being cut need a number at the ends to link up to there corresponding partner.
For this exercise, the number is irrelevant. I just want to know how I can locate a point and make a single line text at the ends of each object.
I have attached a rhino file with the sheet and objects to be cut, and I also have the texts I manually added in Rhino there to show what I am looking for.
I am wanting to find a faster way in grasshopper to set the points, and add text to that point.
Thanks,
-Patrick
Tags:
Hi Patrick,
I am afraid that your problem is not properly defined. What I mean is that if you cannot geometrically describe the point you are looking for, then there is no way to find this point.
For example: Here is a definition that finds a point inside the curve and close to its Endpoint and then places a text at this point. The problem is that your curves do not all start and end where you want them to:
see curves 6-10-12 for example. If you can redraw your curves so that they all start where you want them to, then this definition will work.
another approach would be to find the bounding rectangle of each curve and place your text on a point near the top-left corner of this rectangle. The problem in this case is that your curves seem to be randomly rotated.
See curve 5 for example. If you can rotate them all so that their end is always at the top-left then this definition will work.
I can't think of another, more general, method at the moment but that doesn't mean there isn't one.
Anyway, I am attaching a file with both definitions and you can see what suits you best.
good luck,
nikos
Hello
you can also try the following
i have used the single line font text component from bowerbird plugin.
http://www.grasshopper3d.com/group/bowerbird
cheers
alex
Yes, this gets the work done (and in a much simpler way).
But by looking at the file again I realized that Patrick actually wants the text in both ends of each shape. This is easily achieved for the straight pieces with your definition but I wonder how this could be done for the V shaped pieces (without rotating them)?
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