Re: [K3d-development] Generic primitive refactoring
Brought to you by:
barche
From: Bart J. <bar...@li...> - 2009-02-22 23:37:30
|
On Sat, Feb 21, 2009 at 6:39 PM, Timothy M. Shead <ts...@k-...> wrote: > Bart Janssens wrote: > >>> * (Bart) Subdivision surface library - use k3d::polyhedron::primitive >>> instead of k3d::mesh::polyhedra_t >> >> I think the time has finally come to deprecate this. I'll look at integrating >> the new catmull_clark module code into the visualization pipeline, instead of >> converting this one. While I'm at it, it may also be best to look at the hint >> conversion stuff to clean up the painter cache hint processing. > > This seems like something that needs some up-front design and > discussion, since you've never mentioned it before. It would also be Well, I was going to draw more attention to it once this had to be integrated into the visualization pipeline. Basically, the new code works directly on k3d mesh arrays, supports subdivision of only part of a mesh, skips faces with holes and handles named array data. It is also designed to run in parallel, with future porting to CUDA in mind. It's not much work to use this to replace the old library, so I have already moved the code to k3dsdk/subdivision_surface. I have left the handling of the painter caches unchanged, all that is needed is a small refactoring of the visitors that are used, this is already done for the SDS face painter. Cheers, -- Bart |