ViewShapeBuilder.ValidateCurve(Curve)
Method
Description:
Validates curve to be added to the view-specific shape being constructed. Called by AddCurve() to validate input. Expects a valid view normal to be set prior to the call.
Validates curve to be added to the view-specific shape being constructed. Called by AddCurve() to validate input. Expects a valid view normal to be set prior to the call.
Remarks:
This function may be used to pre-validate the geometry being added to avoid AddCurve() throwing an InvalidArgumentException Validation conditions depend on the type of view for which the shape representation is intended. For plan views, a curve is expected to be planar and non-degenerate (e.g., NOT a circle of zero radius).
This function may be used to pre-validate the geometry being added to avoid AddCurve() throwing an InvalidArgumentException Validation conditions depend on the type of view for which the shape representation is intended. For plan views, a curve is expected to be planar and non-degenerate (e.g., NOT a circle of zero radius).
Parameters
Parameter | Type | Description |
---|---|---|
GCurve | Curve | Curve object to be validated. |
Return Value
Type | Description |
---|---|
Boolean | True is %GCurve% is acceptable as a part of view-specific shape representation being built. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |