Hey !
Casting GeomObject to PolyObject or TriObject invariably gives me an exception:
System.InvalidCastException: Unable to cast object of type 'Autodesk.Max.Wrappers.GeomObject' to type 'Autodesk.Max.IPolyObject'.
My code:
IPolyObject polyObj = (IPolyObject)node.EvalWorldState(0, true).Obj.ConvertToType(0, global.PolyObjectClassID);
Same thing for triobjects.
Am I missing something ?
Cheers
Antoine.