Author Topic: Transform points?  (Read 1305 times)

0 Members and 1 Guest are viewing this topic.

krkec

  • Guest
Transform points?
« on: March 12, 2012, 03:48:50 AM »
Hi

Is there a way to transform point with some matrix like this x,y,z --------> x,0,y??

fixo

  • Guest
Re: Transform points?
« Reply #1 on: March 12, 2012, 05:09:19 AM »
Did you mean
p2= p2.TransformBy(your matrix here)?

~'J'~

krkec

  • Guest
Re: Transform points?
« Reply #2 on: March 12, 2012, 05:27:39 AM »
I mean for example p1(1,2,3) should be transformed to p2(1,0,2)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Transform points?
« Reply #3 on: March 12, 2012, 05:34:30 AM »

You don't need a matrix for that

Try this
Code - C#: [Select]
  1.  
  2.             Point3d p1 = new Point3d(1.0, 2.0, 3.0);
  3.             Point3d p2 = new Point3d(p1.X, 0.0, p1.Y);
  4.  
  5.  
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

krkec

  • Guest
Re: Transform points?
« Reply #4 on: March 12, 2012, 01:35:54 PM »
Yes thats true
Thanks