Dynamic Polyline base code object - VERSION 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-06-01
09:00 PM
- last edited on
‎2022-09-26
10:54 PM
by
Daniel Kassai
Almost seven years now from the polyline object. Wow. I've seen some awesome objects created with that. Congratulations to all of you who have taken a plunge into understanding GDL and that old object, and used it to create amazing things and shared them with the rest of us.
I've had these "version 2" objects for years now. Made them, thought of things to do with them, got busy living and working, used them in a couple of objects for me, and forgot about them.
I tried to simplify the main polyline functions as much as I could, so building upon them was easier. Still couldn't solve the "z" coordinate issue when removing points but it really is no big deal (i think).
The main goal at the time was to add arcs, but to be done over the simplified script. So... the library has a few objects:
* Two objects with the main functions. The difference with these is the way the script is written. One has separate x, y and z arrays, the other one has only one XYZ array. Would depend on your liking to use either one.
* A version 2 Dynamic Polyline, that includes arcs. This was a challenge and a nightmare. Dealing with the way GDL creates arcs is really something, and then realizing there would be ellipses, projected and rotated spherical and polar coordinates involved, was frightening. I just couldn't figure out some other arc examples on how they were done with simpler code. Mine was the result of extensive trigonometry research of long forgotten things. Has two type of arcs: based on floor plan projection (which yields helices in 3D) or based on the segment's 3D rotation (which yields ellipses in floor plan). It was not easy, but quite satisfying to achieve.
* A dynamic multi-polyline object. This one doesn't have arcs (my brain would have died), but has the ability to have many polylines in a single object. It is not using MACRO calls to load the basic functions. I saw this way of using the polyline object to have and use more than one poyline, and wanted to see if I could solve it within the same object. Perhaps you might find good use for this one, despite missing arc code.
I really hope you find these useful, either to build and share more objects, or just to learn a few things that might help you. They are shared using this license.
Thank you everyone.
Enjoy!
- Labels:
-
Library (GDL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-10-13 06:31 PM
These registry keys are experimental features. We don't want to keep compatibility with their values, they might change. They aren't stored in the plan, others might see the model differently.HKEY_CURRENT_USER\Software\GRAPHISOFT\ARCHICAD\ARCHICAD <version>\GSModeler\Better GDL Tube TriangulationMaybe Peter can shed some light onto this one![]()
This one particularly is about how the longitudinal faces between the nodes are triangulated into two parts.
Software Engineer, Library
Graphisoft SE, Budapest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-10-14 11:39 AM
Peter wrote:I recall passing thru this on an object I scripted ages ago (With the precious help of many good friends here
Yes, the tricky part is the direction of the 0° direction on that plane. It is the projection of the Z axis to the plane, but sometimes is flipped 180° so the tube is less twisted. Sometimes this flipping is not needed for the model, but it can't be controlled intuitively.


Anyway... If anyone is interested, I post it here in attachment.
@Hmooslechner
Great progress Heimo!
Hmooslechner wrote:Yes. I think that a proper road/street tool will have to be much more complex than that.
There is another problem with streets: in curved sections, they usually are broader than in straigt directions - sections. Here the tube-command comes to its "boarders". The trailing-curve comes into the topic.

Perhaps your object, instead of creating a single profile geometry, it could define the axis of the road and two separate profiles for the curbs. Then, by GDL you could generate a txt file with a point cloud of the curb path nodes. With this file we could automatically create a Mesh. What do you think?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-11-18 06:03 PM
Without modifications, applying the Double Line as the 2D linetype I can create bend and ends. At the very least, I'd like to filet the right angles so that they look break-formed.
Has anyone used this poly line for the representation of bent metal or membranes?
AC4.55 through 28 / USA AC27-6010 USA
Rhino 8 Mac
MacOS 15.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-11-19 08:07 PM
Hmooslechner wrote:
I want to point you at my last polyline-Object on the foundation of sinceV6:
...
Profile-manager - profiles are used to follow the 3D-Polyline-Curve
Amazing as always!
The bezier construct object looks rather fun!
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-09-02 10:10 AM
Hi! Thank you for the object.
I found that the object stop to work with two points on my projects: I can't add any more points to the polyline. Do you know where it come from?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-09-21 06:26 PM - edited ‎2021-09-21 06:26 PM
How many points did you use ?- if i remember right - its limited somehow 50 or 100 points or so- just add a new object to prolong it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-09-22 09:36 AM
Just two points in total.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-10-09 07:09 AM
There is also a minimum of needet points to it.. but i didnt test this, because i always uset more points.. logoically 3 points?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-10-11 10:17 AM
It works with 3 points. The problem is that the object lets the user reduce to 2 points, and then, the object is blocked.
- « Previous
- Next »
- « Previous
- Next »