[vtkusers] Polyline in vtkCell
Cory Quammen
cory.quammen at kitware.com
Fri Jan 19 07:43:30 EST 2018
Chao,
I am not aware of any VTK functionality built in to simplify straight
poly lines to a single line segment.
- Cory
On Fri, Jan 19, 2018 at 5:24 AM, 刘 超 <liuchao.uk at hotmail.com> wrote:
> Hello VTK users,
>
> I am looking for a way of determining whether the polyline in a vtkCell is a
> straight line or curved polyline. The reason is that the cutter output needs
> to be written in custom format and if the polyline is a straight line, I can
> simply use the first point and last point to represent this polyline as a
> "line" to reduce the output file size.
>
> The data I deal with is read from STL (open surface). Language is Python.
>
> I have tried analysing the slope of each segment of the polyline. It works
> but speed is an issue.
>
> Any suggestions are welcomed! Many thanks.
>
> Cheers,
> Chao
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list