-
Lucio Zambon authored
- /components/src/beamlineDown.svg - /components/src/beamlineUP.js - /components/src/bending.svg - /components/src/blm.js - /components/src/blmplus.js - /components/src/bpm.js - /components/src/bpm.svg - /components/src/bst.js - /components/src/bst.svg - /components/src/cavity.js - /components/src/cavity.svg - /components/src/cavity_3hc.js - /components/src/cavity_3hc.svg - /components/src/cavity_3hcfast.js - /components/src/cavitylinac.js - /components/src/cavitylinac.svg - /components/src/chamber.js - /components/src/corrector.js - /components/src/corrector.svg - /components/src/correctorbooster.js - /components/src/correctorboosterfast.js - /components/src/correctorfast.js - /components/src/correctorfermi.js - /components/src/dipole.js - /components/src/dipolebooster.js - /components/src/dipoleboosterfast.js - /components/src/dipoleesrf.js - /components/src/dipolefast.js - /components/src/dipolefermi.js - /components/src/dipoleplus.js - /components/src/ellipticaltube.js - /components/sr...
0ee5780d
beamlineUP.js 646 B
import * as THREE from 'three';
// Beamlines
export function beamlineUP(param) {
const length=10000;
const material = new THREE.MeshBasicMaterial({color: 0xA5D9FD, transparent: true, opacity: 0.4, side: THREE.DoubleSide,});
const geometry = new THREE.CylinderGeometry(0 /*radiusTop*/, 5 /*radiusBottom*/, length /*height*/, 100 /*radialSegments*/, 2 /*heightSegments*/, false /*openEnded*/,0 /*thetaStart*/, Math.PI * 2 /*thetaLength*/);
const beamlineUPMesh = new THREE.Mesh(geometry, material);
beamlineUPMesh.rotateX(Math.PI * 0.5);
beamlineUPMesh.scale.setZ(100);
beamlineUPMesh.rotatedX = true;
return beamlineUPMesh;
}