Hi Alban
Glad to see the function is getting used - even without a proper interface! I am planning on adding an interface too.
Your image got squeezed too much so it's hard to see what it shows.
One way to do this is by using the center of the sector, the point passed to the DTCreateCircularSector
function.
This center can be offset in the same direction and distance as the middle line of the sector and so giving you the middle of the curved section.
You can use the function Offset to do this: Offset( object, angle, distance, units )
Do let me know if you need more information
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 08-16-2023 01:37
From: Alban Spella-Barberet
Subject: Drawing relations between circular sectors
Hello,
Peter shared a very informative post about creating circular sectors about 2 months ago in the post below
MapInfo Pro
Precisely | remove preview |
| MapInfo Pro | Happy #MapInfoMonday!In today's article, I want to highlight a hidden feature of the DrawTools add-in that you can download from the MapInfo Marketplace. DrawTo | View this on Precisely > |
|
|
Next step is to display relations between sectors, basically what I got in mind is to locate the centroid of the circular section and draw a line between basically 2 sectors.
- Is there a way to find the middle point of the curved section from the fucntion DTCreateCircularSector(oCenter, fDirection, fRadius, fAngleWidth, nResolution, nCalculationMethod)
- I reckon once found, it is just matter to draw a line between the 2 points.. somehow with a trick to ovoid overlapping lines in case of 2 ways relations and multiple overlapping sectors.
Thanks
Best regards
Alban
------------------------------
Alban Spella-Barberet
NBN Co Limited
North Sydney NSW
------------------------------