From 9bb4e1f61e6d3a144a2db1bb58875496d3441958 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Wed, 29 Aug 2018 11:57:10 -0700 Subject: [PATCH] added linearSegments to getQualityProps --- src/mol-geo/representation/util.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mol-geo/representation/util.ts b/src/mol-geo/representation/util.ts index 7bcb56266..6563e3010 100644 --- a/src/mol-geo/representation/util.ts +++ b/src/mol-geo/representation/util.ts @@ -103,6 +103,7 @@ export function getQualityProps(props: Partial<QualityProps>, structure?: Struct let quality = defaults(props.quality, 'auto' as VisualQuality) let detail = 1 let radialSegments = 12 + let linearSegments = 8 if (quality === 'auto' && structure) { const score = structure.elementCount @@ -121,22 +122,27 @@ export function getQualityProps(props: Partial<QualityProps>, structure?: Struct case 'highest': detail = 2 radialSegments = 36 + linearSegments = 18 break case 'high': detail = 1 radialSegments = 24 + linearSegments = 12 break case 'medium': detail = 0 radialSegments = 12 + linearSegments = 8 break case 'low': detail = 0 radialSegments = 5 + linearSegments = 3 break case 'lowest': detail = 0 radialSegments = 3 + linearSegments = 2 break case 'custom': detail = defaults(props.detail, 1) @@ -146,6 +152,7 @@ export function getQualityProps(props: Partial<QualityProps>, structure?: Struct return { detail, - radialSegments + radialSegments, + linearSegments } } \ No newline at end of file -- GitLab