Hi,
is there a way in Softimage to see the surface area amount in units of one or multiple polygons ?
Regards,
Frank
Determining Surface Area
Re: Determining Surface Area
Is a native atributte for polygon meshes, just an ice tree->get data->area for each polygon i think
Re: Determining Surface Area
You could use that ICE attribute in a script
Object.ActivePrimitive.GetICEAttributeFromName( 'PolygonArea' )
Ex (for polygon faces and polygonmesh objects):
Object.ActivePrimitive.GetICEAttributeFromName( 'PolygonArea' )
Ex (for polygon faces and polygonmesh objects):
Code: Select all
#Python
from win32com.client import constants as c
xsi = Application
sel = xsi.Selection
total = 0
for obj in sel:
# For faces
if obj.Type == 'polySubComponent':
CompCol = obj.SubComponent.ComponentCollection
obj = obj.SubComponent.Parent3DObject
attr = obj.ActivePrimitive.GetICEAttributeFromName( 'PolygonArea' )
areaData = attr.DataArray
for i in range(CompCol.Count):
total += areaData[CompCol(i).index]
# For polymesh objects
elif obj.Type == 'polymsh':
attr = obj.ActivePrimitive.GetICEAttributeFromName( 'PolygonArea' )
areaData = attr.DataArray
total += sum(areaData)
else:
LogMessage ( 'Not Supported', c.siError )
if total !=0 : LogMessage( total )
M.Yara
Character Modeler | Softimage Generalist (sort of)
Character Modeler | Softimage Generalist (sort of)
Who is online
Users browsing this forum: No registered users and 63 guests