SurfaceDefinitionContoursAddContours(Point3dCollection, Double, Double, Double, Double) Method

Adds contours to a surface from a collection of 3d points.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public SurfaceOperationAddContour AddContours(
	Point3dCollection points,
	double midOrdinateDistance,
	double maximumDistance,
	double weedingDistance,
	double weedingAngle
)

Parameters

points  Point3dCollection
A collection of 3d points used to create contours.
midOrdinateDistance  Double
When the contour is defined from a polyline with curves, the midOrdinateDistance value is used to tessellate the arcs in the polyline.
maximumDistance  Double
Specifies the maximum distance between vertices. If the distance between vertices on a contour is greater than the maximumDistance, then points are added along the contour at equal intervals that are less than or equal to the maximumDistance.
weedingDistance  Double
The distance value for the weeding factor.
weedingAngle  Double
The angle value for the weeding factor.

Return Value

SurfaceOperationAddContour
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. The count of points is less than two.
  2. midOrdinateDistance <= 0.0, maximumDistance < 0.0, weedingDistance < 0.0 or weedingDistance >= maximumDistance
Remarks
The weeding factors ignore both vertices that are closer together than the distance factor and vertices that deflect less than the angle factor.
See Also