Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Polylines are too dense to magic wand for mesh contour

Robert Nichols
Advocate

My usual workflow to go from surveyor's work to an ArchiCAD mesh is to use the magic wand on the surveyor's poly line contours to create a contour or ridge on the mesh. The surveyors did a good job of providing a single poly line for each contour - so often the contours are broken by labels, requiring a lot of clean up work.

 

BUT...the polyenes are super dense: there is a vertex, or node, every 2". At the scale of this site, the average contour has over 14,000 nodes. There are about 70 contours across the site, making for a very slow mesh. Adding additional contours, setting z-values, is really annoying.

 

Q1: Is there a way to increase the "coarseness" of the wand operation? So the wand only reproduces every third node of the poly line, for example?

 

Q2: Does ArchiCAD have a tool, that I'm not aware of, that can reduce the resolution of a poly line? My civil engineer asked me if I had tried "de-curving" the polylines, which I suspect is language that comes from Revit, or some other platform. Sounds great, but I don't think I have such a tool in ArchiCAD. Am I wrong?

 

Any other suggestions?

Mac Studio, 32gb ram, ArchiCAD v26 (Apple Silicon) MacOS 13
8 REPLIES 8
Barry Kelly
Moderator

Change your Magic Wand settings to 'Linear Segments' rather than 'Best Match'.

Then you can play around with the other settings for deviation from curve or segments along arcs to get the results you want.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
danielk
Enthusiast

Hi,

 

I think the setting Barry mentioned controls how the magic wand traces curves, not straight segments. So, in case you have a curve, it will definitely help, but if you just have a very detailed polyline with straight segments, I think there is no setting in Archicad that would help.

 

We also use Rhino at my office, so when this happens, I just open the dwg in Rhino, and reduce the number of segments there (or if I already have the polylines in Archicad, I do it in Grasshopper).

 

If you don't have Rhino, I am not sure what else you could do using only Archicad...

 

Kind Regards,

Daniel


@danielk wrote:

I think the setting Barry mentioned controls how the magic wand traces curves, not straight segments.


This is true, I was thinking of a spline for the contour rather than a polyline that you mentioned.

In the case of many straight segments in the polyline, you will need to manually place a contour selecting specific points along the polyline rather than magic wanding.

 

There is a 'line consolidation' tool that will reduce the number of points, but only if the segment are co-linear.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Yves
Advocate

Hi,

I've been faced with this problem before without really finding a solution...
I can offer you an alternative but not perfect!
From a polyline accessory object that I had made to indicate the lengths of polylines.


As you could see in the video after placing the object and setting the step you will have to decompose it, delete the excess lines, unify and adapt the new polylines

Hoping that one day Graphisoft will give us a more efficient solution

 

https://youtu.be/aLo535xhi1M

 

 

 

 

Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13

Oh, wow, I didn't know polyline accessories were a thing. Seems like exactly the right thing. This is great.

The polyline accessory is hidden by default, you have to modify your menu to show it. Yves also made a must have object to create 3D prism with closed polylines: https://community.graphisoft.com/t5/Modeling/Any-tip-as-how-to-create-multiple-slabs-in-one-go/m-p/5... 

Archicad 27 - GDL - PYTHON

Hi,

 

Inspired by Yves' clever solution, I made a polyline reduction object similar to his, but using a different algorithm, that should keep the shape of the original more intact, so you wouldn't need to adjust the result after exploding (other than joining the line segments).

 

Same steps as for Yves' object otherwise. You have one input, which is the number of points you want on your new polyline.

 

This is a prototype of a prototype, so let me know how it performs, so that I can fix any issues.

 

Thanks!

 

preview.png

I just tried it out and the contour line i tested on, it worked great.

 

Once the object was created, I selected it, and exploded it into lines

Then unified, and had 1/3 of the nodes along that single piece of Topo.

 

 

Thanks!

AC24 / AC26 / AC27
Win10