Imported part area calculation error

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
serdarba
Posts: 1
Joined: Tue Mar 14, 2017 3:17 am

Imported part area calculation error

Post by serdarba »

Hi,

from FreeCAD import Base
from FreeCAD import Part
from FreeCAD import Mesh

surface = Part.Shape()
surface.read("test.igs")
print(surface.Area)

The calculated surface area on python FreeCAD module by using shared code is 5382.86 m2 and the original surface area created on Rhinoceros is 5746.54 m2. There is an important difference between two results. "test" file is created in Rhinoceros and generated as .igs file with 0.00001 m tolerance.

How can I fix this problem?
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Imported part area calculation error

Post by kkremitzki »

It might help to attach your file.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply