[vtkusers] duplicated vertex in marching cubes?
Dominik Szczerba
dominik at itis.ethz.ch
Fri Nov 13 04:48:20 EST 2009
I will probably irritate Bill by repeating again that yes, I do
(non-reproducibly :() use to get duplicate points from MC. To ensure
robust results try to simply merge the duplicate points.
Bill Lorensen wrote:
> Please provide a small, complete example. MC should not generate
> duplicate points or vertices. What is the datatype of your scalars?
>
> On Wed, Nov 11, 2009 at 10:20 AM, lucas Grijander
> <dev_crisalix at hotmail.com> wrote:
>> Hi all!
>> I am using vtkMarchingCubes to calculate a 3D mesh of a volume I have. Fist
>> I initialize the filter with:
>> vtkMarchingCubes* iso = vtkMarchingCubes::New();
>> iso->SetInput(object);
>> iso->SetValue(0,1); // Surface #0, iso-value=1
>> iso->Update();
>> then I fill the vtkStructuredPoints.
>> The problem I have is, as you can see in the pictures, when you have a close
>> look to the trianbles (screen2) you can see duplicated triangles and vertex,
>> and this is a huge problem for my application... I supposed vtkMarchingCubes
>> should generate a single surface mesh... I don't know if that's the reason,
>> but when I fill the vtkStructuredPoints I use
>> scalars->InsertValue(cnt, 0) ; and scalars->InsertValue(cnt, 128) ;
>> I took all these from an example, I still don't know what you have to set as
>> values, either 1 or 128... in addition the result change with this number
>> and I'm not sure why.
>> What should I use as values? and also why I have this "double" triangles
>> mesh?
>> thanks!
>> Jaime.
>> ________________________________
>> Windows Live: Make it easier for your friends to see what you’re up to on
>> Facebook.
>> ________________________________
>> Keep your friends updated— even when you’re not signed in.
>> ________________________________
>> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they
>> e-mail you.
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list