Constructs a sphere using the specified radius, center, and
Cog3DShapeStateConstants.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- radius
- Type: System Double
The radius of the sphere. radius must be >= 0.
- center
- Type: Cognex.VisionPro3D Cog3DVect3
The center of the sphere.
- shapeState
- Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this sphere. Must be Cog3DShapeStateConstants.Surface, or .Volume.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If radius is less than 0. |
| ArgumentException | If shapeState is neither Cog3DShapeStateConstants.Surface, nor .Volume. |
See Also