n 27 February 2012 09:48, Chris Morley <c.mor...@gaseq.co.uk> wrote:
> On 26/02/2012 16:19, Noel O'Boyle wrote:
>>
>> I've been looking at the opalign which I really like. There's one
>> issue remaining which I can't quite decide how to handle.
>>
>> Basically, if you use --align -s "substructure color" -O myfile.svg
>> and your input structure is 2D everything is fine. However, if your
>> input structure is 3D, it does a 3D alignment, but the resulting SVG
>> is not aligned.
>>
>> To get around this, I'm thinking that the op should check the output
>> format: if it's SVG or PNG(2) then it should align on 2D. Or is this
>> just a whole can of worms, and a Bad Idea? Maybe there should be a
>> separate align2d and align3d and leave it to the user to explicitly
>> save what s/he wants?
>
>
> Maybe there could be an extra OBFormat flag which would be set in 2D
> depiction formats. This would help to maintain their status as plugins.
>
> I think there might be some complications when implementing this, which I
> might be able to help with.

I've just done this, and checked it in. The only problem I had was
that I #defined the new flag (DEPICTION2D) a second time in
opalign.cpp rather than <include format.h>. I thought that including
the header file might be a bad idea.

- Noel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to