• Advertisement
Sign in to follow this  

Scaling a cube of patches

This topic is 2628 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Say i have a cube made out of flat square patches... each face of the cube is made out of 16 patches. Assume cube is always going to be centered at 0,0,0 and each patch has its own position and is oriented in the correct manner to make a cube..

Now i want to scale this uniformly...so obviously i need to scale the patches themselves which is simple, and then adjust their positions accordingly.

I tried something like this:

1) scale patches
2) pvector=normalize patch position
3) new position=pvector*some number...

this doesnt work..i think the basic idea is wrong and i cant think of a correct way.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement