Sign in to follow this  
Matt Aufderheide

Scaling a cube of patches

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 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this