oh and "com.ixxy.polyhydra": "file:../../polyhydra-upm/packages/Polyhydra",

oh and "com.ixxy.polyhydra": "file:../../polyhydra-upm/packages/Polyhydra",
12 Replies
andybak
andybakOP5y ago
you need to clone the other repo in a sibling directory or edit packages.json to point to the github url https://github.com/IxxyXR/Polyhydra-upm
LACHLAN🍃
LACHLAN🍃5y ago
oh man this package would have been a lifesaver on a project I was working on last month I needed a hexagonal sphere and I knew the conway operations I had to do on it 😭
andybak
andybakOP5y ago
I love me some conway operations 🙂 Really underexplored topic. You can get some fantastic and unusual forms https://www.youtube.com/c/AndyBakerUK/videoshttps://www.youtube.com/playlist?list=PL94EgLgEIJyJQh_nB-CvSKbXjNU0ojNqC
andybak
andybakOP5y ago
I tried to make a version of the Blender spaceship generator using conway ops: https://www.youtube.com/watch?v=9Q9U69bmL6c&list=PL94EgLgEIJyJQh_nB-CvSKbXjNU0ojNqC&index=10&t=9s
Andy Baker
YouTube
Unity procedural spaceship generator
Implemented a procedural spaceship generator using my polyhedral bag of tricks: https://github.com/IxxyXR/Polyhydra-upm (Inspired by https://github.com/a1studmuffin/SpaceshipGenerator ) #unity3d #ProceduralArt #generative
LACHLAN🍃
LACHLAN🍃5y ago
yeeaaah this is the good stuff 😄 I had like 4 hours to get my hexagonal sphere so I made a brief start on conway ops and then noped out real quick
andybak
andybakOP5y ago
Oh if only we'd talked! I need to start a polyhedra hotline... "Need an unusual shape with point symmetry but no time to waste on doing the maths yourself? Call 01010131415"
LACHLAN🍃
LACHLAN🍃5y ago
for real
1pld
1pld5y ago
Iirc the problem was fairly shallow... A command's ctor was using global state as a hidden input, so recording the same command twice only works if that global state doesn't change. And the solution is to pass all inputs explicitly instead of relying on global variables
andybak
andybakOP5y ago
Yeah. I should have probably come back to you with some of my attempts - it might have clicked into place. I'll dig it out again when I've got the current thing to a good place
1pld
1pld5y ago
Ah yeah that's exactly it... The "current selection" is the global state I was taking about. The command should never have been written as "duplicate selection" it should have been "duplicate this list of strokes"
1pld
1pld5y ago
See also https://miro.com/app/board/o9J_lOuEFNU=/ for a variant of the problem with even more constraints. Andy I thought about it more and I think the problem is insoluble for the icosa and dodeca. At least, if you want to have only one pointer per face
andybak
andybakOP5y ago
Someone else mentioned it might be an analogue to the "hairy ball" problem!

Did you find this page helpful?