Civil engineering feature implementation (Transportation Engineering)
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Civil engineering feature implementation (Transportation Engineering)
I think you talking about that. It comes from previous arc radius and connecting to next arc radius.Joel_graff wrote: ↑Fri Jun 07, 2019 7:17 pm Do you typically connect to circular curves directly with a spiral?
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>
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
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.HakanSeven12 wrote: ↑Fri Jun 07, 2019 7:27 pm I never use a spiral like that. That alignments coming from design office.
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Civil engineering feature implementation (Transportation Engineering)
Is it support spiral-arc-spiral-spiral-arc-spiral? I will test it after 3 or 4 days laterJoel_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.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
Yes, but only if the adjacent spirals have infinite radius at the connecting ends (as though they were connected to lines).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
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Civil engineering feature implementation (Transportation Engineering)
I hope you can find a way for itJoel_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.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Civil engineering feature implementation (Transportation Engineering)
Looks wierd Also you need to rename freecad.trails/freecad/trails/geometry/Spiral.py in lowercase
Last edited by HakanSeven12 on Wed Jan 06, 2021 6:49 pm, edited 1 time in total.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
Hmm.. Yeah. It does seem a bit.. off.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
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.
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation (Transportation Engineering)
Getting closer...
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers