[Q]or[Bug]: about Region Difference component

Hi friends,
I came arcoss with one problem about the Region Difference component. The output is not coplanar with the input. Is it a bug or I just miss something? See picture below.

Region Differentce problem.gh (446.9 KB)

I think this is within tolerance…

Thanks for your quick reply.
I just baked the curves and measured the gaps which is 0.01 unit while the tolerance is 0.001 unit.
The gaps is about ten times the tolerance,so I think it is not within tolerance.

Might depend where you measure.

I extracted just tree branch {0;0} and the gap is 0.000 mm

When I open your GH file in R7, I get an endless loop of this message:

Switching to R8, it’s hard to be sure your curves are coplanar:


coplanar_2025Feb6a.gh (455.2 KB)

Evaluate Surface isn’t really necessary, eh?


coplanar_2025Feb6b.gh (449.1 KB)

In fact, there are different gaps. I just baked all the curves and you can test again.

Region Difference problem.3dm (1.6 MB)

I see. 77 mm isn’t a tolerance issue

Hi Joseph,all the input curves are planar and coplanar


I think Evaluate Surface component is necessary otherwise the Region Difference component would use the world coordinates instead.

Your own image says they are not all planar. See version ‘b’ added to my previous post.


coplanar_2025Feb6bb.gh (452.1 KB)

1 Like

OK.Thanks.I did not notice that not all of the input curves are planar.Maybe it is the root cause of this problem.
I will try to make all the input curves planar and see whether or not the result would become right.

1 Like

This is the problem

1 Like

I’ve looked more closely and see issues with your geometry.

Yes, I recommend the following:


coplanar_2025Feb10c.gh (448.3 KB)

2 Likes

Thanks.
This is really helpful.

I would feel better about it if the surfaces were not exactly the same length as the other curves width. Too easily mis-aligned. I would scale them to increase their length but it’s too much trouble.

1 Like

Hi Joseph,
Your solution is very good but it is not suit my need this time.
In fact,I want to generate one brep with 6 faces, all of which should be planar. So I can not project curves for it would affect other faces of the berp.See attached picture and def.


Region Differentce problem V2.gh (572.9 KB)
Any hints? Thanks.

Why then would I offer more?

1 Like

Thanks.
I did not notice that only one face of the brep in my def is not planar while the other 5 faces are planar. Now the question is how to make every face of the brep is planar?
Can you have a look at this post? I need your help. Thanks.

Just pull everything which is not planar to a plane?

If I did so,these surface cannot join together always.


Maybe I should try other ways.

Sorry. I will try other ways by myself instead of asking again and again.

1 Like