Cog3DSphere Constructor (Double, Cog3DVect3, Cog3DShapeStateConstants)Cognex VisionPro
Constructs a sphere using the specified radius, center, and Cog3DShapeStateConstants.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax

public Cog3DSphere(
	double radius,
	Cog3DVect3 center,
	Cog3DShapeStateConstants shapeState
)

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

ExceptionCondition
ArgumentException If radius is less than 0.
ArgumentException If shapeState is neither Cog3DShapeStateConstants.Surface, nor .Volume.
See Also