Search Unity

Slicing meshes

Discussion in 'Scripting' started by Liminal-Ridges, Jun 13, 2021.

  1. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    256
    Hey all, im tryna find a way to slice meshes using primitive shapes. For example slicing a sphere in half and then filling the holes. Any ideas how that can happen.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    This area of study is called Constructive Solid Geometry (CSG).

    The Probuilder package from Unity has some CSG primitives you might want to look at or use directly.
     
  3. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    256
    thanks but didnt find anything, got a link?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Really? "probuilder csg" brings stuff up for me:

    Screen Shot 2021-06-13 at 9.32.22 AM.png

    You can also roll your own CSG implementation. It's not a New Thing(tm) but rather a well-travelled well-understood area of solid geometry study.

    Either way, there is certainly nothing I can type to you that will help. You need to get googling and start your engineering journey.
     
  5. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    256
    I must've typed csg in wrong order lol. Thanks anyway ill take it from here
     
    Kurt-Dekker likes this.