com.esri.arcgis.geometry
Interface IConstructCurve2

All Superinterfaces:
IConstructCurve, Serializable
All Known Subinterfaces:
IConstructCurve3
All Known Implementing Classes:
Polygon, Polyline

public interface IConstructCurve2
extends IConstructCurve, Serializable

Provides access to members that construct a curve using other geometries and measures.

Superseded By

IConstructCurve3

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void approximateByBeziers(IPolycurve pInCurve, Object pMaxDistance, Object smoothClosedParts)
          Constructs a curve which approximates the input curve by a small number of Bezier segments.
 
Methods inherited from interface com.esri.arcgis.geometry.IConstructCurve
constructExtended, constructKoch, constructOffset
 

Method Detail

approximateByBeziers

void approximateByBeziers(IPolycurve pInCurve,
                          Object pMaxDistance,
                          Object smoothClosedParts)
                          throws IOException,
                                 AutomationException
Constructs a curve which approximates the input curve by a small number of Bezier segments.

Description

ApproximateByBeziers constructs a curve consisting Bezier segments that being the approximation of input polycurve inCurve. The maxDistance parameter defines the maximum distance between the vertices of the input curve to the generated curve. If maxDistance is zero then for each segment of inCurve there is one Bezier segment created for this geometry. The parameter smoothClosedParts defines whether or not the last segment of the input polyline curve which is closed should be smoothed with the first segment of the curve. The smoothClosedParts parameter is only used if both this geometry and inCurve are polylines. If this geometry or inCurve is a polygon then smoothClosedParts is overwritten and set to true.

The resulting geometry is a polygon or polyline depending on the type of "this geometry" rather than the type of inCurve. If "this geometry" is a polygon and inCurve is a polyline with any open path, an error is returned (result is an empty polygon).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pInCurve - A reference to a com.esri.arcgis.geometry.IPolycurve (in)
pMaxDistance - A Variant (in, optional, pass null if not required)
smoothClosedParts - A Variant (in, optional, pass null if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.