Weird area calculation
-
Hi all,

Look at these 2 circles: one made of 16 segments and the other made of 50 segments, both have a radius of 50cm.
Faces within these circles have the same circumference, but not the same area.
None of these areas are exact, and even a circle made of 10000 segments will not output the exact area.
PI * R * R gives 0.7853981633974483 m²
The less the number of segments, the greater the error…
Same goes for any face that have curve(s) in its outer loop, and this is a great issue when we need accurate areas calculations.
Disapointed…
When will SketchUp have a good integral calculator ? -
The main reason is that SketchUp does not have true arcs and circle objects like a Nurbs CAD application does. In SketchUp your circles are really many sided polygons, so
πr²will never return the true area of the enclosing face.The AI says:
If a regular polygon has
nsides of lengths, the area is:
A = (n * s²) / (4 * tan(π / n))Alternatively, if you know the radius
rof the circle that circumscribes the polygon:
A = (1/2) * n * r² * sin(2π / n) -
Hi Dan,
I agree with all what you say about Sketchup being a polygonal modeler, but what is not consistent IMHO is the fact that the circumference (outer loop of a disc) of a circle is exact while the area of the circular face is not.
If SU 'knows' how the perimeter of a circle is calculated, why doesn't it know how to compute the area (assuming the outer loop of a face is a circle).

Math::PI x 2 x 50
=> 314.1592653589793

Math::PI x 0.5 x 0.5
=> 0.7853981633974483 -
You are confounding the calculated circumference of a circle, with the perimeter of a many sided polygon. They are distinct.
A circle (or an closed ArcCurve) is not a Drawingelement subclass object. They are virtual helper objects that are actually a series of edges with some extra data attached that is used by the GUI.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement