Here is a revolve example:
from cadquery.func import *
ellipse1 = face(ellipse(8, 6))
rect1 = face(rect(20, 20)).moved(x=-10)
res = revolve(ellipse1 - rect1, (0, 0, 0), (0, 1, 0), 360)
import cadquery as cq
from cadquery.func import sphere
sphere1 = sphere(1.0)
a_x = 5.0
a_y = 10.0
a_z = 2.0
transform_mat = cq.Matrix(
[
[a_x, 0, 0, 0.0],
[0, a_y, 0, 0.0],
[0, 0, a_z, 0.0],
]
)
ellipsoid1 = sphere1.transformGeometry(transform_mat)