[vtkusers] VERY IMPORTANT QUESTION ABOUT CLIPPING

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Nov 6 08:36:06 EST 2012


I would rather use a transform to change the height of the implicit
function or some boolean operation with planes to limit it if it is
unbounded...


On Mon, Nov 5, 2012 at 11:04 AM, David Doria <daviddoria at gmail.com> wrote:

> On Mon, Nov 5, 2012 at 11:01 AM, David Higuita <david.higuita.75 at gmail.com
> > wrote:
>
>> HI, MY NAME IS DAVID, I'M FROM COLOMBIA, I'M WORKING WITH CLIPPING
>> FUNCTIONS, AND I HAVE A CODE THAT MAKE IT, BUT IN THE CODE WE NEED TWO
>> OBJECTS:
>>
>> vtkCylinder AND vtkCylinderSource
>>
>> AND IN THE WORKING OF CODE WE NEED GET AN IMPLICIT FUNCTION AND THE CODE
>> DO IT WITH THE OBJECT vtkCylinder
>> BUT IN THE RESULT WE CAN'T CHANGE THE HEIGHT (of course)
>> . THE QUESTION IS ¿CAN WE GET THE IMPLICIT FUNCTION FROM AN OBJECT
>> vtkCyllinderSource? TO CHANGE THE HEIGHT
>>
>>
>>
>> THIS IS PART OF CODE:
>>
>>
>>    sphere = vtk.vtkCylinderSource()
>>     sphere.SetRadius(radio)
>>     sphere.SetCenter(F[0][0],F[0][1],F[0][2])
>>     sphere.SetHeight(altura)
>>
>>     spheres = vtk.vtkCylinderSource()
>>     spheres.SetRadius(radio)
>>     spheres.SetCenter(F[0][0],F[0][1],F[0][2])
>>     spheres.SetHeight(altura)
>>     spheres.SetResolution(100)
>>
>>     cliper = vtk.vtkClipPolyData()
>>     cliper.SetInput(reader.GetOutput()) # original: reader
>>     cliper.SetClipFunction(sphere) #tenia sphere
>>     cliper.GenerateClipScalarsOn()
>>     cliper.SetValue(0.0)
>>
>> WE NEED GET THE IMPLICIT FUNCTION (SetClipFunction(sphere)).
>>
>> ¿CAN YOU HELP US WITH LINKS AND TUTORIALS?
>>
>> THANKS.
>>
>
> Please do not write in all caps.
>
> I believe what you're looking for is this new class:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance
>
> It will create an implicit function from a polydata.
>
> Good luck,
>
> David
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121106/9058be49/attachment.htm>


More information about the vtkusers mailing list