# Issue with subtraction

**URL:** <https://discourse.shapr3d.com/t/issue-with-subtraction/666>\
**Category:** Modeling Questions\
**Created:** [January 1, 2017, 10:09pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666 "2017-01-01T22:09:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cfritz](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@Cfritz](https://discourse.shapr3d.com/u/Cfritz)\
**Post date:** [January 1, 2017, 10:09pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/1 "2017-01-01T22:09:08Z")

</div>

I am trying to model a pepper mill and the subtraction goes crazy. I used a spline to get the outside shape, then rotated this around the axis 360 to create the solid.

Then I created 2 different size drills (1.5" and 1.75") and extruded them various lengths through the solid. After subtracting the drills from the shape, I am left with some weird thin partial shell line drawing thing.

Thoughts?  
Chris

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/2961c9be8b2168b35c6f8c01813ff9086c4b4b60.PNG)

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [January 1, 2017, 10:22pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/2 "2017-01-01T22:22:35Z")

</div>

If you could share the file in .shapr format we could debug the issue.

---

<div class="post-metadata">

**Author:** ![Cfritz](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@Cfritz](https://discourse.shapr3d.com/u/Cfritz)\
**Post date:** [January 1, 2017, 11:29pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/3 "2017-01-01T23:29:48Z")

</div>

Here is a link to the file:

> **[PepperMill.shapr](https://www.dropbox.com/s/4o5gcril1svopc6/PepperMill.shapr?dl=0)**
>
> Shared with Dropbox

Attached is the file. There is the Bottom solid and the Bottom drills I wanted to subtract. When I do, I am left with a couple of solid lines? I tried removing the larger drill solid and I get the result pictured above.

By the way, it’s a great app. Just what I have been looking for over the last 6 months.

Chris

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [January 2, 2017, 6:08am UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/4 "2017-01-02T06:08:15Z")

</div>

Thanks, we will look into this ASAP!

---

<div class="post-metadata">

**Author:** ![DuffleBag](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DuffleBag](https://discourse.shapr3d.com/u/DuffleBag)\
**Post date:** [January 10, 2017, 2:56am UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/5 "2017-01-10T02:56:48Z")

</div>

So I have noticed a similar issue when subtracting cylinders. Could be related…

As you can see, subtracting a rectangle works great, but the cylinder subtraction is flakey (it worked on the larger upper body)

Hope this helps you guys narrow down the bug!

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/b16b1c7aff72b32eec3c707ac556a1fb347d74e2.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/5a9a624ebf5f8f3631b31794c9a6d8adaeb29ad1.PNG)

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/4fbeea12d1d41b2548a9828f906f56831339b30e.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/93081207663f27ab5205825c0a6644b100d30d4d.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/44c12f8f684da457a2809d1840c6c162dfa2014d.PNG)

---

<div class="post-metadata">

**Author:** ![DuffleBag](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DuffleBag](https://discourse.shapr3d.com/u/DuffleBag)\
**Post date:** [January 10, 2017, 3:36am UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/6 "2017-01-10T03:36:44Z")

</div>

Found a workaround!

There is definitely something squirrelly with cylinder subtraction on 2.0.4. On a hunch, I tried drawing a rectangle (long cube) and then gave it the biggest fillet I could.

Subtracting my new “almost cylinder” worked great. It’ll keep us going until the bug is fixed 🙂

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/11e27dfdb1ba4f22f39449400aad52695ab1a23e.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/ebb5ac80732e58f5980d3b8242568665d9a855b2.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/06864e880e01a743ac6e7877f3fc64c0150ebc61.PNG)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/03187b784eeeb2faae798964dad5a369a82e866a.PNG)

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [January 10, 2017, 6:19am UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/7 "2017-01-10T06:19:07Z")

</div>

Interesting, I will take a look, thanks.

---

<div class="post-metadata">

**Author:** ![PhotoWorkPlace](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@PhotoWorkPlace](https://discourse.shapr3d.com/u/PhotoWorkPlace)\
**Post date:** [January 11, 2017, 8:38pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/8 "2017-01-11T20:38:29Z")

</div>

We’ve run into similar issues with subtracting  
Also when trying to use a flat sheet to slice an object often we have to give that flat sheet/plane volume otherwise the subtraction will not work

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [January 11, 2017, 8:50pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/9 "2017-01-11T20:50:09Z")

</div>

Next release should fix most of these issues.

---

<div class="post-metadata">

**Author:** ![Abqmichaelj](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Abqmichaelj](https://discourse.shapr3d.com/u/Abqmichaelj)\
**Post date:** [April 10, 2017, 8:16pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/10 "2017-04-10T20:16:37Z")

</div>

I am having even more basic problems with subractions and have narrowed it down to a very simple case. (This has been driving me nuts for months, literally.)

First I draw a rectangle and make a box.

Next I draw a trapizoid on the side of the box and use the revolution tool to create a conic section (where the top is flat). Finally, I try to subtract part of the conic section from the box.

The subtraction fails every time. ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/shapr3d/original/1X/5736793b3f44e23a7568935689085e90e32b6275.PNG)

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [April 11, 2017, 6:58am UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/11 "2017-04-11T06:58:41Z")

</div>

sorry about that, we are going to fix this. I am not entirely sure about what is causing the issue, but it can be that the edge on the side of the revolved body overlaps with the cube. Maybe simply rotating the revolved body around its axis could solve the problem.

---

<div class="post-metadata">

**Author:** ![Abqmichaelj](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Abqmichaelj](https://discourse.shapr3d.com/u/Abqmichaelj)\
**Post date:** [April 11, 2017, 2:45pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/12 "2017-04-11T14:45:45Z")

</div>

I think the problem is that the revolution operation builds a shell made from each individual line being revolved. In my case, I get a top and bottom circle shell and a curved cylinder shell. In fact, I can only select these shell surfaces individually. My theory is that the subtract operation fails because it can’t operate on the shell.

Michael J.

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [April 11, 2017, 2:55pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/13 "2017-04-11T14:55:12Z")

</div>

Oh, don’t revolve the lines, but the sketch filling (inner parts)! It will fix the problem.

---

<div class="post-metadata">

**Author:** ![Abqmichaelj](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Abqmichaelj](https://discourse.shapr3d.com/u/Abqmichaelj)\
**Post date:** [April 11, 2017, 3:34pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/14 "2017-04-11T15:34:55Z")

</div>

That’s super important. Is there anything in the tutorials/instructions about that?

Michael J.

---

<div class="post-metadata">

**Author:** ![Istvan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/istvan/32/23668_2.png) [@Istvan](https://discourse.shapr3d.com/u/Istvan)\
**Post date:** [April 11, 2017, 3:52pm UTC](https://discourse.shapr3d.com/t/issue-with-subtraction/666/15 "2017-04-11T15:52:07Z")

</div>

Sure, for example in the spatula tutorial, or in the pencil holder tutorial: [http://shapr3d.com/learn/tutorials.html](http://shapr3d.com/learn/tutorials.html)

It seemed to be a nice feature being able to revolve curves as well, but it turned out that it is not that useful in it’s current state, so we will probably remove that functionality, and won’t even let you select curves for revolving.
