Imported part area calculation error

Need help, or want to share a macro? Post here!
serdarba
Posts: 1
Joined: Tue Mar 14, 2017 3:17 am

Imported part area calculation error

Postby serdarba » Tue Mar 14, 2017 3:33 am

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
Posts: 314
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Imported part area calculation error

Postby kkremitzki » Tue Mar 14, 2017 2:37 pm

It might help to attach your file.