I need to highlight intersection with color and project it on plane.
EllipticParaboloid:
const init = (a, b) => {
return (u, v) => {
const height = 100;
const size = 5;
u = u * height;
v = 2 * v * Math.PI;
const x = a * size * Math.sqrt(u) * Math.cos(v);
const y = u;
const z = b * size * Math.sqrt(u) * Math.sin(v);
return new Three.Vector3(x, y, z);
}
}
const ellipticParaboloid = (a, b) => {
const geom = new Three.ParametricGeometry(init(a, b), 25, 25);
const mat = new Three.MeshPhongMaterial({ color: 0xcc3333a, wireframe: true });
const mesh = new Three.Mesh(geom, mat);
return mesh;
}
Plane:
const init = (c) => {
return (u, v) => {
const height = 300;
const size = 1;
u = u * height;
v = v * height;
const x = size * u - height / 2;
const y = c;
const z = size * v - height / 2;
return new Three.Vector3(x, y, z);
}
}
const levelSurface = (c) => {
const geom = new Three.ParametricGeometry(init(c), 25, 25);
const mat = new Three.MeshPhongMaterial({ color: 0x00ff0000, wireframe: true });
const mesh = new Three.Mesh(geom, mat);
return mesh;
}
Maybe some equation of intersection i can get? It's look like this: http://joxi.ru/L21GRWau5vKzrX But i need to project this intersection on plane XoY: http://joxi.ru/RmzozYwcq7aK2O
How i can do it? Maybe some example (it's will be good for me) or some material