News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Mesh Tool to Show Terrain?

Started by minuteman64, October 28, 2021, 02:45:49 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

minuteman64

I've been playing around with the 3d Mesh tool with the idea that I could use it to depict the terrain on plot plan/landscape drawings.  Looks like it would do the job with a couple of "Buts."

First, I can create a terrain display by entering elevation data at the nodes when starting the Mesh tool.  However, that's not how I would develop my elevation data.  I would be shooting elevations at a variety of "non-grid" stations - changes in elevation, terrain features, etc.  I'm mystified as to how to enter this type of data in to a 3d mesh.  I tried laying the mesh grid over my data points and dragging the nearest mesh node to each data point.    I can't tell if that is giving a representative result.

Second issue is, my lot is trapezoid  shape and the mesh grid is a rectangle.   I thought I could create the mesh and then slice along the property lines.  However, when I do that, everything inside the mesh boundaries disappears. 

Anybody have any tips on how this is actually done?  Or a reference to a video/"how-to"?  My searches on this site and on-line haven't yielded anything useful.

Yeah, I know the Mesh tool is clumsy for showing terrain.  But, it would do the job and I won't be doing it enough to justify getting any sort of terrain modeling ad-on (even if one exists).

Torfinn

What edition of TC do you use ??

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

#2
I am doing an example now.  In my 2019 Deluxe.  I believe you are using Deluxe.

