Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How should I find VERTICES with this given information?... [Kinda Advanced]

Asked by 6 years ago
Edited 6 years ago

I'm not looking to completely leech, I've just been thinking hard on this, and wonder how I should go about doing it.

I didn't get PA on my geometry SOL, and I forgot everything I learned.

Sorry if I seem like i'm spoon-feeding.

But the problem is, I have # of sides of a shape, the number of vertices, radius and diameter, and the starting position.

I'm assuming you can presume +- towards a vertex to get the opposite vertex. So If I have a Hexagon, I'd only need to find 3 vertex positions.

Example.

I want to find the Vertices position relative to the center (mouse.Target) I know how far I want the radius to be ((mouse.Target).magnitude) I know that there are 6 sides so that I need to create at least 3 parts independently. I know that I would then replicate those 3 parts towards they're opposing positions (negative) But I do not know how I'd actually find the slope so that I could correctly and precisely position each vertex to create the shape and be equal with respect to magnitude, it's opposite shapes position, and the number of vertex.

If you understood that, could you point me in a direction? Thanks!!!

https://gyazo.com/ed113ba040168c2114c33ac9d8d09b3a I minor visual interpretation

0
I'm trying to work out what you want here - are you trying to work out the coordinates of the vertices of a regular polygonal prism, given the centre of the prism, its radius, and the number of sides of its cross section? fredfishy 833 — 6y
0
Wouldn't you also need its orientation in the world, or are we assuming this to always have the default lookvector? fredfishy 833 — 6y
0
Not really sure, I'm trying to find a formula that accepts #sides,center,diameter/radius that will return the necessary vertices. And I believe that involves finding the slope. Not sure if I need it's orientation. Simulants 52 — 6y
0
Well surely if I gave you a shape, and asked you to calculate its vertices, you'd get completely different answers if I rotated it 90 degrees and asked you the same thing, no? fredfishy 833 — 6y
0
For example: https://imgur.com/a/Nqg25Xf -- Both squares have the same number of cides, centre, diameter/radius, but both have different vertex coordinates. fredfishy 833 — 6y

Answer this question