The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Reposition 3D plane slice
Replies: 16   Last Post: Jun 15, 2012 5:22 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 11
Registered: 6/14/12
Reposition 3D plane slice
Posted: Jun 14, 2012 3:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <jrd9c5$hap$>...
> "Matt J" wrote in message <jrd7ph$a7s$>...
> >
> > you can rotate all the points into the xy-plane as follows
> >
> > u=cross(Ztilt, [0 0 1]);
> > deg=asind(norm(u));
> >
> > NewPoints = AxelRot(YourPoints, deg, u);

> Here, Ztilt is the normal to your original 3D plane. NewPoints will be 3D but you can ignore the z-coordinates (they should all be the same).

I've managed to plot everything again - but it doesn't look right. The shapes are preserved, but none of them are lying in just the x-y axis, they've all still changed in the z direction as well. Is this perhaps because my assumption that x0 = [0 0 0] is incorrect?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.