How can I generate equations for 3D objects beyond the

lilmoore11p8

lilmoore11p8

Answered question

2022-07-10

How can I generate equations for 3D objects beyond the basics like spheres, cubes and pyramids? For example, how about a diamond?

Answer & Explanation

vrtuljakc6

vrtuljakc6

Beginner2022-07-11Added 16 answers

Step 1
One common way to represent 3D shapes is by using implicit equations. The idea is to fabricate a real-valued function f : R 3 R , and then the 3D object is the set { ( x , y , z ) R 3 : f ( x , y , z ) 0 }
Some examples:
f ( x , y , z ) = x 2 + y 2 + z 2 r 2 gives a sphere of radius r.
f ( x , y , z ) = x 2 + y 2 r 2 gives a cylinder of radius r.
f ( x , y , z ) = x 2 + 4 y 2 + 9 z 2 1 gives an ellipsoid.
f ( x , y , z ) = max { | x | 1 , | y | 1 , | z | 1 } gives a cube.
f ( x , y , z ) = max { | y + z | 1 , | z + x | 1 , | x + y | 1 } gives a diamond shape.
In general, use of “max”, as in the last two examples, gives you the intersection of simpler shapes.
This page tells you about implicit surfaces, described by equations of the form f = 0 . If you just replace the = 0 by 0 , you generally get a representation of a solid object enclosed by the surface, as I described above.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?