its the point that shows up once you turn on object snap -> geometric center on a closed polyline.
How do I gain access to referencing that point?
if not I am wondering about what is the algorithm they use to calculate that point. and its not as simple as take all the points and average them because the points distribution might be skewed on one side
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Hi,
The GeometryExtension library provides a Polyline.Centroid() and a Polyline.Centroid2d() methods.
You can also get a method which uses the same algorithm in this reply.
@jeff.wangD95HG a écrit :
thanks for the quick reply. this works. I used the region method in this reply.
The first one (GetPolylineCentroid) is much more faster.
Can't find what you're looking for? Ask the community or share your knowledge.