How to create an NPPoint object in C#?
Posted: Tue Feb 26, 2008 2:07 pm
I'm using the "OptiTrack_1.1.033.final.b" SDK and started with
the "Single_Camera_CSharp_.NET_3.0" example. I'm trying to get
a Point object from a frame so I can use the "get_Z" property.
Tried the following:
OptiTrack.NPObject npObj = frame.Item(0); //NPCameraFrame
OptiTrack.NPPoint npPoint = npObj as OptiTrack.NPPoint;
npObj looks good, but npPoint is null. What's the right way
to get an NPPoint object?
Thanks,
dsl
the "Single_Camera_CSharp_.NET_3.0" example. I'm trying to get
a Point object from a frame so I can use the "get_Z" property.
Tried the following:
OptiTrack.NPObject npObj = frame.Item(0); //NPCameraFrame
OptiTrack.NPPoint npPoint = npObj as OptiTrack.NPPoint;
npObj looks good, but npPoint is null. What's the right way
to get an NPPoint object?
Thanks,
dsl