|
Notes |
|
|
(0025384)
|
|
Glenn Faken
|
|
2011-02-10 14:30
|
|
|
Hi, I'm going to try and work on this bug and was wondering if you can post the code to your program that is using this function so that I can replicate the issue easily. |
|
|
|
(0025385)
|
|
David Doria
|
|
2011-02-10 14:35
|
|
|
I just uploaded a file. It creates a triangle strip with 4 points, writes it to an stl, reads the stl, and declares that there is only 1 point! |
|
|
|
(0025386)
|
|
Glenn Faken
|
|
2011-02-10 14:40
|
|
|
Thanks for the quick response. |
|
|
|
(0025529)
|
|
Glenn Faken
|
2011-02-21 23:14
(edited on: 2011-02-22 01:29) |
|
I've been trying to trace how the calls in the program work and I'm having trouble tracking down how it tells vtkSTLWriter to write. Also when running the test the output states that there is only 1 point is that correct? The stl file only contains "solid ascii endsolid" when it is created.
I was wondering if you had any quick pointers for me to try and follow?
Haha, I went back and reread your previous note and looks like your having the same problem :p
I will also attach a proposed solution.
|
|
|
|
(0025530)
|
|
David Doria
|
|
2011-02-22 07:54
|
|
If you look at
http://www.vtk.org/doc/nightly/html/classvtkSTLWriter.html [^]
you can see the inheritance diagram (it doesn't go all the way up the tree). Better is to click "List of all members". I would start by looking at the Write() function of vtkWriter and follow it down.
I never checked the actual contents of the file, all I did was see that GetNumberOfPoints() reported 1. |
|
|
|
(0025531)
|
|
Glenn Faken
|
2011-02-22 11:35
(edited on: 2011-02-22 11:36) |
|
Wow if only I had found that link earlier. I've been chasing the .h files and trying to see where the jumps would go.
I've updated the attached file for a little bit cleaner execution and I left it with the warning out side of the if statement to make it easier for maintaining.
I guess I can't delete files so I've renamed the second version.
|
|
|
|
(0030924)
|
|
Jean-Christophe Fillion-Robin
|
|
2013-06-05 16:34
|
|
Hi Glenn,
Does the problem still occur with VTK 5.10 ? VTK 6 ?
Would be great if you could submit a patch using Gerrit. This would make the review and integration easier. For more details see http://www.vtk.org/Wiki/VTK/Git/Develop [^]
Thanks
Jc |
|
|
|
(0031201)
|
|
Dave DeMarle
|
|
2013-07-22 18:55
|
|
|
If this is still an issue in 6.0.0, please reopen this report. |
|
|
|
(0035307)
|
|
Bill Lorensen
|
|
2015-10-19 10:55
|
|
|
|
|
(0035332)
|
|
Bill Lorensen
|
|
2015-10-21 11:54
|
|
|
Fixed in vtk 7. Older versions should run triangle filter before running STLWriter |
|