-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to backhatch for this structure #69
Comments
@tomyan112 please can you paste the cml |
<cml:cml xmlns:conventions="http://www.xml-cml.org/convention/" xmlns:cml="http://www.xml-cml.org/schema" xmlns:cmlDict="http://www.xml-cml.org/dictionary/cml/" xmlns:nameDict="http://www.xml-cml.org/dictionary/cml/name/" xmlns:c4w="http://www.chem4word.com/cml" conventions="convention:molecular">
<cml:molecule id="m1">
<cml:atomArray>
<cml:atom id="a1" elementType="C" x2="478.3495" y2="400" />
<cml:atom id="a2" elementType="C" x2="500.0001" y2="387.5" />
<cml:atom id="a3" elementType="C" x2="456.6988" y2="387.5" />
<cml:atom id="a4" elementType="C" x2="521.6507" y2="400" />
<cml:atom id="a5" elementType="C" x2="500.0001" y2="362.5" />
<cml:atom id="a6" elementType="H" x2="500.0001" y2="412.5" />
<cml:atom id="a7" elementType="C" x2="456.6988" y2="362.5" />
<cml:atom id="a8" elementType="C" x2="543.3013" y2="387.5" />
<cml:atom id="a9" elementType="O" x2="521.6507" y2="425" />
<cml:atom id="a10" elementType="C" x2="521.6507" y2="350" />
<cml:atom id="a11" elementType="C" x2="478.3495" y2="350" />
<cml:atom id="a12" elementType="H" x2="500.0001" y2="337.5" />
<cml:atom id="a13" elementType="C" x2="543.3013" y2="362.5" />
<cml:atom id="a14" elementType="O" x2="521.6507" y2="325" />
<cml:atom id="a15" elementType="C" x2="478.3495" y2="375" c4w:explicit="false" />
</cml:atomArray>
<cml:bondArray>
<cml:bond id="b1" atomRefs2="a2 a1" order="S" />
<cml:bond id="b2" atomRefs2="a1 a3" order="S" />
<cml:bond id="b3" atomRefs2="a4 a2" order="S" />
<cml:bond id="b4" atomRefs2="a2 a5" order="S" />
<cml:bond id="b5" atomRefs2="a2 a6" order="S">
<cml:bondStereo atomRefs2="a2 a6">W</cml:bondStereo>
</cml:bond>
<cml:bond id="b6" atomRefs2="a3 a7" order="D" />
<cml:bond id="b7" atomRefs2="a8 a4" order="S" />
<cml:bond id="b8" atomRefs2="a4 a9" order="D" />
<cml:bond id="b9" atomRefs2="a5 a10" order="S" />
<cml:bond id="b10" atomRefs2="a11 a5" order="S" />
<cml:bond id="b11" atomRefs2="a5 a12" order="S">
<cml:bondStereo atomRefs2="a5 a12">W</cml:bondStereo>
</cml:bond>
<cml:bond id="b12" atomRefs2="a7 a11" order="S" />
<cml:bond id="b13" atomRefs2="a13 a8" order="D" />
<cml:bond id="b14" atomRefs2="a10 a13" order="S" />
<cml:bond id="b15" atomRefs2="a10 a14" order="D" />
<cml:bond id="b16" atomRefs2="a1 a15" order="S">
<cml:bondStereo atomRefs2="a1 a15">W</cml:bondStereo>
</cml:bond>
<cml:bond id="b17" atomRefs2="a11 a15" order="S">
<cml:bondStereo atomRefs2="a11 a15">W</cml:bondStereo>
</cml:bond>
</cml:bondArray>
</cml:molecule>
</cml:cml> Edited to mark as xml and remove irrelevant labels |
@deadlyvices I think I have figured this one out. Points to note
If I edit the structure to move atom a15 such that bonds b16 and b17 are no longer in a straight line the wedges are rendered. To prevent this we need to only apply chamfer when the angle is approx 120° (as in the paper "Rendering Molecular Sketches for Publication Quality
|
Well done on tracking that one down. I suggest we both try to fix it together. It would affect both in-document and real-time rendering. |
@deadlyvices I agree that +- 10 is a good range to use. |
@tomyan112 this is how the above structure now renders in word and in ACME As you can see the "hidden" wedges for bonds b16 and b17 are now showing correctly. |
Related to #72 |
Describe the bug


A clear and concise description [in English] of what the bug is.
After select backhatch, it just turns into straight line
The text was updated successfully, but these errors were encountered: