A
A
Afafks1231321321652020-06-05 20:05:18
JavaScript
Afafks123132132165, 2020-06-05 20:05:18

Formulas for 3d objects?

I decided to render a 3D object on canvas. Are there any formulas for a simple 3D object. And which way to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petryaev, 2020-06-05
@Afafks123132132165

here's a 3d object x^2+y^2+z^2=1(or R^2)

A
Alexander Skusnov, 2020-06-06
@AlexSku

Usually a 3D object is a network of triangles (mesh). For example, a cube has 6 faces, each face is 2 triangles. An even (smooth) cylinder or sphere will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question