anniepank / MRTKVolumeSelector

Unity package for cutting the selected area of the mesh for HoloLens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MRTKVolumeSelector

Demo Demo

Prerequisites

  • Unity 2018.4.9.f1
  • MixedrealityToolkit v2
  • TextMesh Pro

Getting Started

  • Download latest release from Releases page
  • Add MRTK unitypackage in you project from this tutorial
  • Add the MRTKVolumeSelector/SelectionArea prefab into the scene

After selection is done, you can check the position of the SelectionArea or you can use the supplied MRTKVolumeSelector/MRTKVolumeSelectorMeshCutter to cut the selected part of spatial awareness mesh:

var meshCutter = GetComponent<MRTKVolumeSelectorMeshCutter>();
Output.mesh = meshCutter.CutMeshToSelection(meshCutter.GetSpatialMesh(), SelectionArea);    

Demo

You can check out the working demo scene by cloning this repository.

Author

Hanna Pankova (@anniepank)

License

MIT

About

Unity package for cutting the selected area of the mesh for HoloLens.

License:MIT License


Languages

Language:C# 100.0%