[vtkusers] vtkContourFilter problem

santosh Gaikwad santosh6983 at gmail.com
Fri Jul 6 05:42:45 EDT 2012


Dear Bill,

Thanks a lot for sharing the info. I will go through the code for further
details.

Thanks & Regards,
Santosh G.

On Wed, Jul 4, 2012 at 7:46 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> MaximumDistance specifies how far away from the original polygons to
> compute the distance. This is for efficiency. The units are in fraction of
> bounding box. SampleDimension is the dimension of the resulting implicit
> volume. Increase the dimension to produce a denser implicit volume.
>
> For further details, look at the source code.
>
>
> On Wed, Jul 4, 2012 at 3:20 AM, santosh Gaikwad <santosh6983 at gmail.com>wrote:
>
>> Thanks for the reply.
>> Yes, I am using Implicit Modeller. I am using MaximumDistance as 0.1.
>> I would like to understand the relation between the MaximumDistance and
>> SampleDimension, and also the Contour filter's SetValue.
>>
>> Thanks,
>> Santosh G.
>>
>>
>>
>> On Tue, Jul 3, 2012 at 5:32 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>>
>>> Are you using vtkImplicitModeller? If so, what parameters are you
>>> setting? In particular what value are you using for Maximum Distance
>>> // Another important ivar is MaximumDistance. This controls how far into
>>> the
>>> // volume the distance function is computed from the input geometry.
>>>  Small
>>> // values give significant increases in performance. However, there can
>>> // strange sampling effects at the extreme range of the MaximumDistance.
>>>
>>>
>>> On Tue, Jul 3, 2012 at 4:05 AM, santosh Gaikwad <santosh6983 at gmail.com>wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am using vtkContourFilter for the purpose of offset surface. I want
>>>> to offset a surface by 0.03mm so I am setting this value using function
>>>> vtkContourFilter::SetValue.
>>>> In the result I am getting a discontinue surface. Kind of some holes in
>>>> the surface. Code looks like as follows
>>>>
>>>> vtkSmartPointer<vtkContourFilter> contourFilter =
>>>> vtkSmartPointer<vtkContourFilter>::New();
>>>> contourFilter->SetInputConnection(implicitModeller->GetOutputPort());
>>>> contourFilter->SetValue(0,0.03);
>>>> contourFilter->Update();
>>>>
>>>>
>>>> In the result surface I am getting holes. What need to do to get good
>>>> surface ?  any suggestions.
>>>>
>>>>
>>>> Thanks,
>>>> Santosh Gaikwad
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120706/64107e3b/attachment.htm>


More information about the vtkusers mailing list