Answers for "Creating a circle through all vertices of a triangle"
https://knowledge.safe.com/questions/53561/creating-a-circle-through-all-vertices-of-a-triang.html
The latest answers for the question "Creating a circle through all vertices of a triangle"Answer by takashi
https://knowledge.safe.com/answers/53588/view.html
<p>I would try this with a PythonCaller.</p><pre># PythonCaller Script Example
# Replace feature's geometry with a circle created from its first three vertices.
# Assume the input feature has a geometry having three or more vertices.
# The three vertices should have different coordinates, and any one of them
# should not be on the straight line passing other two vertices.
import fmeobjects
def createCircleFromThreeVertices(feature):
coords = feature.getAllCoordinates()
threeVertices = [fmeobjects.FMEPoint(*p) for p in coords[:3]]
arc = fmeobjects.FMEArc(tuple(threeVertices))
arc.setSweepAngle(360)
feature.setGeometry(fmeobjects.FMEEllipse(arc))
</pre>Wed, 20 Sep 2017 01:21:25 GMTtakashiAnswer by jdh
https://knowledge.safe.com/answers/53578/view.html
<p>Edit: This deals with the edge cases where two points are aligned vertically, two or more points are coincident and if there is anything other than 3 points<br><br></p><p><a id="11164" href="/storage/attachments/11164-circlefrom3points.fmw">circlefrom3points.fmw</a></p>Tue, 19 Sep 2017 22:49:48 GMTjdhAnswer by mrmartinstreet
https://knowledge.safe.com/answers/53564/view.html
<p>This might help:</p><p></p><p><a href="http://paulbourke.net/geometry/circlesphere/">http://paulbourke.net/geometry/circlesphere/</a></p><p>Scroll down to "Equation of a Circle from 3 Points"</p>Tue, 19 Sep 2017 22:05:27 GMTmrmartinstreet