I have never done this with the 3D Mesh tool-- creating a something trapezoidal.  But this is what I'm doing (but probably won't finish); and it is working well (good?):
...
[deleted by Alvin; I didn't like it; too cumbersome and not completely accurate]

Can you provide us a Table of your terrain's coordinates.  X,Y,and Z.  Something similar to TurboCAD's 3D Mesh Tool's Table Of Vertices would suffice.  Created via Word Table or Excel or something similar.  Or just type them out, such as

0,0,0
1,10,2
3,7,3.5
3.25,8.5,4.5
...

Or just provide us whatever it is you're working off of.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

TC can only create meshes with default regular rectangular X,Y coordinates with arbitrary Z coords.   If your trapezoidal X,Y data is regular, you can node edit the rows and columns with the node edit tool, there's an option in the context menus for "selector mode" that lets you scale and transform multiple nodes proportionally to each other instead of the default absolute transformation applied to all nodes selected.  So, you can create the mesh with the Z coords you want initially and then format arbitrary non-rectangular X,Y data as point arrays in Excel or another spreadsheet app, select those rows and columns of coords and enter them into the "table of vertices" lists in "3D mesh shape" page of properties.  However, TC does recognise .dxf-format 3D meshes that have irregular layout if they're produced in more convenient apps, then imported into TC.  I've recommended Marcus Bole's PolyCAD program before, most recently here https://forums.turbocad.com/index.php/topic,28688.msg170201.html#msg170201  for the reasons listed.     

Alvin Gregorio

#4
Below is an example of having used Deluxe's 3D Mesh Tool to achieve a proximity of a terrain.
You can put your house on the top of that hill.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#5
https://forums.turbocad.com/index.php/topic,28688.0.html
In the discussion in the link.
Mark made the grid intervals closer where the terrain was more rugged.

Alvin how did you add depth to your "terrain"?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Jeff_in_90620

Quote from: Alvin Gregorio on October 28, 2021, 04:59:52 PM
* 3D Mesh terrain for minuteman -1.2.gif (30520.17 kB, 903x871

I downloaded your GIF and it really is 31.2 megabytes.  I thought the forum's file size limit was 8 MB.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

Quote from: Jeffin90620 on October 28, 2021, 11:37:27 PM
Quote from: Alvin Gregorio on October 28, 2021, 04:59:52 PM
* 3D Mesh terrain for minuteman -1.2.gif (30520.17 kB, 903x871

I downloaded your GIF and it really is 31.2 megabytes.  I thought the forum's file size limit was 8 MB.


Jeff

Yeah, I was surprised also.  I didn't even look at or know the size before I selected it to attach.
File size limit seems to change periodically.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#8
Quote from: nikkipollard on October 28, 2021, 10:47:12 PM
https://forums.turbocad.com/index.php/topic,28688.0.html
In the discussion in the link.
Mark made the grid intervals closer where the terrain was more rugged.

Alvin how did you add depth to your "terrain"?

I'm fairly confident that if minuteman provides us with his terrain data table-- or X,Y,Z points of it all in some format-- we can get it to work with 3D Mesh.  In Deluxe; minuteman is using Deluxe, 2021 I think.

I just changed the nodes' Zs, using the Edit Tool.  Mostly used Delta Z.  Also-- I Make Copy(ed) the 3D Mesh-- before entering any Z values-- 10 feet below, and used that to snap some of nodes to.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

minuteman64

Yes, using TC 2021 Deluxe.  I will post the drawing I am working on later today (it is a simulation, not real data, realistic however).

minuteman64

Here's the test example I am working on.  Shows lot lines, elevation shots and elevation data (simulated).  Pretty similar to the actual application I want to develop.

BTW, just to be clear, I'm on t looking to be handed a mesh, I want to learn how to draw the mesh (the old give a man a fish vs. teach a man to fish).

Alvin Gregorio

Quote from: minuteman64 on October 29, 2021, 10:27:35 PM
Here's the test example I am working on.  Shows lot lines, elevation shots and elevation data (simulated).  Pretty similar to the actual application I want to develop.

BTW, just to be clear, I'm on t looking to be handed a mesh, I want to learn how to draw the mesh (the old give a man a fish vs. teach a man to fish).

Yes, but if we're all working with-- and communicating via-- the same fishing pole and going after the same fish in the same lake, it aids the learning communication and process.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

Quote from: minuteman64 on October 29, 2021, 10:27:35 PM
Here's the test example I am working on.  Shows lot lines, elevation shots and elevation data (simulated).  Pretty similar to the actual application I want to develop.
BTW, just to be clear, I'm on t looking to be handed a mesh, I want to learn how to draw the mesh (the old give a man a fish vs. teach a man to fish).

Minuteman.  One thing you need to do, is sort out the errant point object which is away from the drawing,  See attached Gif image.  Stray objects can cause zoom problems further down the line.    This is just an observation, and nothing to do with your desire to learn meshes.

Quote from: Alvin Gregorio on October 30, 2021, 04:42:23 AM
Yes, but if we're all working with-- and communicating via-- the same fishing pole and going after the same fish in the same lake, it aids the learning communication and process.

Alvin.  Attached is the file in 2020,  in case you'd like a look.

Alvin Gregorio

Quote from: Andy H on October 30, 2021, 05:45:44 AM
...
Alvin.  Attached is the file in 2020,  in case you'd like a look.

Thanks Andy
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#14
Below is what I was able to accomplish, based on the limited provided grade points.

Having worked through this-- albeit, only partway thus far-- I believe it would be better to:  If intending on using the 3D Mesh Tool, when surveying out in the field, set up a grid which corresponds to the intended grid in TurboCAD's 3D Mesh.  Then provide all the grade points for that grid.

For example:  In the actual field (meadow, dirt, ditch, lawn, driveways, etc.), set up grid points that are 75'÷10 (7.5' spacing) in the X direction; and 169.76'÷17 (9.986' spacing) in the Y direction.  Then ascertain and note the Z values at each of the grid intersections.
Then input all that data into TurboCAD's 3D Mesh table, having inserted that 3D Mesh according to the above-described grid.
____
Credits to Nikki, for having created and shared her "Coordinate Point" PPM scripted Parametric Symbol.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#15
Still working through it.  Tip:  Use the lowest point as height (Z) equaling 0.  Subtract that field-ascertained Z value from the other grade heights, for entering into and creating 3D Mesh.

For example, from this minuteman's drawing:  Use the lower-right Z value of 100.0 as being the lowest point, entering a 3D Mesh value of 0.  Conveniently, this 100.0 is an easy in-the-head subtraction for us, in determining and entering the other Z values.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

minuteman64

Quote from: Andy H on October 30, 2021, 05:45:44 AM

Minuteman.  One thing you need to do, is sort out the errant point object which is away from the drawing,  See attached Gif image.  Stray objects can cause zoom problems further down the line.    This is just an observation, and nothing to do with your desire to learn meshes.

How did you find that?  It's probably an initial stab at setting an elevation data point - but, I cannot locate it.  This is a fairly consistent problem with my drawings (as I stumble around during the setup/initial stages), so if there is a technique for locating a floating object I'd sure like to know about it.

Alvin Gregorio

Attached is how I went about it, using 3D Mesh and restricting myself to using only tools available in Deluxe.  Such as the 3D Mesh.
If one explores this file, including the Layers I added and the contents within the Layers I added, one should (might?) get a fairly thorough understanding of how I went about it-- how I caught the fish, so to speak.  It's a tedious process.

For a professional, actual, project, many more survey grade points and their elevations would need to be provided.  As I said earlier, I suggest setting up a grid in the field that corresponds to the TurboCAD to-be 3D Mesh grid.  At the least, ensure that all the surveyed grade point locations (many more added) are at the to-be 3D Mesh grid locations.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Quote from: minuteman64 on October 30, 2021, 09:31:51 AM
Quote from: Andy H on October 30, 2021, 05:45:44 AM

Minuteman.  One thing you need to do, is sort out the errant point object which is away from the drawing,  See attached Gif image.  Stray objects can cause zoom problems further down the line.    This is just an observation, and nothing to do with your desire to learn meshes.

How did you find that?  It's probably an initial stab at setting an elevation data point - but, I cannot locate it.  This is a fairly consistent problem with my drawings (as I stumble around during the setup/initial stages), so if there is a technique for locating a floating object I'd sure like to know about it.

Set All Layers to be Visible and Unlocked.
Select All
Zoom Extents
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

minuteman64

Quote from: Alvin Gregorio on October 30, 2021, 09:45:30 AM


Set All Layers to be Visible and Unlocked.
Select All
Zoom Extents

That worked.  Thank you!

minuteman64

Quote from: Alvin Gregorio on October 30, 2021, 07:03:24 AM
Below is what I was able to accomplish, based on the limited provided grade points.

Having worked through this-- albeit, only partway thus far-- I believe it would be better to:  If intending on using the 3D Mesh Tool, when surveying out in the field, set up a grid which corresponds to the intended grid in TurboCAD's 3D Mesh.  Then provide all the grade points for that grid.

For example:  In the actual field (meadow, dirt, ditch, lawn, driveways, etc.), set up grid points that are 75'÷10 (7.5' spacing) in the X direction; and 169.76'÷17 (9.986' spacing) in the Y direction.  Then ascertain and note the Z values at each of the grid intersections.
Then input all that data into TurboCAD's 3D Mesh table, having inserted that 3D Mesh according to the above-described grid.
____
Credits to Nikki, for having created and shared her "Coordinate Point" PPM scripted Parametric Symbol.

