Cog3DCylinder Constructor (Double, Double, Cog3DTransformRigid, Cog3DShapeStateConstants)Cognex VisionPro
Constructs a cylinder using the specified radius, height, rigid transform, and Cog3DShapeStateConstants.

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

public Cog3DCylinder(
	double radius,
	double height,
	Cog3DTransformRigid shapeFromScaledUnitCylinder,
	Cog3DShapeStateConstants shapeState
)

Parameters

radius
Type: System Double
The radius of this cylinder. Must be >= 0.
height
Type: System Double
The height of this cylinder. Must be >= 0.
shapeFromScaledUnitCylinder
Type: Cognex.VisionPro3D Cog3DTransformRigid
The rigid transform that maps the ScaledUnitCylinder to a pose in 3D space. May not be null.
shapeState
Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this cylinder. Must be Cog3DShapeStateConstants.Curve, .Surface, or .Volume.
Exceptions

ExceptionCondition
ArgumentException If radius is less than 0.
ArgumentException If height is less than 0.
ArgumentNullException If shapeFromScaledUnitCylinder is null.
ArgumentException If shapeState is not Cog3DShapeStateConstants.Curve, .Surface, or .Volume.
See Also