Unable to calculate area. Why?

#1

Hi,
I have a simple closed planar polyline. And I get Unable to calculate area.
I attached the file.

unable to calculate area.3dm (53.1 KB)

0 Likes

(Pascal Golay) #2

Hi Bogdan - it seems the curve is not quite planar.

-Pascal

0 Likes

#3

But it creates a planarsrf …

0 Likes

(Pascal Golay) #4

Yeah… I guess it is a matter of tolerance - the file tolerance is 1 unit, which is a bad idea - try to work between .01 and .000001.

https://wiki.mcneel.com/rhino/faqtolerances

-Pascal

1 Like

#5

Thanks! I used to work in 0.1 but (as I remember) I was running into other kinds of problems.

0 Likes

#6

Hi Pascal, if a surface was made from that curve , could that then be used to get the area?—-Mark

0 Likes

(Pascal Golay) #7

Hi Mark - yes, no doubt… but still…

-Pascal

0 Likes

#8

That polyline came from a previous surface actually (dupborder). And the surface came from Brep/Plane section in Grasshopper. :slight_smile:

And grasshopper tells me that all Z coordinates of the control points are the same …

0 Likes

#9

According to Bubble for Rhino the curve is not planar. After usingsetpt command with checked z direction the bubble for rhino shows the curve is planar and calculates the area.


0 Likes

#10

@DavidRutten is this a Grasshopper rounding issue? I’ve noticed before that Grasshopper often flags curves and surfaces as planar where Rhino doesn’t.

0 Likes

(David Rutten) #11

It could be rounding, certainly the coordinate display will not show differences which are below some level of tolerance, but those differences may still affect planarity checks.

Tolerance issues will come into play here, as Brep|Plane intersection actually relies on Brep|Brep intersection behind the scenes.

0 Likes

#12

Yes, I notice that tolerances affect intersections most of the times.

@pascal, now I remember why i changed the tolerance to 1.
Here’s the discussion:

I think that it could be useful to fine-tune the tolerances settings for large scale mm template.
They also affect Make2D.

0 Likes