Browse Source

allow more coarse resolution

Alexander Rose 6 years ago
parent
commit
c05b67bdd7

+ 1 - 1
src/mol-math/geometry/molecular-surface.ts

@@ -46,7 +46,7 @@ function getAngleTables (probePositions: number): AnglesTables {
 //
 
 export const MolecularSurfaceCalculationParams = {
-    resolution: PD.Numeric(0.5, { min: 0.01, max: 10, step: 0.01 }),
+    resolution: PD.Numeric(0.5, { min: 0.01, max: 20, step: 0.01 }),
     probeRadius: PD.Numeric(1.4, { min: 0, max: 10, step: 0.1 }),
     probePositions: PD.Numeric(30, { min: 12, max: 90, step: 1 }),
 }

+ 2 - 2
src/mol-repr/structure/visual/util/gaussian.ts

@@ -14,7 +14,7 @@ import { WebGLContext } from 'mol-gl/webgl/context';
 import { getUnitConformationAndRadius, getStructureConformationAndRadius } from './common';
 
 export const GaussianDensityParams = {
-    resolution: PD.Numeric(1, { min: 0.1, max: 10, step: 0.1 }),
+    resolution: PD.Numeric(1, { min: 0.1, max: 20, step: 0.1 }),
     radiusOffset: PD.Numeric(0, { min: 0, max: 10, step: 0.1 }),
     smoothness: PD.Numeric(1.5, { min: 0.5, max: 2.5, step: 0.1 }),
     useGpu: PD.Boolean(false),
@@ -23,7 +23,7 @@ export const DefaultGaussianDensityProps = PD.getDefaultValues(GaussianDensityPa
 export type GaussianDensityProps = typeof DefaultGaussianDensityProps
 
 export const GaussianDensityTextureParams = {
-    resolution: PD.Numeric(1, { min: 0.1, max: 10, step: 0.1 }),
+    resolution: PD.Numeric(1, { min: 0.1, max: 20, step: 0.1 }),
     radiusOffset: PD.Numeric(0, { min: 0, max: 10, step: 0.1 }),
     smoothness: PD.Numeric(1.5, { min: 0.5, max: 2.5, step: 0.1 }),
 }