Civil engineering feature implementation (Transportation Engineering)

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

HakanSeven12 wrote: Fri Apr 26, 2019 8:18 pm I dont think its about bearing. Its totally have diffrerent coordinates from my road.I added my road surface too. Its far far away from my model.
There may be a coordinate issue, but if you look at the two screenshots, it seems obvious to me that your bearings in Civil3D are not the same as FreeCAD.

I think your initial tangent was around 12 or 13 degrees. It looks to me like your Civil3D alignment starts at 12 or 13 degrees counterclockwise from East. In FreeCAD, the alignment starts at that same angle, but clockwise from North.

Anyway, once the angles are certain, we can sort out the coordinate issues.

As for the coordinates, FreeCAD uses mm as it's base units - at least that's how it seems to me - so all of your alignment coordinates are multiplied by 1000 accordingly. I'm guessing you aren't doing that with your surfaces?
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Fri Apr 26, 2019 8:38 pm There may be a coordinate issue, but if you look at the two screenshots, it seems obvious to me that your bearings in Civil3D are not the same as FreeCAD.

I think your initial tangent was around 12 or 13 degrees. It looks to me like your Civil3D alignment starts at 12 or 13 degrees counterclockwise from East. In FreeCAD, the alignment starts at that same angle, but clockwise from North.

Anyway, once the angles are certain, we can sort out the coordinate issues.

As for the coordinates, FreeCAD uses mm as it's base units - at least that's how it seems to me - so all of your alignment coordinates are multiplied by 1000 accordingly. I'm guessing you aren't doing that with your surfaces?
When Im creating surface, I take triangulation points from file.

Thats my point file format(meter)

Code: Select all

1 507830.722 4273070.997 66.914
2 507831.859 4273078.374 67.623
3 507837.486 4273076.186 68.234
4 507839.698 4273076.137 68.52
5 507841.981 4273077.116 69.505
6 507841.913 4273080.706 71.113
7 507845.855 4273083.253 71.823
8 507843.249 4273076.988 69.624
9 507847.509 4273079.953 70.084
10 507849.825 4273074.81 70.333
11 507852.905 4273078.092 71.438
12 507854.909 4273083.91 73.285
13 507857.945 4273081.287 74.279
14 507852.776 4273073.867 72.214
15 507853.802 4273075.076 72.593
16 507856.055 4273075.817 72.795
17 507859.707 4273076.959 74.679
18 507858.31 4273081.246 74.379
Thats my point creation code

Code: Select all

 Point = Draft.makePoint(X = float(row[E])*1000, Y = float(row[N])*1000, Z = float(row[Z])*1000, color = (0.37,0.69,0.22) , name = "Point", point_size = 3)
Surface.png
Surface.png (114.06 KiB) Viewed 967 times
Take a look
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

Your XML file reads:

Code: Select all

				<Line dir="11.686069158648" length="12.605070691551">
					<Start>4275008.763656999916 507497.266156999976</Start>
					<End>4275011.316804010421 507509.609950885235</End>
				</Line>
Thus the points appear reversed. I've assumed X is the first coordinate and Y is the second.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Fri Apr 26, 2019 9:03 pm Your XML file reads:

Code: Select all

				<Line dir="11.686069158648" length="12.605070691551">
					<Start>4275008.763656999916 507497.266156999976</Start>
					<End>4275011.316804010421 507509.609950885235</End>
				</Line>
Thus the points appear reversed. I've assumed X is the first coordinate and Y is the second.
First coordinate is Norting second one is Easting
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

HakanSeven12 wrote: Fri Apr 26, 2019 9:45 pm First coordinate is Norting second one is Easting
Surveyors. :roll:
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

You are right though. I looked more closely at the documentation for LandXML and it clearly states the text value of the node is to be "Northing Easting" or "Northing Easting Elevation".

I'll put that at the top of my list to fix. ;)

I might also try to get clothoid support back next week - no promises though. Getting kinda busy at work.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Fri Apr 26, 2019 9:56 pm Surveyors. :roll:
I can't say x-y because some countries uses y-x coordinates. But Northing-Easting meaning is same for everyone :)
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Fri Apr 26, 2019 10:01 pm You are right though. I looked more closely at the documentation for LandXML and it clearly states the text value of the node is to be "Northing Easting" or "Northing Easting Elevation".

I'll put that at the top of my list to fix. ;)

I might also try to get clothoid support back next week - no promises though. Getting kinda busy at work.
Good news :)
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

HakanSeven12 wrote: Fri Apr 26, 2019 10:05 pm I can't say x-y because some countries uses y-x coordinates. But Northing-Easting meaning is same for everyone :)
Fixed.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Sat Apr 27, 2019 11:05 am Fixed.
Yes :) I think you can use red as default color of alignment

I will test it with my other alignments
al-surf.png
al-surf.png (105.31 KiB) Viewed 893 times
Post Reply