Returns a newly created shape model with the given weight and polarity. The 'Shape' property of the returned shape model will refer to this shape, or a copy of this shape, as specified by the CopyShape argument.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax
Parameters
- weight
- Type: System Double
The weight of the shape model.
- polarity
- Type: Cognex.VisionPro CogShapeModelPolarityConstants
The polarity of the shape model.
- copyShape
- Type: System Boolean
If True, the returned shape model refers to a copy of this CogCircle; otherwise the shape model refers to this CogCircle.
Return Value
Type: ICogShapeModelThe returned shape model.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | polarity is not in CogShapeModelPolarityConstants. |
Remarks
Returns a newly created CogShapeModel with the given weight and polarity.
The Shape property of the returned shape will refer to this shape or to a copy of this shape depending on the copyShape argument.
See Also