Terrain data conversion to a xyz-file
-
What units were you working in ? If it's not metres then try changing to mm (Model Info >> Units) before exporting the dxf - it looks like the application receiving the dxf wants it in 'mm'...
DXFs are effectively 'unit-less' - whatever the numbers are in it they are assumed to be the units that are used for the resultant dxf/dwg... so if a 'dimension' is given as 1234 it could be 1234 m or mm or inches or etc...
Try importing the dxf back into SUp and see if it's like it went out - scale it by 1000 and repeat etc ?
It's difficult to fix this without more details...
-
You can export a dxf file containing just 'construction geometry' - see options button on export dialog. To get cpoints at every vertex of a selected mesh use a tool like my AddVertex+ ruby script. It will add a cpoint to every selected edge's vertices. Then export this as a dxf...
In reverse Didier Bur has several tools for importing xyz data into SUp as cpoints and then triangulating them...
-
Hi TIG,
in Sketchup i'm working with meters. The triangulation program works also in meters. I tried your advices but without success. It seems that this program needs a reference point to calculate the height. When i inserted a point in the 3D space in sketchup then a average height of 3012 m is shown but the triangulation is messed up. If you need more information please ask.
Karlheinz
-
Have you added a cpoint at the origin to see if that helps ?
What is the problem exactly ? It's clearly making a surface. Is it making things too small or too big, or wrong in one direction like Z heights ?
Unfortunately I don't know this program you are trying to import in to... -
The idea was to export the terrain into this Diolkos road design software for designing the road contour and afterwards bringing the terrain back into sketchup for further modelling. This software seemed to be simple to work with but it isn't. May be i will find a simple 3d Software where i can do that works.
Karlheinz
-
If it's making a surface that's 'right' but perhaps scaled in some axis wrongly then you can still import it into SUp and scale the resultant component in that axis and relocated the mesh to suit ?
Alternatively model the road in plan 'flat' in SUp, keep it in a group so it doesn't clash with other things, divide it into areas that will have equal slopes, group each bit, rotate the bits about the junction edges, to the required falls and then move them to snap together at common edges to suit, explode them inside the single group, place the group above the surface-copy where you want the road, use the sandbox/stamp selecting the group and the thing will stamp onto the surface with embankments and cuttings [set its 'offset' to say 3m, if the likely cut/fill is 1m], adjust height of whole lot in Z and the cut/fill adjust with that... move the group out of the way and work on the surface-copy...
You now have a3D road with cut/fill on the surface ? -
You can use the basic version (1.2.250) of this software:
Sorry... in spanish. It's for windows, a bit old. You can import any text file, triangulate, and export it to dxf.
-
Thank you Pichuneke,
the program looks interesting. I tried to install it but anything was wrong. Unfortunately i don't speak spanish so i couldn't read the messages given at the installation.
Karlheinz
-
Hi TIG,
in such a terrain it is nearly impossible to get a good result with that method. I will try it again with the steps i described in the quick road tutorial. It is much more work but the result looks better.
Karlheinz
-
@charly2008 said:
Thank you Pichuneke,
the program looks interesting. I tried to install it but anything was wrong. Unfortunately i don't speak spanish so i couldn't read the messages given at the installation.
Karlheinz
When you start it you must check the box, a message appears that says "Enviaré mis comentarios al foro cuando pueda" (I will send messages to the forum when I can). Don't worry, it's a bit absurd, but the software doesn't connect to internet.
Menu:
Archivo -> Importar -> Ascii (File -> Import -> Ascii). Select the extension of the file (.pun , .xyz , .dat , .txt, .csv...)
A menu appears. You have a box with something like NXYZC (Name, X Coordinates, Y Coordinates, Z Coordinates, Comments). It's self-explanatory.
At left, you have to select the separator: , comma, space, tabulation, columns...
At right:
El separador decimal es una coma: Decimal separator is a comma.
El separador de miles es un punto: Thousands separator is a point (like 2.009).
Click on Importar.
On Menu: Click on MDT -> Triangular...
Maxima diferencia de los lados: Maximum distance between generated triangle, test with bigger values if you have some problems. Click Aceptar.
Fix Manually the problems with the triangulation with: MDT -> Permutar. Click on the green lines, you can see the model changing its shape.
When finished:
Menu: Archivo -> Exportar -> Dxf(3D)
This is a fast guide. Sometimes I add manually points to get better results, the program can interpolate the Z coordinate or a Z value inserted manually.
-
Hi Pichuneke,
thanks for your efforts but i couldn't install the program. Do you have some screen shots from works you have done with this program? to give me an impression.
Karlheinz
Advertisement