[vtkusers] How to transfer
xuanaux at gmail.com
Tue Nov 18 14:27:23 EST 2008
I am sorry I don't know how to perform rigid transformation.
I have used vtkReverseSense. Is this make sure that normals are all outward
I think it is the not perfectly constructed surface leads to the wrong
volume. Because when I render structures they looks strange.
Here is my code:
vtkSurfaceReconstructionFilter *surf =
vtkContourFilter *contours = vtkContourFilter::New();
// # Extract boundary edges
vtkFeatureEdges *boundary = vtkFeatureEdges::New();
// # Build a polyline from boundary edges
vtkStripper *stripper = vtkStripper::New();
vtkPolyData *holePoly = vtkPolyData::New();
// # Triangulate hole
vtkTriangleFilter *filler = vtkTriangleFilter::New();
// # Combine into a single polydata
vtkAppendPolyData *apd = vtkAppendPolyData::New();
// # Merge duplicate points
vtkCleanPolyData *cleaner = vtkCleanPolyData::New();
// # Add normals
vtkPolyDataNormals *apdNormals = vtkPolyDataNormals::New();
vtkReverseSense *reverse = vtkReverseSense::New();
vtkTriangleFilter *triangle = vtkTriangleFilter::New();
vtkMassProperties *massProperty = vtkMassProperties::New();
Denis Barbier-5 wrote:
> On 2008/11/18 xx_zx wrote:
>> Thank you very much for your time!
>> Structures are indeed closed after I applied the method you shown me in
>> example. However, the calculated volumes seem not right. They are
>> larger than the volume calculated before. I think it is because the
>> points are not perfect and have some noise points which degenerate the
>> performance of the vtkSurfaceReconstructionFilter.
> Did you perform rigid transformations to check that the new result
> does not change?
> And are you sure that normals are all outward oriented?
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> Follow this link to subscribe/unsubscribe:
View this message in context: http://www.nabble.com/How-to-transfer-vtkUnstructuredGrid-to-vtkPolydata-tp20521283p20566479.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers