bernd wrote: ↑Fri Feb 05, 2021 7:48 amhas been added to pivy trackers
Code: Select all
from typing import Final
https://github.com/joelgraff/pivy_track ... ums.py#L26
but this is only available for Python 3.8 https://docs.python.org/3/library/typing.html (search for final) and a lot of system do not have Python 3.8 installed (including me on Debian Buster). Would it be possible to make some workaroud for them. Trails does not work ATM.
I added a function to view provider to get stations but you can move it in to alignment model and apply your tuple math codes(I'm not so familiar with that). Also I need a function that return station orthogonal vector angle to rotate label text. So I can make ticks and labels more compatible. Also I want to add labels for horizontal geometry points. So a function that returns that stations can be helpful
You can't just use what you use already to calculate section lines?
That's already done. It may not be ready for public consumption, though.. I'll take a look this week.
That is returning the offset points of stations. How can I get angle from it?
Does this help?
I didn't see your reply when I posted mine... To get the angle between, I have that built into the TupleMath module in freecad_python_support. I think it's also a function in the FreeCAD.Vector class.
Are you using the AlignmentModel class? You should be able to get actual stationing from that. Otherwise, I don't think I have a solution - at least, not one that can account for omissions / station equations along the alignment.