# Can't slice other half of procedural mesh

**URL:** <https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 19, 2016, 7:53pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991 "2016-09-19T19:53:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tenshi011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenshi011](https://forums.unrealengine.com/u/Tenshi011)\
**Post date:** [September 19, 2016, 7:53pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/1 "2016-09-19T19:53:04Z")

</div>

Hello. So the problem is that I can’t slice the second half of a mesh after slicing the original one. In the end I have many unsliceable components and one sliceable.

This is a click event, and “splicer” is a plane:

 ![107690-снимок.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/1/7b1cde2c26f4e8e5214693ed1eb15c0d53effe03.png)

This is a spliceable object:

 ![107711-снимок.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/6/fb6b54e736cfa1628178730d7a4b058a0ce27f22.png)

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Zapheroc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zapheroc](https://forums.unrealengine.com/u/Zapheroc)\
**Post date:** [October 30, 2016, 6:10am UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/2 "2016-10-30T06:10:24Z")

</div>

I think the problem here is that you’re confusing actors with components. The only component which is actively being sliced is the one stored in the Procedural Mesh variable. After you slice once, a new Procedural Mesh Component is created, but a reference to it is not stored. Instead of looping over overlapping actors, you need to individually loop over all the components, and look for procedural mesh components to slice.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_92d02002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92d02002](https://forums.unrealengine.com/u/anonymous_user_92d02002)\
**Post date:** [November 2, 2016, 1:28pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/3 "2016-11-02T13:28:25Z")

</div>

When you slice the procedural mesh component that your actor owns, the ‘Other Half Proc Mesh’ output is a new procedural mesh component that is also owned by your actor. In my ProceduralActor blueprint, I maintain a list of procedural mesh slices so I don’t lose track of which procedural mesh components my actor is in charge of.

 ![113416-slicetrack1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/2/1124fa5c0a208bf51c6ffa31a7a0ff2fa7731781.png)

When I do a slice check, I get a list of overlapping components, cast them to procedural mesh components, and if that succeeds, check if their owning actor is a ProceduralActor. If so, **I call slice on my actor, but I pass the component to be sliced as part of the function call** so my actor knows which of its owned slices to operate on.

 ![113417-slicetrack2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/2/37247052a7cabea17a34c88caf6d6ed974c38e30.png)

In my case I’m doing a Line Trace to select my object to slice and some math to define my plane, but you should be able to use something like ComponentOverlapComponents and your plane geometry to accomplish the same thing. Hope that helps!

---

<div class="post-metadata">

**Author:** ![Tenshi011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenshi011](https://forums.unrealengine.com/u/Tenshi011)\
**Post date:** [November 3, 2016, 9:30pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/4 "2016-11-03T21:30:46Z")

</div>

Thank you! That worked.

---

<div class="post-metadata">

**Author:** ![Samuelb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuelb](https://forums.unrealengine.com/u/Samuelb)\
**Post date:** [February 23, 2017, 4:55pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/5 "2017-02-23T16:55:11Z")

</div>

This didn’t work for me, i wonder what i’m doing wrong. Its not storing the new mesh into the array.

---

<div class="post-metadata">

**Author:** ![Samuelb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuelb](https://forums.unrealengine.com/u/Samuelb)\
**Post date:** [February 23, 2017, 11:35pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/6 "2017-02-23T23:35:19Z")

</div>

Ok I got it working, the only reason it wasn’t working was that I had “Trace Complex” in my linetrace by channel set to true. I Set it to false and it works great now! =)

---

<div class="post-metadata">

**Author:** ![youthnick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@youthnick](https://forums.unrealengine.com/u/youthnick)\
**Post date:** [March 1, 2017, 6:00am UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/7 "2017-03-01T06:00:54Z")

</div>

How should i set up the ProceduralActor class？Thanks whatever

---

<div class="post-metadata">

**Author:** ![Samuelb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuelb](https://forums.unrealengine.com/u/Samuelb)\
**Post date:** [March 1, 2017, 1:36pm UTC](https://forums.unrealengine.com/t/cant-slice-other-half-of-procedural-mesh/370991/8 "2017-03-01T13:36:02Z")

</div>

Hi Nick, What exactly do you mean? The proceduralActor class is a blueprint of an actor, for example a box you want to cut.
