Constructs a sphere using the specified radius, rigid transform,
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 this sphere. Must be >= 0.
- shapeFromScaledUnitSphere
- Type: Cognex.VisionPro3D Cog3DTransformRigid
The rigid transform that maps the ScaledUnitSphere to a pose in 3D space.
- 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. |
| ArgumentNullException | If shapeFromScaledUnitSphere is null. |
| ArgumentException | If shapeState is neither Cog3DShapeStateConstants.Surface nor .Volume. |
See Also