Leeodelion Posted March 10, 2017 Share Posted March 10, 2017 Are there any built-in methods to get the actual intersection of two (or more) geometries?E.g. the intersection point of a line and a plane, the line intersection of two planes, the arc intersection of a sphere and a plane, the point of three planes, etc... Thanks! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 13, 2017 Share Posted March 13, 2017 Hi @Leeodelion, welcome to the forum. No replies yet, eh? Sorry. I'm going to ask @RaananW and @Temechon for advice on this. I'm not at all qualified. I think I know what you seek, and I think the answer is no. (No BJS built-in high-level tools for this.) But, a new CSG system (constructive solid geometry) (boolean subtracts, etc) was recently proposed. And, our old CSG system is/was pretty good, too. If there were a way/place to borrow code and derive/calc these "intersected surfaces", it might be in that code. A playground search for 'intersectsPoint' returns substantial results. Those might be worth a look. Hopefully, smarter people than I.... will comment soon. Be patient. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 13, 2017 Share Posted March 13, 2017 @Wingnut is correct (as always :)): The best option seems to be the CSG here. A demo can be found here: https://github.com/BabylonJS/Website/blob/master/Demos/CSG/csg.js Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.