diff --git a/src/mol-geo/representation/util.ts b/src/mol-geo/representation/util.ts index 7bcb562664ffc34e8a1452665000f3b9ffc6c018..6563e301084b6a5e546c7bd567ddb1440fbc21c1 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