[vtkusers] Curve / Equal Subdivision

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 10 13:09:19 EDT 2012


It is always possible that there is a bug.

Can you provide a small, compilable example that illustrates the problem?

On Tue, Jul 10, 2012 at 10:50 AM, Jean-Hugues Royer <jhroyer at joher.com>wrote:

> **
> Hi,
>
> I also tried vtkSplineFIlter using SetSubdivideToLength() and
> SetLength(distance).
>
> But the result is that the points are not equally distributed.
>
> When you provide a curve the beginning and ending points are not equally
> distributed while the center points are.
>
> When you provide a straight line no points at all are equally distributed.
>
> I get exact same result when using
> vtkSplineFIlter/SetSubdivideToLength/SetLength and
> vtkParametricSpline/SetParametricFunction/SetUResolution.
>
> May be I'm missing something ?
>
>
> On 10/07/2012 16:21, Bill Lorensen wrote:
>
> Look at vtkSplineFIlter
> Here is one use:
> http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FitSplineToCutterOutput
>
>
>  On Tue, Jul 10, 2012 at 9:59 AM, Jean-Hugues Royer <jhroyer at joher.com>wrote:
>
>> Hi,
>>
>> I have a curve which is a vtkPoints array.
>>
>> I would like to generate another vtkPoints array where every consecutive
>> points have the same distance. (basically divide the curve to n equals
>> segments)
>>
>> 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.
>>
>> Any idea ?
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120710/21f8b1a3/attachment.htm>


More information about the vtkusers mailing list