<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi,<br>
<br>
I have a 3D axes. I want to make my x axis as constant.Means X axis
should not move.But i need to move Y and Z axis.Menas it will be
like that i need to move a 3D object based on x axis.This is my
existing code.<br>
<br>
vtkCubeSource cubeSource = vtkCubeSource.New();<br>
//cubeSource.SetCenter(0.0, 0.0, 0.0);<br>
//cubeSource.SetRadius(0.5);<br>
<br>
//create a mapper<br>
vtkPolyDataMapper cubeMapper = vtkPolyDataMapper.New();<br>
cubeMapper.SetInputConnection(cubeSource.GetOutputPort());<br>
<br>
// create an actor<br>
vtkActor cubeActor = vtkActor.New();<br>
cubeActor.SetMapper(cubeMapper);<br>
<br>
// a renderer and render window<br>
vtkRenderWindow renderWindow =
renderWindowControl1.RenderWindow;<br>
vtkRenderer renderer =
renderWindow.GetRenderers().GetFirstRenderer();<br>
renderer.SetBackground(0.2, 0.3, 0.4);<br>
<br>
// add the actors to the scene<br>
renderer.AddActor(cubeActor);<br>
<br>
vtkAxesActor axes = vtkAxesActor.New();<br>
// The axes are positioned with a user transform<br>
vtkTransform transform = vtkTransform.New();<br>
transform.Translate(0, 0.0, 0.0);<br>
axes.SetUserTransform(transform);<br>
axes.SetTotalLength(5, 5, 5);<br>
axes.SetAxisLabels(1);<br>
axes.SetTipType(1);<br>
<br>
renderer.AddActor(axes);<br>
renderWindow.Render();<br>
<br>
<div class="moz-signature">-- <br>
<br>
<font color="#262626" face="calibri,sans serif,arial" size="2">
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" valign="top" width="230"><span
style="line-height:100%"><font color="#262626"
face="calibri,sans serif,arial" size="2">Regards,<br>
<font color="#5C83B4"><b>ARINDAM SAHA<br>
Software Engineer</b></font><br>
Triassic Solutions Pvt. Ltd.<br>
(+91) 471 2700050 (Office)<br>
9746145220 (Mobile)</font></span></td>
</tr>
<tr>
<td valign="top" width="100%"><a
href="http://www.triassicsolutions.com"><img
src="cid:part1.05070101.05020706@triassicsolutions.com"
border="0"></a></td>
</tr>
<tr>
<td><span style="line-height: 75%"><font color="#1F497D"
face="calibri,sans serif,arial" size="2"><br>
Disclaimer: This e-mail contains confidential
information intended solely for the intended
recipient. If you are not the intended recipient,
please notify the sender by e-mail and delete this
email permanently from your records. Do not copy
or distribute this e-mail and any such actions are
unlawful. Except where this email is sent in the
usual course of business, the views expressed in
this email are those of the sender. Triassic
Solutions Pvt. Ltd. accepts no responsibility for
any indirect damage or loss suffered by reason of
inaccuracy or incorrectness of the information in
this email.</font></span><br>
<span><font color="#33CC00" face="calibri,sans
serif,arial" size="2">+ Please consider our
environment before printing this e-mail.</font></span></td>
</tr>
</tbody>
</table>
</div>
</font></div>
</body>
</html>