Molecule Visualizer
Uses canonical residue templates from experimental A‑RNA (1RNA) and B‑DNA (1BNA) and a lightweight constrained minimizer; orbital/π clouds are qualitative.
Math / Physical Model
We place each residue by repeating an averaged experimental step transform S: F₀ = local→global frame from PDB residue Fᵢ = F₀ · Sⁱ Each frame Fᵢ is a rigid transform (Rᵢ, tᵢ). For any template atom: x_global = Fᵢ · x_local. If no scaffold is available, we fall back to an ideal helix: θᵢ = i·twist, zᵢ = i·rise rᵢ = (R cosθᵢ, R sinθᵢ, zᵢ) and build an orthonormal basis (radial, tangent, axis) for Fᵢ.