logoalt Hacker News

Cargo4286today at 3:18 AM1 replyview on HN

Here's an ellipsoid in build123d using geometric transformation of a sphere:

    from build123d import *
    mat = Matrix([[2,0,0,0],[0,1.5,0,0],[0,0,0.5,0]])
    ellipsoid = Sphere(100).transform_geometry(mat)
Also, FYI build123d now runs in the browser thanks to OCP.wasm. Example playground here https://jojain.github.io/build123d-sandbox/

Replies

asimeqitoday at 3:47 AM

If you are using build123d, probably the easiest way is to sketch an ellipse and revolve it.

show 1 reply