Jump to content

Change edges of decahedron


MichaelD
 Share

Recommended Posts

Hello,

I'm trying to increase the sizeY of a decahedron (Type 11 of polyhedra) like the one here http://www.babylonjs-playground.com/#AFXASF

to make it more like type (10 - Triangular Dipyramid (J12)) but with 10 faces (in general make it look more like a rombus/diamond/etc, more pointy at Y). Is there a way?

Types are from here: https://babylonjsguide.github.io/intermediate/Polyhedra_Shapes.html

 

Thanks.

Link to comment
Share on other sites

Hiya MD!  Essentially, taller?  https://www.babylonjs-playground.com/#AFXASF#4

It was "a bitch" to do, and I did lots of guessing.  :)

Disable lines 34-36, and re-RUN.  You can see that these darned polyhedra... are "crooked" within their boundingBoxes.  So, scaling them along any "sane" axis.. is a pain.

So, line 34 is Wingnut... doing trial/error... to get the mesh to be level with the camera (approximately - might need tweaking). 

Then, line 35... bake that rotation... weld that puppy in-place.

Line 36... do some scaling on the Y-axis. 

I hope I was helpful.  Maybe polyhedra-God @jerome will visit this thread, and we can ask him if better axial-alignment by-default...is possible.  @JohnK too... these guys are hot hedra-folk!  Super-Hedroids!  :)

SOME of those advanced 237-sided polyhedra are SO complicated... that it is difficult to determine "proper" orientations (where the axes should go).

Pick a rotation and bake it, I suppose.  :)  Whatever LOOKS good.  heh. 

Thank goodness for bakeCurrentTransformIntoVertices(), eh?  *nod*  Its 'got milk'.  :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...