AB4D Forum

Full Version: Cross sections
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to make a cross section of the scene in SharpEngine?
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...sSample.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.