From: Pedro T. <pt...@te...> - 2003-12-18 10:26:14
|
> This is the case in Octave with the "QJ" option: > > octave:3> convhulln(cube,"QJ") > qhull warning: joggle ('QJ') always produces simplicial output. > Triangulated output ('Qt') does nothing. But Qt works on command line qhull. Maybe there's some option about merging or unmerging facets that we are missing? > > So long as the default all-simplicial case is returned as a matrix, > > backward compatibility doesn't matter. The user will need special code > > to handle the non-simplicial facets anyway. > > > > Are these two cases different enough that we need different functions? > > I do not think so, since the output format will be dependent on the data > and, in general, cannot be determined beforehand by the user. Sure in the case of just simplicial or non simplicial. As far as I understand the need for two functions is to have one (convhulln) to keep matlab compatibility which should always return a matrix (maybe always simplicial facets too) and another one to allow for more specific output with user control on the options. The first funcion (convhulln) could just be a wrap around the second. > I have already an idea on how to implement this change (i.e., returning a > cell array instead of a matrix in the non-simplicial case. Should I go > ahead? If it's possible to do so I would certainly appreciate it, and believe me, I'm just anxious about testing it ;). Regards, Pedro |