SurfaceDefinitionContoursAddContours(Point2dCollection, Double, Double, Double, Double, SurfaceMinimizeFlatAreaOptions) Method |
Adds contours to a surface from a 2d point collection, and minimizes flat areas.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic SurfaceOperationAddContour AddContours(
Point2dCollection points,
double midOrdinateDistance,
double maximumDistance,
double weedingDistance,
double weedingAngle,
SurfaceMinimizeFlatAreaOptions options
)
Public Function AddContours (
points As Point2dCollection,
midOrdinateDistance As Double,
maximumDistance As Double,
weedingDistance As Double,
weedingAngle As Double,
options As SurfaceMinimizeFlatAreaOptions
) As SurfaceOperationAddContour
public:
SurfaceOperationAddContour^ AddContours(
Point2dCollection^ points,
double midOrdinateDistance,
double maximumDistance,
double weedingDistance,
double weedingAngle,
SurfaceMinimizeFlatAreaOptions options
)
Parameters
- points Point2dCollection
- A collection of 2d 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.
- options SurfaceMinimizeFlatAreaOptions
- Specifies the options for minimizing flat areas on a surface.
Return Value
SurfaceOperationAddContour
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The count of points is less than two.
- 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.
- If all the properties in options are false, the parameter is ignored.
See Also