06-10-2021, 06:45 AM
Hi,
if you have the two cells indices yes you can get the half way edge between these sites.
Here is a define example to do that:
You can for example call it with ("HalfWayEdge" (last From) (last To))
Regards,
Eric
if you have the two cells indices yes you can get the half way edge between these sites.
Here is a define example to do that:
Code:
(define "SharedCells" (intersection (sites Around #1) (sites Around #2)))
(define "HalfWayEdge"
(intersection
(sites Incident Edge of:Cell at:(regionSite ("SharedCells" #1 #2) index:0))
(sites Incident Edge of:Cell at:(regionSite ("SharedCells" #1 #2) index:1))
)
)
You can for example call it with ("HalfWayEdge" (last From) (last To))
Regards,
Eric