0

I am completely lost on this one -- I can't find any similar question on the net. Given the radius of an unknown spherical object, and the number of faces (minimum of 6), how would I get the size and 3D offset (position and rotation) (origin at 0,0,0) of each of those?

In this case, Y is the vertical axis and the Z axis represents depth, with -1 being forward and 1 being backward.

Programming this in Lua, but any other language / pseudo-code is welcomed.

user1118321
  • 25,567
  • 4
  • 55
  • 86
Drew
  • 670
  • 8
  • 26

1 Answers1

0

then you have not searched properly

You did not provide enough information

  • so I am assuming that you want to construct sphere from the same shape/sized polygons

I would start like this:

  1. find equidistant points

    • these will be the vertexes
    • how to do it is explained in the first link
  2. make connections to form the faces

    • just loop between layers and connect the points as you need
    • an example of rectangular grid/faces is in the second link

The main problem is that

  • if your faces are the same shape/size (not triangles)
  • then you can not use any number of faces but only some are valid
  • the lower limit is not enough
Community
  • 1
  • 1
Spektre
  • 49,595
  • 11
  • 110
  • 380