[vtkusers] VTKParametricEllipsoid performance

Andrew Maclean andrew.amaclean at gmail.com
Thu Dec 19 20:42:22 EST 2013


Hi José

Here is an example in Python, based on ClipCow.py, that clips the
Parametric ellipsoid where the open clip is closed by triangulating the
resultant complex polygons.
You will note that the cut edge is smooth. The clipping plane is coloured
peacock and the cut ellipsoid tomato.

I hope that this will provide a good example for you to work from.

Regards
   Andrew



On Fri, Dec 20, 2013 at 4:52 AM, Jose Ignacio Prieto <
joseignacio.prieto at gmail.com> wrote:

> I solved the problem changing the axis from X to Z. But I still have an
> issue when the cutting plane is between the middle of the ellipsod and the
> start of the radius, the circle in the plane is bigger than the edges of
> the ellipsoid. I attach another pic
>
>
> On Thu, Dec 19, 2013 at 11:52 AM, Jose Ignacio Prieto <
> joseignacio.prieto at gmail.com> wrote:
>
>> My point is that I am setting a cutting plane for the ellipsoid inside
>> the parametric equation. I am leaving point x,y,z =0 after the plane, also
>> with derivatives DU and DV. So in the borders it doesn't look nice with a
>> resolution of 64 points. I attach a pic to let you get an idea. Thanks
>>
>>
>> On Thu, Dec 19, 2013 at 11:39 AM, Jose Ignacio Prieto <
>> joseignacio.prieto at gmail.com> wrote:
>>
>>> Hi Andrew,
>>> I am contacting you because of the parametric ellipsoid class you
>>> created. It works fine for me with a resolution of 64 in the lines:
>>>
>>>         parametricFunctionSource->SetUResolution(1024);
>>>
>>>         parametricFunctionSource->SetVResolution(1024);
>>>
>>>         parametricFunctionSource->SetWResolution(1024);
>>>
>>>         parametricFunctionSource->SetScalarModeToNone();
>>>
>>>         parametricFunctionSource->GenerateTextureCoordinatesOff();
>>>
>>>
>>>         parametricFunctionSource->SetParametricFunction(Ellipsoid);
>>>
>>>         parametricFunctionSource->Update();
>>>
>>> but when I move to a bigger resolution like 1024 it gets completely slow. I tried moving to OpenGL mapper and actor but nothing. My graphics card is an AMD W7000 (fast) so its not hardware problem. What can I do to tweak it and get a smoother look?
>>>
>>>
>>> Thanks!
>>>
>>>
>>> Ignacio Prieto
>>>
>>>
>>>
>>> --
>>> José Ignacio Prieto
>>> Software developer
>>> Biomedical Imaging Center
>>> Pontificia Universidad Catolica de Chile
>>>
>>
>>
>>
>> --
>> José Ignacio Prieto
>> celular(nuevo): 94348182
>>
>
>
>
> --
> José Ignacio Prieto
> celular(nuevo): 94348182
>



-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131220/1723c507/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClipParametricEllipsoid.py
Type: application/octet-stream
Size: 5057 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131220/1723c507/attachment.obj>


More information about the vtkusers mailing list