| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000832 | VTK | (No Category) | public | 2004-05-11 17:48 | 2014-10-02 13:34 | ||||
| Reporter | Mathieu Malaterre | ||||||||
| Assigned To | Will Schroeder | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0000832: vtkStripper does not handle properly polylines | ||||||||
| Description | vtkStripper is not able to connect polylines. | ||||||||
| Tags | hackaton | ||||||||
| Project | TBD | ||||||||
| Type | incorrect functionality | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0001038) Mathieu Malaterre (developer) 2004-05-11 17:49 |
Attaching dataset to reproduce bug. |
|
(0001039) Mathieu Malaterre (developer) 2004-05-11 18:00 |
Including demo code: #include "vtkPolyDataReader.h" #include "vtkStripper.h" #include "vtkPolyData.h" #include "vtkPolyDataWriter.h" int main() { vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName( "polyline.vtk"); //Forms lines from cutter vtkStripper* cutStrips = vtkStripper::New(); cutStrips->SetInput(reader->GetOutput()); cutStrips->Update(); //Defines polygons as polyline vtkPolyData* LinePoly = vtkPolyData::New(); LinePoly->SetPoints((cutStrips->GetOutput())->GetPoints()); LinePoly->SetLines(cutStrips->GetOutput()->GetLines()); //Write PolyData to file vtkPolyDataWriter* wr = vtkPolyDataWriter::New(); wr->SetFileName("Line4.vtk"); wr->SetInput(LinePoly); wr->Write(); reader->Delete(); cutStrips->Delete(); LinePoly->Delete(); wr->Delete(); return 0; } |
|
(0001050) Mathieu Malaterre (developer) 2004-05-16 16:45 |
I found a patch at: http://vtk.org/pipermail/vtkusers/2002-January/009372.html [^] Might work, comments welcome. Also attaching it as polylines.patch |
|
(0001227) Goodwin Lawlor (reporter) 2004-06-30 23:54 |
I tried out the patch and it works nicely. A more efficient way would be to traverse the lines before stripping and find the "boundary points"... a line point used by only one line. These boundary points would then be used as starting points for the line stripping. The way vtkStripper is structured at the moment would make implementing this difficult though. I vote for the patch! |
|
(0004203) Goodwin Lawlor (reporter) 2006-06-12 05:56 |
I've used this patch since mid-2004 without problems... could it be add into CVS? Is there something preventing this? Thanks |
|
(0032628) Matthias Blaicher (reporter) 2014-05-14 06:54 |
Hi, I'm seeing the exact same behavior on vtk 5.10.1 on Arch Linux. Is there hope of this issue being resolved inside vtk? |
|
(0033489) Will Schroeder (manager) 2014-10-02 13:18 edited on: 2014-10-02 13:19 |
The documentation has been updated. Pre-defined triangle strips and polylines are not altered nor combined into new strips or polylines. If you wish to strip these use vtkTriangleFilter to fragment the input into triangles and lines prior to running vtkStripper. The documentation in the class has been updated. |
|
(0033494) Will Schroeder (manager) 2014-10-02 13:30 |
Updated documentation. http://review.source.kitware.com/#/t/4771 [^] |
|
(0033495) Will Schroeder (manager) 2014-10-02 13:34 |
Updated documentation. It may be worthwhile writing a new vtkStripper that does a better job of optimizing the creation of strips, and connects existing polylines and/or triangle strips. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2007-08-28 13:48 | Zack Galbreath | Assigned To | Josh Cates => |
| 2007-08-28 13:48 | Zack Galbreath | Status | backlog => @40@ |
| 2007-08-28 13:48 | Zack Galbreath | Resolution | reopened => open |
| 2007-08-28 13:48 | Zack Galbreath | Summary | Goodsite => vtkStripper does not handle properly polylines |
| 2007-08-28 13:48 | Zack Galbreath | Note Deleted: 0008285 | |
| 2007-08-28 13:48 | Zack Galbreath | Project | @9@ => VTK |
| 2008-02-06 09:54 | Jeff Baumes | Status | @40@ => tabled |
| 2008-02-06 09:54 | Jeff Baumes | Assigned To | => Will Schroeder |
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
| 2014-05-14 06:54 | Matthias Blaicher | Note Added: 0032628 | |
| 2014-10-01 12:50 | Berk Geveci | Project | => TBD |
| 2014-10-01 12:50 | Berk Geveci | Type | => incorrect functionality |
| 2014-10-01 12:50 | Berk Geveci | Status | expired => backlog |
| 2014-10-02 10:04 | Will Schroeder | Tag Attached: hackaton | |
| 2014-10-02 13:18 | Will Schroeder | Note Added: 0033489 | |
| 2014-10-02 13:19 | Will Schroeder | Note Edited: 0033489 | |
| 2014-10-02 13:30 | Will Schroeder | Note Added: 0033494 | |
| 2014-10-02 13:30 | Will Schroeder | Status | backlog => gerrit review |
| 2014-10-02 13:34 | Will Schroeder | Note Added: 0033495 | |
| 2014-10-02 13:34 | Will Schroeder | Status | gerrit review => closed |
| 2014-10-02 13:34 | Will Schroeder | Resolution | open => fixed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |