Help with Scale Manipulator!!!

Anonymous 9 years ago 0
This discussion was imported from CodePlex

Raathigesh wrote at 2013-01-22 16:41:


First of all thank you for the excellent toolkit.

I saw the example where translate manipulator used as a scale manipulator.

Example in xaml :

<ht:SphereVisual3D x:Name="sphere1" Center="-4,0,0" Fill="Orange"/>
<ht:TranslateManipulator Color="Black" Position="-4,0,0" Offset="0,0,1" Length="1" Value="{Binding Radius, ElementName=sphere1}" Direction="0,0,1"/>

Can some one please guide to do the exact same thing in code behind. 

  EllipsoidVisual3D sphere = (EllipsoidVisual3D)model.Visual3D;

  TranslateManipulator x = new TranslateManipulator();
   x.Direction = new Vector3D(0, 0, 1);
   x.Length = 10;
   x.Color = Colors.Black;

  //Guide me to use this as a scale manipulator instead of Translate Manipulator

Thanks :)