CSPrimSphere

class CSXCAD.CSPrimitives.CSPrimSphere

Bases: CSPrimitives

Sphere Primitive

A sphere is defined by its center and radius. The center is defined by a 3D coordinate.

Parameters:
center(3,) array

Center point vector (3,) array

radiusfloat

The sphere radius

GetCenter()

Get the sphere center point.

Returns:

(3,) ndarray – Center coordinate.

GetRadius()

Get the sphere radius.

Returns:

float – Sphere radius.

SetCenter(val)

Set the sphere center point.

Parameters:

coord – (3,) array – Set the sphere center point.

SetRadius(val)

Set the sphere radius

Parameters:

val – float – Set the sphere radius