CSPrimCylinder

class CSXCAD.CSPrimitives.CSPrimCylinder

Bases: CSPrimitives

Cylinder Primitive

A cylinder is defined by its axis and a radius. The axis is defined by two 3D coordinates (start/stop).

Parameters:
start(3,) array

Axis start point vector (3,) array

stop(3,) array

Axis stop point vector (3,) array

radiusfloat

The cylinder radius

GetRadius()

Get the cylinder radius.

Returns:

float – Cylinder radius.

GetStart()

Get the axis start coordinate.

Returns:

(3,) ndarray – Axis start coordinate.

GetStop()

Get the axis stop coordinate.

Returns:

(3,) ndarray – Axis stop coordinate.

SetRadius(val)

Set the cylinder radius

Parameters:

val – float – Set the cylinder radius

SetStart(coord)

Set the start coordinate for the cylinder axis.

Parameters:

coord – list/array of float – Set the axis start point coordinate.

SetStop(coord)

Set the stop coordinate for the cylinder axis.

Parameters:

coord – list/array of float – Set the axis stop point coordinate.