How to get position from OBJ without loading it into scene?

I have 3 OBJ. 1 for default shape. 2. for Increased bust. 3. for decreased bust. I loaded default OBJ into scene and get position by
var sphere = scene.meshes[1];
var position = sphere.getVerticesData(BABYLON.VertexBuffer.PositionKind);
. I want to get position of 2nd and 3rd OBJ by new function. I don’t want to load these obj into scene.
Like
function getPos(){
BABYLON.SceneLoader.ImportMesh("", “assets/”, “InseamIncreases.obj”, scene, function (data) {
var position = data[1].getVerticesData(BABYLON.VertexBuffer.PositionKind);
});
}

Is there any way to get position without creating scene.?

There’s no built-in option, since the OBJ parser itself requires a scene in which to create the meshes:

2 Likes

But you can always create a dummy scene