Measuring length on a list of elements

PeterNikolaou shared this question 8 years ago
Answered

Hi to everyone!

Suppose you have any list of elements (segments and semicircles) and an attached point on it. Animate this point and you will see it moving all along the list of elements. Starting from one (any) point on the list of elements, is there a way to make a dynamic text (easy), showing the length of the current traveled distance between the starting point and the animated point?

Any ideas are welcomed!

Regards Peter

eaf15022bbab1ad2c8c71d76503ff2d6

Files: A.JPG

Comments (4)

photo
1

Hi


with version 4 PathParameter ?


Hi Noel,


thank you for your interesting example.


Is it possible to move M with smaller steps?


Regards Abakus

photo
1

Hi,


the movement is not smooth because point capturing is active. You can disable that using Options -> Point Capturing -> Off.


Florian

photo
1

Thank you for your help. This is all I need.

photo
1

Hi Noel


Thanks for this excellent solution idea!


In the appendix is an alternative algorithm, based on your idea.

Instead of using nested If[] it will use a list.

This is an advantage in case of many sub-objects of the path.

The alternative algorithm is colored blue.


What would be also a possibility: create a locus on the path by M.

Then the path parameter is proportional to the length (circumference).

But the precision is very low with this method.


Raymond

https://ggbm.at/553589

© 2020 International GeoGebra Institute