Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

Is there a way to create pointy tiles/pyramids in java fx?

asked in CSC335 Fall 2022 by (1 point)

2 Answers

+7 votes

I was able to do it with a trick illusion cause I didn’t want to blow my brains out with triangle mesh. You can stack up multiple boxes and make them smaller and smaller as they go up to approximate a prism.

answered by (1 point)
edited by
+4 votes

For the pyramids, you make a loop that creates Boxes that are actually squares, and you add the squares on top of each other with a decrement in size.

answered by (1 point)
...