fmeobjects.FMEGeometryTools.closeCurve
- FMEGeometryTools.closeCurve()
closeCurve(curve),
This checks to see if the current curve is closed. A closed curve is defined as one where the start and end points are equal. If necessary this method will add a straight segment from the end point to the start point to force the curve closed. If
None
is passed in, nothing will be done andNone
will be returned. The returned geometry may or may not be the original object that was passed in. If a different object is returned, the original object will be destroyed.- Parameters:
curve (FMECurve or None) – The curve to close.
- Return type:
FMECurve or None
- Returns:
The closed curve. Note: This method returns a terminal geometry type of the
FMECurve
; i.e. one of the leaf classes in theFMECurve
inheritance graph. For example, aFMEArc
.- Raises:
FMEException – An exception is raised if an error occurred.