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 »

Do you typically connect to circular curves directly with a spiral?
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 Jun 07, 2019 7:17 pm Do you typically connect to circular curves directly with a spiral?
I think you talking about that. It comes from previous arc radius and connecting to next arc radius.

Code: Select all

				<Curve rot="cw" chord="1982.471830835185" crvType="arc" delta="44.821592613698" dirEnd="88.913727421587" dirStart="133.735320035285" external="212.409440035043" length="2033.939354671531" midOrd="196.367049631561" radius="2600.000000281714" tangent="1072.215863769001">
					<Start>4289508.380882925354 498833.846224466339</Start>
					<Center>4291305.833562298678 500712.453119715734</Center>
					<End>4291355.124095283449 498112.92038385279</End>
					<PI>4290283.100927023217 498092.593425624247</PI>
				</Curve>
				<Spiral length="119.5604434" radiusEnd="1749.99999925989" radiusStart="2600.000000281906" rot="cw" spiType="clothoid" theta="3.274598165011" totalY="3.193225983252" totalX="119.501474579495" tanLong="63.690314384002" tanShort="55.902435497454">
					<Start>4291355.124095283449 498112.920383852615</Start>
					<PI>4291418.802963429131 498114.127818291716</PI>
					<End>4291474.543556556106 498118.378532640869</End>
				</Spiral>
				<Curve rot="cw" chord="489.372289282862" crvType="arc" delta="16.074936823812" dirEnd="69.564192432764" dirStart="85.639129256577" external="17.361061370264" length="490.981005387155" midOrd="17.190520976104" radius="1749.999999259861" tangent="247.113579598785">
					<Start>4291474.543556556106 498118.378532640869</Start>
					<Center>4291341.476901379414 499863.312131002021</Center>
					<End>4291952.502951218747 498223.450196622347</End>
					<PI>4291720.941721033305 498137.168576926517</PI>
				</Curve>
I never use a spiral like that. That alignments coming from design office.
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 Jun 07, 2019 7:27 pm I never use a spiral like that. That alignments coming from design office.
Ok. I guess I'm trying to determine what the use cases are for that. I might be able to implement a general solution to accommodate those, but I don't know if I can. It looks difficult.

At very least, spiral support is in place for standard clothoids (tangent - spiral - arc - spiral - tangent).

Dev branch is updated.
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 Jun 07, 2019 7:50 pm At very least, spiral support is in place for standard clothoids (tangent - spiral - arc - spiral - tangent).

Dev branch is updated.
Is it support spiral-arc-spiral-spiral-arc-spiral? I will test it after 3 or 4 days later
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 Jun 07, 2019 8:04 pm Is it support spiral-arc-spiral-spiral-arc-spiral? I will test it after 3 or 4 days later
Yes, but only if the adjacent spirals have infinite radius at the connecting ends (as though they were connected to lines).

The solution for spirals with two non-infinite radii looks achievable, but it's more math than I'm normally used to. :)
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 Jun 07, 2019 9:02 pm The solution for spirals with two non-infinite radii looks achievable, but it's more math than I'm normally used to. :)
I hope you can find a way for it :)
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 »

Yeah... no promises. I was hoping I could just ignore that for some time.
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 »

Looks wierd :) Also you need to rename freecad.trails/freecad/trails/geometry/Spiral.py in lowercase
menemen.png
menemen.png (96.3 KiB) Viewed 951 times
menemenC3D.png
menemenC3D.png (133.93 KiB) Viewed 948 times
Last edited by HakanSeven12 on Wed Jan 06, 2021 6:49 pm, edited 1 time in total.
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: Tue Jun 11, 2019 6:37 am Looks wierd :) Also you need to rename freecad.trails/freecad/trails/geometry/Spiral.py in lowercase
Hmm.. Yeah. It does seem a bit.. off. :)

I did actually rename it to lowercase, but since I'm currently working in it, I haven't committed anything yet.

I think I've figured out the mathematical model for generating clothoids with two radii... I think. No idea how long it'll take to implement, though.

Anyway, I'll try to take a closer look at your file. At least it's interesting to look at. :lol:
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 »

Getting closer...
Capture.JPG
Capture.JPG (26.78 KiB) Viewed 860 times
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
Post Reply