# Show distances, angles, and torsions with MoleculePlot3D

I would like to display some bond lengths, bond angles, and torsion angles of a molecule with MoleculePlot3D.

For the example

mol = Molecule["hydrogenperoxide"];


I would like to obtain something like the following figures:

• You can use Show[MoleculePlot3D[mol], Graphics3D[{Text[<your text>, <coordinates>]}]]. You just need to compute the coordinates you want to place the text at. Nov 5 '21 at 16:17
• @JasonB. Thank you. I have updated my question with the figures that I would like to generate. Nov 5 '21 at 16:35
• Which part are you struggling with? Computing the planes/lines to display or actually displaying them as Graphics3D objects? Nov 5 '21 at 18:21
• @b3m2a1 I can calculate the distances and angles, so they can be assumed to be known. Nov 5 '21 at 18:27
• Then just add a InfintePlane from the normals needed for the dihedral angle {Dashed, Line[{...}]} for the bond distance line, and use this mathematica.stackexchange.com/questions/10957/… for the arcs for the angles. Then layer on @JasonB.'s comment for the text labels and you're done Nov 5 '21 at 18:29