From 6ac122d168d3560edef784b670c40b679870353e Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Wed, 22 Aug 2018 13:55:33 -0700 Subject: [PATCH] show hbonds as dashed cylinders --- src/mol-geo/representation/structure/visual/util/link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mol-geo/representation/structure/visual/util/link.ts b/src/mol-geo/representation/structure/visual/util/link.ts index f2f820ce2..865e52d99 100644 --- a/src/mol-geo/representation/structure/visual/util/link.ts +++ b/src/mol-geo/representation/structure/visual/util/link.ts @@ -92,8 +92,8 @@ export async function createLinkCylinderMesh(ctx: RuntimeContext, linkBuilder: L const f = flags(edgeIndex) meshBuilder.setGroup(edgeIndex) - if (LinkType.is(f, LinkType.Flag.MetallicCoordination)) { - // show metall coordinations with dashed cylinders + if (LinkType.is(f, LinkType.Flag.MetallicCoordination) || LinkType.is(f, LinkType.Flag.Hydrogen)) { + // show metall coordinations and hydrogen bonds with dashed cylinders cylinderProps.radiusTop = cylinderProps.radiusBottom = linkRadius / 3 addFixedCountDashedCylinder(meshBuilder, va, vb, 0.5, 7, cylinderProps) } else if (o === 2 || o === 3) { -- GitLab