Skip to content
Snippets Groups Projects
Commit 6ac122d1 authored by Alexander Rose's avatar Alexander Rose
Browse files

show hbonds as dashed cylinders

parent 26eaf9b4
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,8 @@ export async function createLinkCylinderMesh(ctx: RuntimeContext, linkBuilder: L ...@@ -92,8 +92,8 @@ export async function createLinkCylinderMesh(ctx: RuntimeContext, linkBuilder: L
const f = flags(edgeIndex) const f = flags(edgeIndex)
meshBuilder.setGroup(edgeIndex) meshBuilder.setGroup(edgeIndex)
if (LinkType.is(f, LinkType.Flag.MetallicCoordination)) { if (LinkType.is(f, LinkType.Flag.MetallicCoordination) || LinkType.is(f, LinkType.Flag.Hydrogen)) {
// show metall coordinations with dashed cylinders // show metall coordinations and hydrogen bonds with dashed cylinders
cylinderProps.radiusTop = cylinderProps.radiusBottom = linkRadius / 3 cylinderProps.radiusTop = cylinderProps.radiusBottom = linkRadius / 3
addFixedCountDashedCylinder(meshBuilder, va, vb, 0.5, 7, cylinderProps) addFixedCountDashedCylinder(meshBuilder, va, vb, 0.5, 7, cylinderProps)
} else if (o === 2 || o === 3) { } else if (o === 2 || o === 3) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment