Right Square Frustum

Have jReality programming problems or questions? Post them here.
Post Reply
NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Right Square Frustum

Post by NormanGraf » Thu 21. May 2015, 20:20

Hello, can anyone point me to an efficient implementation of a right square frustum (truncated square pyramid)? I'm interested in creating a model of an object composed of several hundred such volumes. All have the same shape, but are placed at different positions.
Thank you.

User avatar
gunn
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin
Contact:

Re: Right Square Frustum

Post by gunn » Fri 4. Sep 2015, 16:51

I'm pretty sure the most efficient implementation would be an IndexedFaceSet. You could take the cube as defined in the tutorial here and just change four of the coordinates to convert it into the desired right square frustrum.
jReality core developer

Post Reply