That would make it easier to do the mesh, but (I think) harder to do the survey for a lot with a house in the middle and a lot of landscape features that might get in the way of the grid points.

When I make a plan of my (or any) lot I typically set up and shoot angles/distances to buildings, hardscape, prominent terrain features, etc.  as well as some stakes/markers where I would want additional elevation data.  Then switch to level mode and get the elevation data.  I'm looking for a method to accomodate this approach.

Alvin Gregorio

Okay, with $67 Deluxe, it's just going to be more time and effort.  But you'll get it, using 3D Mesh.  The more time and effort you give it, the more accurate it will be.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

An irregular 3Dmesh can't be created in one step from a coordinate list within TC.  The most direct way in TC is to create the mesh as a regular grid with your z coordinates, which can be copied and pasted from a spreadsheet in creation.  Then the X,Y rows or columns have to be entered from the list of vertices in properties - and you have to make sure that you've got them oriented the right way in the first place.  Meshes can be 255 x 255 nodes, so it's going to be a long-winded process if you've got more than a few nodes in either direction.
Instead of 3D mesh, ie if you don't need to be able to edit via the list of vertices afterwards, you can format a list of vertices in a text editor like notepad to script a surface as an .obj file.  To do that, make an arbitrary mesh with number of X x Y nodes as per your grid, select it and save as .obj.  Open the .obj with a text editor and you'll see that it's a simple list of vertices with "v" at the beginning of each triplet.  Below the coordinate is a list of faces with the index of the coordinates that it's built from.  Replace that list of coordinates with your own, save and close.  Insert the .obj into TC and there's your grid as a surface. 

Henry Hubich

#23
Quote from: minuteman64 on October 30, 2021, 11:40:34 AM
Quote from: Alvin Gregorio on October 30, 2021, 07:03:24 AM
Below is what I was able to accomplish, based on the limited provided grade points.

Having worked through this-- albeit, only partway thus far-- I believe it would be better to:  If intending on using the 3D Mesh Tool, when surveying out in the field, set up a grid which corresponds to the intended grid in TurboCAD's 3D Mesh.  Then provide all the grade points for that grid.

For example:  In the actual field (meadow, dirt, ditch, lawn, driveways, etc.), set up grid points that are 75'÷10 (7.5' spacing) in the X direction; and 169.76'÷17 (9.986' spacing) in the Y direction.  Then ascertain and note the Z values at each of the grid intersections.
Then input all that data into TurboCAD's 3D Mesh table, having inserted that 3D Mesh according to the above-described grid.
____
Credits to Nikki, for having created and shared her "Coordinate Point" PPM scripted Parametric Symbol.

That would make it easier to do the mesh, but (I think) harder to do the survey for a lot with a house in the middle and a lot of landscape features that might get in the way of the grid points.

When I make a plan of my (or any) lot I typically set up and shoot angles/distances to buildings, hardscape, prominent terrain features, etc.  as well as some stakes/markers where I would want additional elevation data.  Then switch to level mode and get the elevation data.  I'm looking for a method to accomodate this approach.

You should have enough data to interpolate with reasonable accuracy between your known points and points on a uniform grid. (If I recall correctly from school days, interpolation between known points is necessary when determining contour lines.)

Henry H

minuteman64

Quote from: Henry Hubich on October 30, 2021, 03:17:45 PM


You' should have enough data to interpolate with reasonable accuracy between your known points and points on a uniform grid. (If I recall correctly from school days, interpolation between known points is necessary when determining contour lines.)

Henry H

Yes, I've done the interpolation between points many times, using a variety of (clever, in my mind) techniques.  That was back in the 1950's, when I was an engineering student, on summer jobs, plotting contour lines manually.  That was when the office "computer" was a 40 lb. block of mechanical apparatus made by Freiden (I think) that could add, subtract, multiply and divide (with a lot of noise).  I now have a somewhat better computer on my desk, together with a pretty neat software package, and I want to make the best possible use of those capabilities. 

I think I've got enough ideas here to play with for a few days.  I'll report back on how it comes out.  Appreciate the input.