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
-
Pedrito
- Posts: 43
- Joined: 21 Feb 2018, 11:46
- Location: Zaragoza,Spain
Re: Determining Surface Area
Is a native atributte for polygon meshes, just an ice tree->get data->area for each polygon i think
You do not have the required permissions to view the files attached to this post.
-
myara
- Posts: 406
- Joined: 28 Sep 2011, 08:33
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)