For any plane equation {a,b,c}.{x,y,z}=d
, we use MeshFunction->Function[{x, y, z}, {a, b, c} . {x, y, z} - d
and Hyperplane[{a,b,c},d]
.
- For any plane equation
{a,b,c}.{x,y,z}=d
, we use MeshFunction->Function[{x, y, z}, {a, b, c} . {x, y, z} - d
and Hyperplane[{a,b,c},d]
.
Clear["Global`*"]
myh = 5;
myr = 4;
pA = {0, 0, myh};
pT = {0, 0, 2*myh};
pO = {0, 0, 0};
cone1 = Cone[{pO, pA}, myr];
cone2 = Cone[{pT, pA}, myr];
{a, b, c} = RandomPoint[Sphere[]];
d = RandomReal[];
plot3d =
RegionPlot3D[{cone1, cone2},
MeshFunctions -> Function[{x, y, z}, {a, b, c} . {x, y, z}],
Mesh -> {{d}}, MeshStyle -> Directive@{Thick, Red}];
plan3plane = Graphics3D[Hyperplane[{a, b, c}, d]];
Show[plot3d, plan3]plane]
Manipulate[
Module[{plot3d, plane},
plot3d =
RegionPlot3D[{cone1, cone2},
MeshFunctions -> Function[{x, y, z}, {a, b, c} . {x, y, z}],
Mesh -> {{d}}, MeshStyle -> Directive@{Thick, Red}];
plane = Graphics3D[Hyperplane[{a, b, c}, d]];
Show[plot3d, plane]], {a, -1, 1}, {b, -1, 1}, {c, -1, 1}, {d, -1,
1}]