cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

tml3dRenderer.GetObject throws method not found error in IPAD and hololens

Highlighted

tml3dRenderer.GetObject throws method not found error in IPAD and hololens

I am using tml3dRenderer.GetObject($scope.currentSelection).GetWidget().GetLocation().position.x to get x coordinate of a selected model item on click of a button. This piece of code works in preview mode but in Ipad it throws "GetObject()" method not found. Is this an issue with vuforia view or with ipad? Any other workaround for them? My code is as below - 

 

var xPos;

var yPos;

var zPos;

if (twx.app.isPreview() == true) {
tml3dRenderer.setColor($scope.currentSelection, PICK_COLOR);
xPos.push(parseFloat(tml3dRenderer.GetObject(partId[i].modelItem).GetWidget().GetLocation().position.x));
yPos.push(parseFloat(tml3dRenderer.GetObject(partId[i].modelItem).GetWidget().GetLocation().position.y));
zPos.push(parseFloat(tml3dRenderer.GetObject(partId[i].modelItem).GetWidget().GetLocation().position.z));
}
}
else {
tml3dRenderer.setColor($scope.currentSelection, PICK_COLOR);
xPos.push(parseFloat(vuforia.GetObject($scope.currentSelection).GetWidget().GetLocation().position.x));
yPos.push(parseFloat(vuforia.GetObject($scope.currentSelection).GetWidget().GetLocation().position.y));
zPos.push(parseFloat(vuforia.GetObject($scope.currentSelection).GetWidget().GetLocation().position.z));
}


1 REPLY 1
Highlighted

Re: tml3dRenderer.GetObject throws method not found error in IPAD and hololens

Hello vradhan2019,

https://community.ptc.com/t5/Vuforia-Studio-and-Chalk-Tech/How-to-extract-model-data-of-3d-models-in...

 

Kind regards,

Lorena

Announcements
Join an
AR Working Group!

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection