HC_DInsert_Cylinder

Key HC_DInsert_Cylinder(DPoint const *center_point_1, DPoint const *center_point_2, double radius, char const *cap)
Key HC_DInsert_Cylinder(DPoint const center_point_1, DPoint const center_point_2, double radius, char const cap)

Similar to Insert_Cylinder(), but accepts parameters of type double for increased precision.

HC_Insert_Cylinder().

Parameters

center_point_1: Center of the first end of the cylinder.

center_point_2: Center of the second end of the cylinder.

radius: Radius of the cylinder.

cap: String specifying which ends to cap, either “first”, “second”, “none”, or “both”

Returns

The key to the inserted geometry, or -1 if an error occurred.