| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000599 | VTK | (No Category) | public | 2004-02-16 10:15 | 2011-01-13 17:00 | ||||
| Reporter | Ingo de Boer | ||||||||
| Assigned To | Mathieu Malaterre | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0000599: crash on calc normal to a polygon in 3-D with less than 3 points | ||||||||
| Description | I am using VTK 4.4.0 release. This also happend in the versions before. vtkPolygon.cxx: "$Revision: 1.104 $" void vtkPolygon::ComputeNormal(vtkPoints *p, int numPts, vtkIdType *pts, double *n) In this function, sometimes I have int numPts == 1 !! That is why pts[1] equals -842150451 and I cannot get the correct point in line 92: p->GetPoint(pts[1],v2); And my application crashes. I tried something like: if ( numPts > 1 ) p->GetPoint(pts[1],v2); This works and my geometry looks good. But the loop afterwards for (i=0; i < numPts; i++) { ... } uses v2 !! So, there should be some fix in this bug or even that the function is not called for numPts == 1. best regards, Ingo | ||||||||
| Tags | No tags attached. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0000655) Mathieu Malaterre (developer) 2004-02-16 19:22 |
Fixed in CVS. Don't need to merge to 4.4 |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-11-29 17:59 | Mathieu Malaterre | Source_changeset_attached | => VTK master b21f175d |
| 2011-01-13 17:00 | Source_changeset_attached | => VTK master a2bd8391 | |
| 2011-01-13 17:00 | Source_changeset_attached | => VTK master 020ef709 | |
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |