<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I also tried vtkSplineFIlter using SetSubdivideToLength() and
SetLength(distance).<br>
<br>
But the result is that the points are not equally distributed.<br>
<br>
When you provide a curve the beginning and ending points are not
equally distributed while the center points are.<br>
<br>
When you provide a straight line no points at all are equally
distributed.<br>
<br>
I get exact same result when using
vtkSplineFIlter/SetSubdivideToLength/SetLength and
vtkParametricSpline/SetParametricFunction/SetUResolution.<br>
<br>
May be I'm missing something ?<br>
<br>
On 10/07/2012 16:21, Bill Lorensen wrote:
<blockquote
cite="mid:CADZJ4hMWe9sTh_7vWD2LTVi5Gut0Sz6PSU3pss8kteaJU10RcA@mail.gmail.com"
type="cite">Look at vtkSplineFIlter<br>
Here is one use:<br>
<a moz-do-not-send="true"
href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FitSplineToCutterOutput">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FitSplineToCutterOutput</a><br>
<br>
<br>
<div class="gmail_quote">
On Tue, Jul 10, 2012 at 9:59 AM, Jean-Hugues Royer <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:jhroyer@joher.com" target="_blank">jhroyer@joher.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hi,<br>
<br>
I have a curve which is a vtkPoints array.<br>
<br>
I would like to generate another vtkPoints array where every
consecutive points have the same distance. (basically divide
the curve to n equals segments)<br>
<br>
I tried to use vtkParametricSpline/vtkParametricFunctionSource
but I was only able to change the number of points to another
value but I didn't find how to specify that these new points
should be equally distributed.<br>
<br>
Any idea ?<br>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Unpaid intern in BillsBasement at noware dot com<br>
<br>
</blockquote>
</body>
</html>