# Intersecting surface problem

**URL:** <https://discourse.mcneel.com/t/intersecting-surface-problem/130105>\
**Category:** Rhino for Windows\
**Tags:** windows, rhino7\
**Created:** [September 13, 2021, 11:05am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105 "2021-09-13T11:05:32Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![cairn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cairn/32/110614_2.png) [@cairn](https://discourse.mcneel.com/u/cairn)\
**Post date:** [September 13, 2021, 11:05am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/1 "2021-09-13T11:05:33Z")

</div>

Two surfaces clearly seem to intersect, but won’t trim one to the other. Any ideas?

 ![Intersection](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/4/c/94cfd5c581cb1e764a2a44451c552a8bd6307757.jpeg)  
[IntersectProblem.3dm](https://discourse.mcneel.com/uploads/short-url/fCMaTLXwJmC1nCzPLamDirHznuQ.3dm) (95.0 KB)

---

<div class="post-metadata">

**Author:** ![Willem](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/willem/32/773637_2.png) [@Willem](https://discourse.mcneel.com/u/Willem)\
**Post date:** [September 13, 2021, 11:57am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/2 "2021-09-13T11:57:22Z")

</div>

Hi Cairn,

One surface has a degree of 7 in V direction  
If you rebuild that to be a degree 3 the intersection goes all the way.

Still this looks like a bug.

Also @pascal I like to report a bug in the rebuild tool with this surface.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/f/4/7f4c05b9b1077b475e0a69f8401c32142bb005ef.png)

-Willem

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [September 13, 2021, 11:58am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/3 "2021-09-13T11:58:52Z")

</div>

they do not fully intersect afaics, when you extend the cutting surface on the bottom by 1 it will trim/intersect.

 ![Bildschirmfoto 2021-09-13 um 13.55.48](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/5/8/c584aaacf2cd4c22302c0c5f1b9558a5f4b89fb4.png)

---

<div class="post-metadata">

**Author:** ![Willem](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/willem/32/773637_2.png) [@Willem](https://discourse.mcneel.com/u/Willem)\
**Post date:** [September 13, 2021, 12:02pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/4 "2021-09-13T12:02:23Z")

</div>

I disagree:  
Increasing the isocurve density, clearly shows they do interscect beyond the point where the intersection was found  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/0/0/e006862d031b3ab602bda93ab1998365dd74d1a0.png)

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [September 13, 2021, 12:04pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/5 "2021-09-13T12:04:03Z")

</div>

> [@Willem](#):
>
> I disagree:

right. but it still trims when you extend, problem solved, at least i hope so. rhino generally has problems with intersections, not going down a bottomless rabbit hole. also sometimes geometry may be slightly wonky, difficult to say.

also one should not have to rebuild constantly, changing input geometry just for tools to work is a no go when i think about it.

---

<div class="post-metadata">

**Author:** ![cairn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cairn/32/110614_2.png) [@cairn](https://discourse.mcneel.com/u/cairn)\
**Post date:** [September 13, 2021, 1:39pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/6 "2021-09-13T13:39:04Z")

</div>

Yup, thanks all. the Extend trick is another workaround. The one I used was to create a trim curve, and then the surfaces join just fine.Def a bug not to find the intersection

 ![01Blend](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/8/d/58d1697bd0b9c1906e56f6f39a921596fc8b74d1.jpeg)  
 ![02](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/2/0/820b89af3313b21fcee7f433572c2221789df9c4.jpeg)  
 ![03trim](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/a/7/2a7e3ee9cbe65deb52de0e261e4794ec5d327fcb.jpeg)  
 ![04Join](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/9/e/c9e55dfe9bac175a96063771d5d9645806b01b81.jpeg)

---

<div class="post-metadata">

**Author:** ![spb](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/spb/32/774168_2.png) [@spb](https://discourse.mcneel.com/u/spb)\
**Post date:** [September 13, 2021, 2:11pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/7 "2021-09-13T14:11:16Z")

</div>

Another workaround is to change the model tolerance from 0.001 to .0005 just for the \_Intersect.

---

<div class="post-metadata">

**Author:** ![cairn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cairn/32/110614_2.png) [@cairn](https://discourse.mcneel.com/u/cairn)\
**Post date:** [September 13, 2021, 5:30pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/8 "2021-09-13T17:30:26Z")

</div>

> [@spb](#):
>
> change the model tolerance

Yes you seem to be right, but take care as I have run into glitches in the past when changing tolerances while modeling..

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [September 13, 2021, 9:10pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/9 "2021-09-13T21:10:47Z")

</div>

Yeah, this looks like it needs a tune up. For now, extending the linear surface first gets the right curve-

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/d/9/6d9a27a0869c2cce4ffd4ab4638cc81717459af4.png)

[RH-65567](https://mcneel.myjetbrains.com/youtrack/issue/RH-65567) SSX: short

-Pascal

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [September 14, 2021, 6:58am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/10 "2021-09-14T06:58:36Z")

</div>

how did you create the trim curve then?

---

<div class="post-metadata">

**Author:** ![norbert\_geelen](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/norbert_geelen/32/476003_2.png) [@norbert\_geelen](https://discourse.mcneel.com/u/norbert_geelen)\
**Post date:** [September 14, 2021, 11:40am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/11 "2021-09-14T11:40:01Z")

</div>

This seems to happen from time to time (even with clean and relatively simple surfaces) for no apparent reason.

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [September 14, 2021, 2:55pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/12 "2021-09-14T14:55:15Z")

</div>

yup, unfortunately it fails pretty reliable on simple conjunctions like these where 2 pipes with the same radii meet each other.

 ![Bildschirmfoto 2021-09-14 um 16.54.06](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/2/d/22d53bc0ff094d2e610e88469dbc06f8afe43b7b.png)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [September 14, 2021, 3:02pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/13 "2021-09-14T15:02:24Z")

</div>

No problem with these two…

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/5/9/059bc3f19ce0eb1541437fd791699a5cd859269c.jpeg)

[torus\_intersection.3dm](https://discourse.mcneel.com/uploads/short-url/7e2twEm2jpddihWkZJQ3I0Fk1w3.3dm) (522.0 KB)

I’d assume this depends on tolerance settings

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [September 14, 2021, 3:42pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/14 "2021-09-14T15:42:07Z")

</div>

> [@martinsiegrist](#):
>
> I’d assume this depends on tolerance settings

maybe, but messing with that does not always help.

---

<div class="post-metadata">

**Author:** ![spb](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/spb/32/774168_2.png) [@spb](https://discourse.mcneel.com/u/spb)\
**Post date:** [September 16, 2021, 2:48am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/15 "2021-09-16T02:48:52Z")

</div>

I moved the 2 surfaces and discovered that picking them in the same order but in different locations for \_Intersect can produce different results. The GIF below shows a result of 3 curves and another of 2. Why do selection points matter for an SSX?

![IntersectProblem_VariableResults](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/4/1/d41fa5ba063143a002b259f3531bb3d74fee61b7.gif)

[IntersectProblem\_MovedSrfs.3dm](https://discourse.mcneel.com/uploads/short-url/45f2pNw5JjrsV0dUAXsuQgnl0nq.3dm) (104.4 KB)

---

<div class="post-metadata">

**Author:** ![raba](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raba/32/659442_2.png) [@raba](https://discourse.mcneel.com/u/raba)\
**Post date:** [September 20, 2021, 7:10am UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/16 "2021-09-20T07:10:07Z")

</div>

rebuild the smaller surface 😉

 ![2021_ 09_ 20_ 000](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/c/f/0cfe9ed337a48db683c33b3ada94a75b22fcf696.png)

---

<div class="post-metadata">

**Author:** ![spb](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/spb/32/774168_2.png) [@spb](https://discourse.mcneel.com/u/spb)\
**Post date:** [September 21, 2021, 9:48pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/17 "2021-09-21T21:48:09Z")

</div>

This script creates an intersection that can be used to trim both surfaces:  
[https://github.com/CADacombs/rhinopython/blob/master/xIntersection\_surfaceSurface\_PullTween.py](https://github.com/CADacombs/rhinopython/blob/master/xIntersection_surfaceSurface_PullTween.py)

---

<div class="post-metadata">

**Author:** ![cairn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cairn/32/110614_2.png) [@cairn](https://discourse.mcneel.com/u/cairn)\
**Post date:** [September 30, 2021, 7:24pm UTC](https://discourse.mcneel.com/t/intersecting-surface-problem/130105/18 "2021-09-30T19:24:15Z")

</div>

Ah, blended from the end of the intersection curve and a line known to be tangent to the surface edge… 😁
