![]() |
Cross sections - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab4d.SharpEngine (https://forum.ab4d.com/forumdisplay.php?fid=12) +--- Thread: Cross sections (/showthread.php?tid=4447) |
Cross sections - BiMMate - 04-17-2024 Is there a way to make a cross section of the scene in SharpEngine? RE: Cross sections - abenedik - 04-22-2024 If creating a "cross section" means slicing a 3D model by a plane, then the v1.0 has the Ab4d.SharpEngine.Utilities.MeshUtils.SliceMesh method that can slice the mesh with a plane into two meshes. It was not yet possible to simply slice any SceneNode. To show how to do that, I have created a new SliceModelsSample that also contains the missing methods to slice any SceneNode object. The source for the new sample is here: https://github.com/ab4d/Ab4d.SharpEngine.Samples/blob/main/Ab4d.SharpEngine.Samples.Common/AdvancedModels/SliceModelsSample.cs The methods from the ModelUtils class from this file will be added to the Ab4d.SharpEngine v1.1 versions, so this sample will be simpler. |