Basic Mesh Slicing
Previous Demo | Next Demo
Scene Path: /Asset/Plugins/27 Slicer/Demos/1. Basic Mesh Slicing/Basic Mesh Slicing.unity
Introduction
This normally square table has been sliced across both the width and depth of the table top.
This allows the table to become longer and deeper without distorting or stretching the legs and other details of the table.
A SlicerController and MeshSlicerComponent is used to manage this slicing.
Example
In the video example below Edit Mode
of the Slicer Controller is toggled on and off. The wireframe is shown in this example to help demonstrate how the mesh is manipulated.
As Edit Mode
is toggled on
the sliced mesh is replace by the original mesh.
As Edit Mode
is toggled off
the original mesh replaces the sliced mesh, and the slicing is re-calculated if changed has been made.
Note
These demos are setup to only work with the Built-in Render Pipeline.
The lighting and materials will be incorrect if the demo is loaded into a project with a different render pipeline enabled.
27 Slicer is compatible with these renderers when properly setup. The Compatibility page has further information.
Credits
The assets used in these demos are by Kenney. Licensed under Public Domain CC0 1.0 Universal (CC0 1.0).