# Intersect Faces causes triangulation

**URL:** <https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995>\
**Category:** SketchUp\
**Created:** [September 11, 2019, 10:18am UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995 "2019-09-11T10:18:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TommyK](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tommyk/32/2998_2.png) [@TommyK](https://forums.sketchup.com/u/TommyK)\
**Post date:** [September 11, 2019, 10:18am UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/1 "2019-09-11T10:18:37Z")

</div>

I have been getting bugs when I try to intersect faces quite frequently lately. When I intersect a simple cube into a face, the face gets triangulated:

 ![12](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2e867205f9f6eaff409f734ad2dd60613d23fa3.png)

The triangulation can be easily erased, but it is starting to get annoying doing this so often now.

Interestingly, if I scale down all the geometry down by a factor of 10, the triangulation does not happen. I think perhaps there is a mismatch between the precision with which SketchUp deals with one kind of operation (creation of planar faces) and another (intersection of face).

If you observe the image above (and the model attached), you’ll notice that the vertices of the face on the Z-axis varies by a maximum of 0.000414mm - this amounts to 0.000016 inches. As I understand it, SketchUp treats points spaced less than 0.001 inches apart to be the same point for tolerance purposes. But it seems that when dealing with faces/planes (or maybe just the intersection tool), the tolerance is much smaller (by a factor of about 100, I think).

Therefore, I think there is a bug to be resolved here.

**On a further note…**  
I have been getting what I think are tolerance issues quite a lot when dealing faces lately. I have been getting lots of duplicate faces, for instance when bisecting a face with a line. It happens most often with highly developed models, not at the beginning stages of building.

I suspect that rectilinear, axis-aligned geometry start to go ever so out of line (but still within Sketchup’s tolerance), after **multiple changes to the axes of a component** , which performs transformations to the geometry. For complex models, changing the axes while modelling is something that is very useful, and not something I am prepared to give up just yet.

The model attached is a piece of a larger model I have been working on for some time. You can try to intersect the face with the group, and see the triangulation happen:  
[Component\_11.skp](https://forums.sketchup.com/uploads/short-url/yO6xLRDyaTvSHwnkqDDLhAboPzp.skp) (56.9 KB)

---

<div class="post-metadata">

**Author:** ![john\_drivenupthewall](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@john\_drivenupthewall](https://forums.sketchup.com/u/john_drivenupthewall)\
**Post date:** [September 11, 2019, 12:14pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/2 "2019-09-11T12:14:03Z")

</div>

I’m not sure this is a ‘bug’ as it’s is due to the seemingly random hidden edges…

however, if you Intersect ‘all’ with model whilst in ‘Wireframe’ view, it does not split any surfaces…

john

---

<div class="post-metadata">

**Author:** ![TommyK](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tommyk/32/2998_2.png) [@TommyK](https://forums.sketchup.com/u/TommyK)\
**Post date:** [September 11, 2019, 12:34pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/3 "2019-09-11T12:34:56Z")

</div>

Hmmm… You’re quite right. _Intersect Faces \> With Selection_ creates the triangulated hidden edges, while _Intersect Faces \> With Model_ does not.

The plot thickens…

---

<div class="post-metadata">

**Author:** ![g.h.hubers](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@g.h.hubers](https://forums.sketchup.com/u/g.h.hubers)\
**Post date:** [September 11, 2019, 1:47pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/4 "2019-09-11T13:47:28Z")

</div>

Your model’s top face isn’t coplanar to begin with. You can see that in the text labels that you attached to the different vertices.

This is what the top face looks like in front view when scaled up vertically by 1000,000x to exagerate the vertical differences:

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/1/d/1deae61a96c3139803af582e195be38f0a11f35e.png)

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [September 11, 2019, 2:09pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/5 "2019-09-11T14:09:48Z")

</div>

Small errors are inevitable when floating point arithmetic is used in operations such as transformation, calculation of vertices for arcs and circles, intersections, etc. It would seem that unlike the tolerance test applied to nearby vertices, SketchUp does not have a test for coplanar when performing operation such as @TommyK showed, and surprisingly small off-plane amounts can cause triangulation or failure to form faces at all. We see examples here on the forum fairly often.

I speculate that any test for coplanar would itself suffer computer arithmetic effects and might therefore be unreliable. That could be why SketchUp doesn’t even try…

---

<div class="post-metadata">

**Author:** ![g.h.hubers](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@g.h.hubers](https://forums.sketchup.com/u/g.h.hubers)\
**Post date:** [September 11, 2019, 2:42pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/6 "2019-09-11T14:42:13Z")

</div>

> [@slbaumgartner](#):
>
> I speculate that any test for coplanar would itself suffer computer arithmetic effects and might therefore be unreliable.

Strangely when I select the face \> Intersect Faces (with model) \> I get no triangulation.  
When I select the cube component \> intersect Faces (with model) \> **triangulation**.  
When I select both the cube component and the face \> Intersect Faces (with model) \> no triangulation.  
When I select both the cube component and the face \> Intersect Faces (with selection) \> I get a **different triangulation**.

---

<div class="post-metadata">

**Author:** ![TommyK](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tommyk/32/2998_2.png) [@TommyK](https://forums.sketchup.com/u/TommyK)\
**Post date:** [September 11, 2019, 2:56pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/7 "2019-09-11T14:56:10Z")

</div>

> [@g.h.hubers](#):
>
> Your model’s top face isn’t coplanar to begin with. You can see that in the text labels that you attached to the different vertices.

Yes, this is inevitable when using a computer’s floating point numbers. However, the inaccuracy is well within SketchUp’s declared tolerance of 0.001inch, therefore SketchUp recognises the original face as coplanar.

> [@slbaumgartner](#):
>
> It would seem that unlike the tolerance test applied to nearby vertices, SketchUp does not have a test for coplanar when performing operation

It must be the case that Sketchup does test for coplanarity, as _Intersect Faces \> With Model_ seems to work.

Having done some vector mathematics myself in this area, there is a difference between checking if two faces (with vertices) are coplanar within tolerances, and checking if two planes are coplanar within tolerance. The first’s unit of tolerance is length, the latter’s unit of tolerance is angle. They are not simply interchangeable.

I think the way to fix this from SketchUp’s end is to check in their code how coplanarity is decided. Also it might be the case that in their code, they split faces into triangles, then do the intersection operation, then stitch those triangles back together. They may simply forgotten to stitch the triangles together in the _Intersect Faces \> With Selection_ operation.

> [@g.h.hubers](#):
>
> Strangely when I select the face \> Intersect Faces (with model) \> I get no triangulation.  
> When I select the cube component \> intersect Faces (with model) \> **triangulation**.  
> When I select both the cube component and the face \> Intersect Faces (with model) \> no triangulation.  
> When I select both the cube component and the face \> Intersect Faces (with selection) \> I get a **different triangulation**.

…The plot thickens even more!

---

<div class="post-metadata">

**Author:** ![jimhami42](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/jimhami42/32/1781_2.png) [@jimhami42](https://forums.sketchup.com/u/jimhami42)\
**Post date:** [September 11, 2019, 3:09pm UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/8 "2019-09-11T15:09:34Z")

</div>

It might be worth noting that when drawing on the ground plane (x/y), the z coordinate of the point will always be exactly zero. This is not always the case when drawing “in the air.”

[added] You can draw a rectangle with lines by using the [x,y,z] coordinate input option. Apparently, while you cannot create a line shorter than 0.001", you can create a coordinate to six decimals by entering somethng like [1,1,0.000001] in the VCB (Value Control Box).

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/2/d/2dc11e7b5899253dc5786d4e52939dba807bd291.png)

For tolerance purposes, the four corners of this “square” are treated as co-planar.

Repeating this with [1,1,0.001], the lines are no longer thought of as being co-planar.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/4/2/421e2e9f57e4cfd98a1aa330144d482bf7221657.png)

---

<div class="post-metadata">

**Author:** ![TDahl](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tdahl/32/11584_2.png) [@TDahl](https://forums.sketchup.com/u/TDahl)\
**Post date:** [September 12, 2019, 2:40am UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/9 "2019-09-12T02:40:37Z")

</div>

> [@jimhami42](#):
>
> It might be worth noting that when drawing on the ground plane (x/y), the z coordinate of the point will always be exactly zero. This is not always the case when drawing “in the air.”

A factor which impacts this behavior is that the numeric value of zero can be represented EXACTLY in the standard [IEEE floating-point format](https://en.wikipedia.org/wiki/IEEE_754), whereas virtually no other whole numbers can be represented EXACTLY (nor can nice fractions or even low-precision small decimal values, such as 1/3 or 0.1 or 0.01 or 0.001).

The magic and the drawback of the floating-point format is that the values which can be represented EXACTLY are discretely and non-uniformly distributed on the number line, packed fairly densely near the zero origin and spread quite far apart at huge offsets. This behavior is how floating-point (with fairly small binary representations such as 64 bits) can simultaneously represent huge values (with correspondingly sparse resolution) - such as 10 raised to the power of 300 - and also represent small values (with very high resolution) in the ordinary human range closer to zero.

The term “floating point” comes from the fact that the decimal point “floats” or effectively moves back and forth within the binary representation, yielding varying precision in order to accommodate such a wide range of number space.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2a121500b085ed60806607a82720b092d800bb3.png) [@system](https://forums.sketchup.com/u/system)\
**Post date:** [March 15, 2020, 10:24am UTC](https://forums.sketchup.com/t/intersect-faces-causes-triangulation/102995/10 "2020-03-15T10:24:25Z")

</div>

Closed on March 15, 2020, 10:24am UTC

This topic was automatically closed after 186 days. New replies are no longer allowed.
