From: mgsloan <mg...@gm...> - 2007-02-24 09:03:06
|
I just had an idea for a possible restructure of the pw_sb end of things. Sadly, ACSpike is mostly right, the 2geom WoC is over. I have to focus on school etc., not to mention C++ was starting to piss me off again.. I seriously get the feeling that haskell + dependant types (something that doesn't really exist...) could fit much of 2geom in 1000 lines - or at least, most of the functions would be unnecessary. True, I'm the main pw_sb guy, however, I've got a few possible ideas for review: First off, I think I recall rearing that SBasis was considered undefined outside [0,1]. In my opinion, if we have pw_sb continue it's extreme segments, SBasis should only really care about the interval [0, 1] in regards to the BezOrds that make it up. Anyway, my main plan is to combine md_pw_sb and pw_sb, generalizing the concept of pointwise. I think there is no real utility in having different cuts for different dimensions, though I could be wrong - most md_pw_sb operations seem to require cut equivalence, and thus make partition calls. Pointwise <SBasis> Pointwise <MultidimSBasis> or, I suppose we could go abbreviation style: pw<sb> pw<md_sb> All that is required for point-wise-ification would be a portion(double from, double to) method. Looking back on this plan, it seems like a good one. Maybe enough to shake my dissatisfaction with C++ :P |