Given a plane and a double cone, I need to highlight the conic section made by their intersection.

I’ve tried to use CSG though it does not seem to work.

Given a plane and a double cone, I need to highlight the conic section made by their intersection.

I’ve tried to use CSG though it does not seem to work.

Hmm, I would expect this PG to work, but it doesn’t. The result includes more geometry than I would expect. Seems like a possible bug.

https://playground.babylonjs.com/#VI1NQB#2

@sebavan @Evgeni_Popov Any thoughts?

CSG won’t work with infinitely thin geometry like a plan. Try to use a box with a very thin thickness instead.

It makes sense. I need to visualize the conic section given a mathematical plane though.

Do you have a suggestion for creating a box from a mathematical plane?

Now, how can I only highlight the edge of the mesh (the “ring” around the edge of the ellipse)?

Edit: I’ve gotten https://playground.babylonjs.com/#VI1NQB#5 working, though it isn’t only the “ring” – it is also the edges conecting the verticies.

I’ve tried to use highlight layer but due to the conic being inside two other meshes, the entire mesh surface is highlighted (rather than the edge).

A PG showing this would be helpful. Are you saying you want just the outside ring to be highlighted?

Yes - much like a highlight layer usually works, I want the outside edge/ring of the conic section to be highlighted.

Using the edge renderer:

3 Likes

Thanks!

This was also very helpful.

Hopefully I’ll have my 3D conic sections editor done soon so I can show it off.