<div dir="ltr">You can use <span style="color:rgb(128,0,128)">vtkMath</span>::<span style="color:rgb(0,103,124)">Perpendiculars</span>(A,B,C,0) to generate the other two directions, where A is p0-p1 or p1-p0</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">richard anderson via vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> 于2019年3月13日周三 上午3:28写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I would like to use vtkImageReslice to get the cross section of a curve at a<br>
point P0. <br>
<br>
To compute the reslixeAxes, I would like to use P0 and its neighboring point<br>
P1 to decisde the direction. <br>
<br>
As you know, resliceAxes is a vtkMatrix4x4. I think it should be somehting<br>
as:<br>
<br>
A, B, C, P0.x<br>
D, E, F,  P0.y<br>
G, H, I,  P0.z<br>
0,  0, 0,   1<br>
<br>
Can anyone let me know how to compute the value of {A, B, ... I}  based on<br>
P0 and P1? <br>
<br>
Thank you!<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>