cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Durval
Expert

Profiles in GDL: How can I get X corresponding to the maximum Y?

From this thread (why is it closed to new replies?) – 'Profiles in GDL' – I learnt that we can easily REQUEST the coordinates of profiles' bounding boxes: 'xmin', 'ymin', 'xmax' and 'ymax'.

The question is: how can I get the 'x' corresponding to the point where 'y' has its greatest value, i.e., what's the x of ymax? 

 

Operating system used: Mac Apple Silicon Sonoma

--- www.dtabach.com.br ---

AC 28/29 BRA – MacBook Pro Apple M2 16GB RAM Mac OS Sequoia
Setup info provided by author
2 Replies 2
Barry Kelly
Moderator

That thread is nearly 8 years old, and old inactive threads get locked automatically.

 

The min/max is only reporting the min/max of the overall profile in relation to the origin.

It is not the actual co-ordinates for the points that are at the min/max.

 

I am not aware of any way to get the actual co-ordinates for the profile.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

Is it possible to use the Parameter Buffer with the MIN and MAX operations? Though how to check the position in the buffer of the return to get the corrisponding other coordinate is questionable...

 

ps. Could you insert the Parameter Buffer values into an array, then cycle through the values i+2 till it matches, at which point your other coordinate would be i+1?

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!